Debian Codegraph @

googleapis/apps/drive/activity/v2/common.pb.go

raw
1 // Copyright 2025 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/apps/drive/activity/v2/common.proto
20
21 package activity
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 // Information about time ranges.
40 type TimeRange struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The start of the time range.
46 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
47 // The end of the time range.
48 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
49 }
50
51 func (x *TimeRange) Reset() {
52 *x = TimeRange{}
53 if protoimpl.UnsafeEnabled {
54 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58 }
59
60 func (x *TimeRange) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*TimeRange) ProtoMessage() {}
65
66 func (x *TimeRange) ProtoReflect() protoreflect.Message {
67 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[0]
68 if protoimpl.UnsafeEnabled && x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.
79 func (*TimeRange) Descriptor() ([]byte, []int) {
80 return file_google_apps_drive_activity_v2_common_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *TimeRange) GetStartTime() *timestamppb.Timestamp {
84 if x != nil {
85 return x.StartTime
86 }
87 return nil
88 }
89
90 func (x *TimeRange) GetEndTime() *timestamppb.Timestamp {
91 if x != nil {
92 return x.EndTime
93 }
94 return nil
95 }
96
97 // Information about a group.
98 type Group struct {
99 state protoimpl.MessageState
100 sizeCache protoimpl.SizeCache
101 unknownFields protoimpl.UnknownFields
102
103 // The email address of the group.
104 Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
105 // The title of the group.
106 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
107 }
108
109 func (x *Group) Reset() {
110 *x = Group{}
111 if protoimpl.UnsafeEnabled {
112 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[1]
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 ms.StoreMessageInfo(mi)
115 }
116 }
117
118 func (x *Group) String() string {
119 return protoimpl.X.MessageStringOf(x)
120 }
121
122 func (*Group) ProtoMessage() {}
123
124 func (x *Group) ProtoReflect() protoreflect.Message {
125 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[1]
126 if protoimpl.UnsafeEnabled && x != nil {
127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128 if ms.LoadMessageInfo() == nil {
129 ms.StoreMessageInfo(mi)
130 }
131 return ms
132 }
133 return mi.MessageOf(x)
134 }
135
136 // Deprecated: Use Group.ProtoReflect.Descriptor instead.
137 func (*Group) Descriptor() ([]byte, []int) {
138 return file_google_apps_drive_activity_v2_common_proto_rawDescGZIP(), []int{1}
139 }
140
141 func (x *Group) GetEmail() string {
142 if x != nil {
143 return x.Email
144 }
145 return ""
146 }
147
148 func (x *Group) GetTitle() string {
149 if x != nil {
150 return x.Title
151 }
152 return ""
153 }
154
155 // Information about a domain.
156 type Domain struct {
157 state protoimpl.MessageState
158 sizeCache protoimpl.SizeCache
159 unknownFields protoimpl.UnknownFields
160
161 // The name of the domain, e.g. `google.com`.
162 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
163 // An opaque string used to identify this domain.
164 LegacyId string `protobuf:"bytes,3,opt,name=legacy_id,json=legacyId,proto3" json:"legacy_id,omitempty"`
165 }
166
167 func (x *Domain) Reset() {
168 *x = Domain{}
169 if protoimpl.UnsafeEnabled {
170 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[2]
171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
172 ms.StoreMessageInfo(mi)
173 }
174 }
175
176 func (x *Domain) String() string {
177 return protoimpl.X.MessageStringOf(x)
178 }
179
180 func (*Domain) ProtoMessage() {}
181
182 func (x *Domain) ProtoReflect() protoreflect.Message {
183 mi := &file_google_apps_drive_activity_v2_common_proto_msgTypes[2]
184 if protoimpl.UnsafeEnabled && x != nil {
185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
186 if ms.LoadMessageInfo() == nil {
187 ms.StoreMessageInfo(mi)
188 }
189 return ms
190 }
191 return mi.MessageOf(x)
192 }
193
194 // Deprecated: Use Domain.ProtoReflect.Descriptor instead.
195 func (*Domain) Descriptor() ([]byte, []int) {
196 return file_google_apps_drive_activity_v2_common_proto_rawDescGZIP(), []int{2}
197 }
198
199 func (x *Domain) GetName() string {
200 if x != nil {
201 return x.Name
202 }
203 return ""
204 }
205
206 func (x *Domain) GetLegacyId() string {
207 if x != nil {
208 return x.LegacyId
209 }
210 return ""
211 }
212
213 var File_google_apps_drive_activity_v2_common_proto protoreflect.FileDescriptor
214
215 var file_google_apps_drive_activity_v2_common_proto_rawDesc = []byte{
216 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72,
217 0x69, 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x32, 0x2f,
218 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f,
219 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e,
220 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
221 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
222 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7d, 0x0a, 0x09,
223 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61,
224 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
225 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
226 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74,
227 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
228 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
229 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
230 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x33, 0x0a, 0x05, 0x47,
231 0x72, 0x6f, 0x75, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20,
232 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
233 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
234 0x22, 0x39, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
235 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b,
236 0x0a, 0x09, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
237 0x09, 0x52, 0x08, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x49, 0x64, 0x42, 0xc0, 0x01, 0x0a, 0x21,
238 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e,
239 0x64, 0x72, 0x69, 0x76, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x76,
240 0x32, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
241 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
242 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
243 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x72, 0x69,
244 0x76, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x32, 0x3b, 0x61,
245 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x44, 0x41, 0xaa, 0x02,
246 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x73, 0x2e, 0x44, 0x72, 0x69,
247 0x76, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x32, 0xca, 0x02,
248 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 0x70, 0x70, 0x73, 0x5c, 0x44, 0x72, 0x69,
249 0x76, 0x65, 0x5c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x5c, 0x56, 0x32, 0x62, 0x06,
250 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
251 }
252
253 var (
254 file_google_apps_drive_activity_v2_common_proto_rawDescOnce sync.Once
255 file_google_apps_drive_activity_v2_common_proto_rawDescData = file_google_apps_drive_activity_v2_common_proto_rawDesc
256 )
257
258 func file_google_apps_drive_activity_v2_common_proto_rawDescGZIP() []byte {
259 file_google_apps_drive_activity_v2_common_proto_rawDescOnce.Do(func() {
260 file_google_apps_drive_activity_v2_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_apps_drive_activity_v2_common_proto_rawDescData)
261 })
262 return file_google_apps_drive_activity_v2_common_proto_rawDescData
263 }
264
265 var file_google_apps_drive_activity_v2_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
266 var file_google_apps_drive_activity_v2_common_proto_goTypes = []interface{}{
267 (*TimeRange)(nil), // 0: google.apps.drive.activity.v2.TimeRange
268 (*Group)(nil), // 1: google.apps.drive.activity.v2.Group
269 (*Domain)(nil), // 2: google.apps.drive.activity.v2.Domain
270 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
271 }
272 var file_google_apps_drive_activity_v2_common_proto_depIdxs = []int32{
273 3, // 0: google.apps.drive.activity.v2.TimeRange.start_time:type_name -> google.protobuf.Timestamp
274 3, // 1: google.apps.drive.activity.v2.TimeRange.end_time:type_name -> google.protobuf.Timestamp
275 2, // [2:2] is the sub-list for method output_type
276 2, // [2:2] is the sub-list for method input_type
277 2, // [2:2] is the sub-list for extension type_name
278 2, // [2:2] is the sub-list for extension extendee
279 0, // [0:2] is the sub-list for field type_name
280 }
281
282 func init() { file_google_apps_drive_activity_v2_common_proto_init() }
283 func file_google_apps_drive_activity_v2_common_proto_init() {
284 if File_google_apps_drive_activity_v2_common_proto != nil {
285 return
286 }
287 if !protoimpl.UnsafeEnabled {
288 file_google_apps_drive_activity_v2_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
289 switch v := v.(*TimeRange); i {
290 case 0:
291 return &v.state
292 case 1:
293 return &v.sizeCache
294 case 2:
295 return &v.unknownFields
296 default:
297 return nil
298 }
299 }
300 file_google_apps_drive_activity_v2_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
301 switch v := v.(*Group); i {
302 case 0:
303 return &v.state
304 case 1:
305 return &v.sizeCache
306 case 2:
307 return &v.unknownFields
308 default:
309 return nil
310 }
311 }
312 file_google_apps_drive_activity_v2_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
313 switch v := v.(*Domain); i {
314 case 0:
315 return &v.state
316 case 1:
317 return &v.sizeCache
318 case 2:
319 return &v.unknownFields
320 default:
321 return nil
322 }
323 }
324 }
325 type x struct{}
326 out := protoimpl.TypeBuilder{
327 File: protoimpl.DescBuilder{
328 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
329 RawDescriptor: file_google_apps_drive_activity_v2_common_proto_rawDesc,
330 NumEnums: 0,
331 NumMessages: 3,
332 NumExtensions: 0,
333 NumServices: 0,
334 },
335 GoTypes: file_google_apps_drive_activity_v2_common_proto_goTypes,
336 DependencyIndexes: file_google_apps_drive_activity_v2_common_proto_depIdxs,
337 MessageInfos: file_google_apps_drive_activity_v2_common_proto_msgTypes,
338 }.Build()
339 File_google_apps_drive_activity_v2_common_proto = out.File
340 file_google_apps_drive_activity_v2_common_proto_rawDesc = nil
341 file_google_apps_drive_activity_v2_common_proto_goTypes = nil
342 file_google_apps_drive_activity_v2_common_proto_depIdxs = nil
343 }