Debian Codegraph @

googleapis/type/interval/interval.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/interval.proto
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 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Represents a time interval, encoded as a Timestamp start (inclusive) and a
40 // Timestamp end (exclusive).
41 //
42 // The start must be less than or equal to the end.
43 // When the start equals the end, the interval is empty (matches no time).
44 // When both start and end are unspecified, the interval matches any time.
45 type Interval struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Optional. Inclusive start of the interval.
51 //
52 // If specified, a Timestamp matching this interval will have to be the same
53 // or after the start.
54 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
55 // Optional. Exclusive end of the interval.
56 //
57 // If specified, a Timestamp matching this interval will have to be before the
58 // end.
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 // Deprecated: Use Interval.ProtoReflect.Descriptor instead.
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, 0x66, 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, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50,
130 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), // 0: google.type.Interval
148 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
149 }
150 var file_google_type_interval_proto_depIdxs = []int32{
151 1, // 0: google.type.Interval.start_time:type_name -> google.protobuf.Timestamp
152 1, // 1: google.type.Interval.end_time:type_name -> google.protobuf.Timestamp
153 2, // [2:2] is the sub-list for method output_type
154 2, // [2:2] is the sub-list for method input_type
155 2, // [2:2] is the sub-list for extension type_name
156 2, // [2:2] is the sub-list for extension extendee
157 0, // [0:2] is the sub-list for field type_name
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 }