Debian Codegraph @

googleapis/type/timeofday/timeofday.pb.go

raw
1 // Copyright 2026 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/type/timeofday.proto
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 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Represents a time of day. The date and time zone are either not significant
39 // or are specified elsewhere. An API may choose to allow leap seconds. Related
40 // types are [google.type.Date][google.type.Date] and
41 // `google.protobuf.Timestamp`.
42 type TimeOfDay struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Hours of a day in 24 hour format. Must be greater than or equal to 0 and
48 // typically must be less than or equal to 23. An API may choose to allow the
49 // value "24:00:00" for scenarios like business closing time.
50 Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"`
51 // Minutes of an hour. Must be greater than or equal to 0 and less than or
52 // equal to 59.
53 Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
54 // Seconds of a minute. Must be greater than or equal to 0 and typically must
55 // be less than or equal to 59. An API may allow the value 60 if it allows
56 // leap-seconds.
57 Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
58 // Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
59 // and less than or equal to 999,999,999.
60 Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
61 }
62
63 func (x *TimeOfDay) Reset() {
64 *x = TimeOfDay{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_type_timeofday_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *TimeOfDay) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*TimeOfDay) ProtoMessage() {}
77
78 func (x *TimeOfDay) ProtoReflect() protoreflect.Message {
79 mi := &file_google_type_timeofday_proto_msgTypes[0]
80 if protoimpl.UnsafeEnabled && x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90 // Deprecated: Use TimeOfDay.ProtoReflect.Descriptor instead.
91 func (*TimeOfDay) Descriptor() ([]byte, []int) {
92 return file_google_type_timeofday_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *TimeOfDay) GetHours() int32 {
96 if x != nil {
97 return x.Hours
98 }
99 return 0
100 }
101
102 func (x *TimeOfDay) GetMinutes() int32 {
103 if x != nil {
104 return x.Minutes
105 }
106 return 0
107 }
108
109 func (x *TimeOfDay) GetSeconds() int32 {
110 if x != nil {
111 return x.Seconds
112 }
113 return 0
114 }
115
116 func (x *TimeOfDay) GetNanos() int32 {
117 if x != nil {
118 return x.Nanos
119 }
120 return 0
121 }
122
123 var File_google_type_timeofday_proto protoreflect.FileDescriptor
124
125 var file_google_type_timeofday_proto_rawDesc = []byte{
126 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69,
127 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67,
128 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x6b, 0x0a, 0x09, 0x54, 0x69,
129 0x6d, 0x65, 0x4f, 0x66, 0x44, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73,
130 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x12, 0x18, 0x0a,
131 0x07, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
132 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e,
133 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
134 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
135 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x69, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
136 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65,
137 0x4f, 0x66, 0x44, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f,
138 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
139 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
140 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64,
141 0x61, 0x79, 0x3b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0xa2, 0x02, 0x03, 0x47,
142 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
143 }
144
145 var (
146 file_google_type_timeofday_proto_rawDescOnce sync.Once
147 file_google_type_timeofday_proto_rawDescData = file_google_type_timeofday_proto_rawDesc
148 )
149
150 func file_google_type_timeofday_proto_rawDescGZIP() []byte {
151 file_google_type_timeofday_proto_rawDescOnce.Do(func() {
152 file_google_type_timeofday_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_timeofday_proto_rawDescData)
153 })
154 return file_google_type_timeofday_proto_rawDescData
155 }
156
157 var file_google_type_timeofday_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
158 var file_google_type_timeofday_proto_goTypes = []interface{}{
159 (*TimeOfDay)(nil), // 0: google.type.TimeOfDay
160 }
161 var file_google_type_timeofday_proto_depIdxs = []int32{
162 0, // [0:0] is the sub-list for method output_type
163 0, // [0:0] is the sub-list for method input_type
164 0, // [0:0] is the sub-list for extension type_name
165 0, // [0:0] is the sub-list for extension extendee
166 0, // [0:0] is the sub-list for field type_name
167 }
168
169 func init() { file_google_type_timeofday_proto_init() }
170 func file_google_type_timeofday_proto_init() {
171 if File_google_type_timeofday_proto != nil {
172 return
173 }
174 if !protoimpl.UnsafeEnabled {
175 file_google_type_timeofday_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
176 switch v := v.(*TimeOfDay); i {
177 case 0:
178 return &v.state
179 case 1:
180 return &v.sizeCache
181 case 2:
182 return &v.unknownFields
183 default:
184 return nil
185 }
186 }
187 }
188 type x struct{}
189 out := protoimpl.TypeBuilder{
190 File: protoimpl.DescBuilder{
191 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
192 RawDescriptor: file_google_type_timeofday_proto_rawDesc,
193 NumEnums: 0,
194 NumMessages: 1,
195 NumExtensions: 0,
196 NumServices: 0,
197 },
198 GoTypes: file_google_type_timeofday_proto_goTypes,
199 DependencyIndexes: file_google_type_timeofday_proto_depIdxs,
200 MessageInfos: file_google_type_timeofday_proto_msgTypes,
201 }.Build()
202 File_google_type_timeofday_proto = out.File
203 file_google_type_timeofday_proto_rawDesc = nil
204 file_google_type_timeofday_proto_goTypes = nil
205 file_google_type_timeofday_proto_depIdxs = nil
206 }