-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
resources.pb.go
executable file
·2607 lines (2348 loc) · 112 KB
/
resources.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v4.25.3
// source: google/streetview/publish/v1/resources.proto
package publishpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
latlng "google.golang.org/genproto/googleapis/type/latlng"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The processing state of the sequence. The states move as follows:
//
// ```
//
// +-------------------------+
// | |
// +---v---+ +----------+ +----+----+
// |PENDING+-->PROCESSING+-->PROCESSED|
// +---+---+ +----+-----+ +----+----+
// | | |
// | +--v---+ |
// +-------->FAILED<---------+
// +------+
//
// ```
//
// The sequence may move to FAILED from any state. Additionally, a processed
// sequence may be re-processed at any time.
type ProcessingState int32
const (
// The state is unspecified, this is the default value.
ProcessingState_PROCESSING_STATE_UNSPECIFIED ProcessingState = 0
// The sequence has not yet started processing.
ProcessingState_PENDING ProcessingState = 1
// The sequence is currently in processing.
ProcessingState_PROCESSING ProcessingState = 2
// The sequence has finished processing including refining position.
ProcessingState_PROCESSED ProcessingState = 3
// The sequence failed processing. See FailureReason for more details.
ProcessingState_FAILED ProcessingState = 4
)
// Enum value maps for ProcessingState.
var (
ProcessingState_name = map[int32]string{
0: "PROCESSING_STATE_UNSPECIFIED",
1: "PENDING",
2: "PROCESSING",
3: "PROCESSED",
4: "FAILED",
}
ProcessingState_value = map[string]int32{
"PROCESSING_STATE_UNSPECIFIED": 0,
"PENDING": 1,
"PROCESSING": 2,
"PROCESSED": 3,
"FAILED": 4,
}
)
func (x ProcessingState) Enum() *ProcessingState {
p := new(ProcessingState)
*p = x
return p
}
func (x ProcessingState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProcessingState) Descriptor() protoreflect.EnumDescriptor {
return file_google_streetview_publish_v1_resources_proto_enumTypes[0].Descriptor()
}
func (ProcessingState) Type() protoreflect.EnumType {
return &file_google_streetview_publish_v1_resources_proto_enumTypes[0]
}
func (x ProcessingState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProcessingState.Descriptor instead.
func (ProcessingState) EnumDescriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{0}
}
// The possible reasons this [PhotoSequence]
// [google.streetview.publish.v1.PhotoSequence] failed to process.
type ProcessingFailureReason int32
const (
// The failure reason is unspecified, this is the default value.
ProcessingFailureReason_PROCESSING_FAILURE_REASON_UNSPECIFIED ProcessingFailureReason = 0
// Video frame's resolution is too small.
ProcessingFailureReason_LOW_RESOLUTION ProcessingFailureReason = 1
// This video has been uploaded before.
ProcessingFailureReason_DUPLICATE ProcessingFailureReason = 2
// Too few GPS points.
ProcessingFailureReason_INSUFFICIENT_GPS ProcessingFailureReason = 3
// No overlap between the time frame of GPS track and the time frame of
// video.
ProcessingFailureReason_NO_OVERLAP_GPS ProcessingFailureReason = 4
// GPS is invalid (e.x. all GPS points are at (0,0))
ProcessingFailureReason_INVALID_GPS ProcessingFailureReason = 5
// The sequence of photos could not be accurately located in the world.
ProcessingFailureReason_FAILED_TO_REFINE_POSITIONS ProcessingFailureReason = 6
// The sequence was taken down for policy reasons.
ProcessingFailureReason_TAKEDOWN ProcessingFailureReason = 7
// The video file was corrupt or could not be decoded.
ProcessingFailureReason_CORRUPT_VIDEO ProcessingFailureReason = 8
// A permanent failure in the underlying system occurred.
ProcessingFailureReason_INTERNAL ProcessingFailureReason = 9
// The video format is invalid or unsupported.
ProcessingFailureReason_INVALID_VIDEO_FORMAT ProcessingFailureReason = 10
// Invalid image aspect ratio found.
ProcessingFailureReason_INVALID_VIDEO_DIMENSIONS ProcessingFailureReason = 11
// Invalid capture time. Timestamps were from the future.
ProcessingFailureReason_INVALID_CAPTURE_TIME ProcessingFailureReason = 12
// GPS data contains a gap greater than 5 seconds in duration.
ProcessingFailureReason_GPS_DATA_GAP ProcessingFailureReason = 13
// GPS data is too erratic to be processed.
ProcessingFailureReason_JUMPY_GPS ProcessingFailureReason = 14
// IMU (Accelerometer, Gyroscope, etc.) data are not valid. They may be
// missing required fields (x, y, z or time), may not be formatted correctly,
// or any other issue that prevents our systems from parsing it.
ProcessingFailureReason_INVALID_IMU ProcessingFailureReason = 15
// Too few IMU points.
ProcessingFailureReason_INSUFFICIENT_IMU ProcessingFailureReason = 21
// Insufficient overlap in the time frame between GPS, IMU, and other time
// series data.
ProcessingFailureReason_INSUFFICIENT_OVERLAP_TIME_SERIES ProcessingFailureReason = 22
// IMU (Accelerometer, Gyroscope, etc.) data contain gaps greater than 0.1
// seconds in duration.
ProcessingFailureReason_IMU_DATA_GAP ProcessingFailureReason = 16
// The camera is not supported.
ProcessingFailureReason_UNSUPPORTED_CAMERA ProcessingFailureReason = 17
// Some frames were indoors, which is unsupported.
ProcessingFailureReason_NOT_OUTDOORS ProcessingFailureReason = 18
// Not enough video frames.
ProcessingFailureReason_INSUFFICIENT_VIDEO_FRAMES ProcessingFailureReason = 19
// Not enough moving data.
ProcessingFailureReason_INSUFFICIENT_MOVEMENT ProcessingFailureReason = 20
// Mast is down.
ProcessingFailureReason_MAST_DOWN ProcessingFailureReason = 27
// Camera is covered.
ProcessingFailureReason_CAMERA_COVERED ProcessingFailureReason = 28
)
// Enum value maps for ProcessingFailureReason.
var (
ProcessingFailureReason_name = map[int32]string{
0: "PROCESSING_FAILURE_REASON_UNSPECIFIED",
1: "LOW_RESOLUTION",
2: "DUPLICATE",
3: "INSUFFICIENT_GPS",
4: "NO_OVERLAP_GPS",
5: "INVALID_GPS",
6: "FAILED_TO_REFINE_POSITIONS",
7: "TAKEDOWN",
8: "CORRUPT_VIDEO",
9: "INTERNAL",
10: "INVALID_VIDEO_FORMAT",
11: "INVALID_VIDEO_DIMENSIONS",
12: "INVALID_CAPTURE_TIME",
13: "GPS_DATA_GAP",
14: "JUMPY_GPS",
15: "INVALID_IMU",
21: "INSUFFICIENT_IMU",
22: "INSUFFICIENT_OVERLAP_TIME_SERIES",
16: "IMU_DATA_GAP",
17: "UNSUPPORTED_CAMERA",
18: "NOT_OUTDOORS",
19: "INSUFFICIENT_VIDEO_FRAMES",
20: "INSUFFICIENT_MOVEMENT",
27: "MAST_DOWN",
28: "CAMERA_COVERED",
}
ProcessingFailureReason_value = map[string]int32{
"PROCESSING_FAILURE_REASON_UNSPECIFIED": 0,
"LOW_RESOLUTION": 1,
"DUPLICATE": 2,
"INSUFFICIENT_GPS": 3,
"NO_OVERLAP_GPS": 4,
"INVALID_GPS": 5,
"FAILED_TO_REFINE_POSITIONS": 6,
"TAKEDOWN": 7,
"CORRUPT_VIDEO": 8,
"INTERNAL": 9,
"INVALID_VIDEO_FORMAT": 10,
"INVALID_VIDEO_DIMENSIONS": 11,
"INVALID_CAPTURE_TIME": 12,
"GPS_DATA_GAP": 13,
"JUMPY_GPS": 14,
"INVALID_IMU": 15,
"INSUFFICIENT_IMU": 21,
"INSUFFICIENT_OVERLAP_TIME_SERIES": 22,
"IMU_DATA_GAP": 16,
"UNSUPPORTED_CAMERA": 17,
"NOT_OUTDOORS": 18,
"INSUFFICIENT_VIDEO_FRAMES": 19,
"INSUFFICIENT_MOVEMENT": 20,
"MAST_DOWN": 27,
"CAMERA_COVERED": 28,
}
)
func (x ProcessingFailureReason) Enum() *ProcessingFailureReason {
p := new(ProcessingFailureReason)
*p = x
return p
}
func (x ProcessingFailureReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProcessingFailureReason) Descriptor() protoreflect.EnumDescriptor {
return file_google_streetview_publish_v1_resources_proto_enumTypes[1].Descriptor()
}
func (ProcessingFailureReason) Type() protoreflect.EnumType {
return &file_google_streetview_publish_v1_resources_proto_enumTypes[1]
}
func (x ProcessingFailureReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProcessingFailureReason.Descriptor instead.
func (ProcessingFailureReason) EnumDescriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{1}
}
// Status of rights transfer.
type Photo_TransferStatus int32
const (
// The status of this transfer is unspecified.
Photo_TRANSFER_STATUS_UNKNOWN Photo_TransferStatus = 0
// This photo has never been in a transfer.
Photo_NEVER_TRANSFERRED Photo_TransferStatus = 1
// This photo transfer has been initiated, but the receiver has not yet
// responded.
Photo_PENDING Photo_TransferStatus = 2
// The photo transfer has been completed, and this photo has been
// transferred to the recipient.
Photo_COMPLETED Photo_TransferStatus = 3
// The recipient rejected this photo transfer.
Photo_REJECTED Photo_TransferStatus = 4
// The photo transfer expired before the recipient took any action.
Photo_EXPIRED Photo_TransferStatus = 5
// The sender cancelled this photo transfer.
Photo_CANCELLED Photo_TransferStatus = 6
// The recipient owns this photo due to a rights transfer.
Photo_RECEIVED_VIA_TRANSFER Photo_TransferStatus = 7
)
// Enum value maps for Photo_TransferStatus.
var (
Photo_TransferStatus_name = map[int32]string{
0: "TRANSFER_STATUS_UNKNOWN",
1: "NEVER_TRANSFERRED",
2: "PENDING",
3: "COMPLETED",
4: "REJECTED",
5: "EXPIRED",
6: "CANCELLED",
7: "RECEIVED_VIA_TRANSFER",
}
Photo_TransferStatus_value = map[string]int32{
"TRANSFER_STATUS_UNKNOWN": 0,
"NEVER_TRANSFERRED": 1,
"PENDING": 2,
"COMPLETED": 3,
"REJECTED": 4,
"EXPIRED": 5,
"CANCELLED": 6,
"RECEIVED_VIA_TRANSFER": 7,
}
)
func (x Photo_TransferStatus) Enum() *Photo_TransferStatus {
p := new(Photo_TransferStatus)
*p = x
return p
}
func (x Photo_TransferStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Photo_TransferStatus) Descriptor() protoreflect.EnumDescriptor {
return file_google_streetview_publish_v1_resources_proto_enumTypes[2].Descriptor()
}
func (Photo_TransferStatus) Type() protoreflect.EnumType {
return &file_google_streetview_publish_v1_resources_proto_enumTypes[2]
}
func (x Photo_TransferStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Photo_TransferStatus.Descriptor instead.
func (Photo_TransferStatus) EnumDescriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{7, 0}
}
// Publication status of the photo in Google Maps.
type Photo_MapsPublishStatus int32
const (
// The status of the photo is unknown.
Photo_UNSPECIFIED_MAPS_PUBLISH_STATUS Photo_MapsPublishStatus = 0
// The photo is published to the public through Google Maps.
Photo_PUBLISHED Photo_MapsPublishStatus = 1
// The photo has been rejected for an unknown reason.
Photo_REJECTED_UNKNOWN Photo_MapsPublishStatus = 2
)
// Enum value maps for Photo_MapsPublishStatus.
var (
Photo_MapsPublishStatus_name = map[int32]string{
0: "UNSPECIFIED_MAPS_PUBLISH_STATUS",
1: "PUBLISHED",
2: "REJECTED_UNKNOWN",
}
Photo_MapsPublishStatus_value = map[string]int32{
"UNSPECIFIED_MAPS_PUBLISH_STATUS": 0,
"PUBLISHED": 1,
"REJECTED_UNKNOWN": 2,
}
)
func (x Photo_MapsPublishStatus) Enum() *Photo_MapsPublishStatus {
p := new(Photo_MapsPublishStatus)
*p = x
return p
}
func (x Photo_MapsPublishStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Photo_MapsPublishStatus) Descriptor() protoreflect.EnumDescriptor {
return file_google_streetview_publish_v1_resources_proto_enumTypes[3].Descriptor()
}
func (Photo_MapsPublishStatus) Type() protoreflect.EnumType {
return &file_google_streetview_publish_v1_resources_proto_enumTypes[3]
}
func (x Photo_MapsPublishStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Photo_MapsPublishStatus.Descriptor instead.
func (Photo_MapsPublishStatus) EnumDescriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{7, 1}
}
// Primary source of GPS measurements.
type PhotoSequence_GpsSource int32
const (
// GPS in raw_gps_timeline takes precedence if it exists.
PhotoSequence_PHOTO_SEQUENCE PhotoSequence_GpsSource = 0
// GPS in Camera Motion Metadata Track (CAMM) takes precedence if it exists.
PhotoSequence_CAMERA_MOTION_METADATA_TRACK PhotoSequence_GpsSource = 1
)
// Enum value maps for PhotoSequence_GpsSource.
var (
PhotoSequence_GpsSource_name = map[int32]string{
0: "PHOTO_SEQUENCE",
1: "CAMERA_MOTION_METADATA_TRACK",
}
PhotoSequence_GpsSource_value = map[string]int32{
"PHOTO_SEQUENCE": 0,
"CAMERA_MOTION_METADATA_TRACK": 1,
}
)
func (x PhotoSequence_GpsSource) Enum() *PhotoSequence_GpsSource {
p := new(PhotoSequence_GpsSource)
*p = x
return p
}
func (x PhotoSequence_GpsSource) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PhotoSequence_GpsSource) Descriptor() protoreflect.EnumDescriptor {
return file_google_streetview_publish_v1_resources_proto_enumTypes[4].Descriptor()
}
func (PhotoSequence_GpsSource) Type() protoreflect.EnumType {
return &file_google_streetview_publish_v1_resources_proto_enumTypes[4]
}
func (x PhotoSequence_GpsSource) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PhotoSequence_GpsSource.Descriptor instead.
func (PhotoSequence_GpsSource) EnumDescriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{8, 0}
}
// Upload reference for media files.
type UploadRef struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required.
//
// Types that are assignable to FileSource:
//
// *UploadRef_UploadUrl
FileSource isUploadRef_FileSource `protobuf_oneof:"file_source"`
}
func (x *UploadRef) Reset() {
*x = UploadRef{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UploadRef) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UploadRef) ProtoMessage() {}
func (x *UploadRef) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UploadRef.ProtoReflect.Descriptor instead.
func (*UploadRef) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *UploadRef) GetFileSource() isUploadRef_FileSource {
if m != nil {
return m.FileSource
}
return nil
}
func (x *UploadRef) GetUploadUrl() string {
if x, ok := x.GetFileSource().(*UploadRef_UploadUrl); ok {
return x.UploadUrl
}
return ""
}
type isUploadRef_FileSource interface {
isUploadRef_FileSource()
}
type UploadRef_UploadUrl struct {
// An upload reference should be unique for each user. It follows
// the form:
// "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}"
UploadUrl string `protobuf:"bytes,1,opt,name=upload_url,json=uploadUrl,proto3,oneof"`
}
func (*UploadRef_UploadUrl) isUploadRef_FileSource() {}
// Identifier for a [Photo][google.streetview.publish.v1.Photo].
type PhotoId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A unique identifier for a photo.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *PhotoId) Reset() {
*x = PhotoId{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PhotoId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PhotoId) ProtoMessage() {}
func (x *PhotoId) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PhotoId.ProtoReflect.Descriptor instead.
func (*PhotoId) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *PhotoId) GetId() string {
if x != nil {
return x.Id
}
return ""
}
// Level information containing level number and its corresponding name.
type Level struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Floor number, used for ordering. 0 indicates the ground level, 1
// indicates the first level above ground level, -1 indicates the first level
// under ground level. Non-integer values are OK.
Number float64 `protobuf:"fixed64,1,opt,name=number,proto3" json:"number,omitempty"`
// Required. A name assigned to this Level, restricted to 3 characters.
// Consider how the elevator buttons would be labeled for this level if there
// was an elevator.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *Level) Reset() {
*x = Level{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Level) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Level) ProtoMessage() {}
func (x *Level) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Level.ProtoReflect.Descriptor instead.
func (*Level) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (x *Level) GetNumber() float64 {
if x != nil {
return x.Number
}
return 0
}
func (x *Level) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Raw pose measurement for an entity.
type Pose struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Latitude and longitude pair of the pose, as explained here:
// https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng
// When creating a [Photo][google.streetview.publish.v1.Photo], if the
// latitude and longitude pair are not provided, the geolocation from the
// exif header is used. A latitude and longitude pair not provided in the
// photo or exif header causes the photo process to fail.
LatLngPair *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng_pair,json=latLngPair,proto3" json:"lat_lng_pair,omitempty"`
// Altitude of the pose in meters above WGS84 ellipsoid.
// NaN indicates an unmeasured quantity.
Altitude float64 `protobuf:"fixed64,2,opt,name=altitude,proto3" json:"altitude,omitempty"`
// The following pose parameters pertain to the center of the photo. They
// match https://developers.google.com/streetview/spherical-metadata.
// Compass heading, measured at the center of the photo in degrees clockwise
// from North. Value must be >=0 and <360. NaN indicates an unmeasured
// quantity.
Heading float64 `protobuf:"fixed64,3,opt,name=heading,proto3" json:"heading,omitempty"`
// Pitch, measured at the center of the photo in degrees. Value must be >=-90
// and <= 90. A value of -90 means looking directly down, and a value of 90
// means looking directly up.
// NaN indicates an unmeasured quantity.
Pitch float64 `protobuf:"fixed64,4,opt,name=pitch,proto3" json:"pitch,omitempty"`
// Roll, measured in degrees. Value must be >= 0 and <360. A value of 0
// means level with the horizon.
// NaN indicates an unmeasured quantity.
Roll float64 `protobuf:"fixed64,5,opt,name=roll,proto3" json:"roll,omitempty"`
// Time of the GPS record since UTC epoch.
GpsRecordTimestampUnixEpoch *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=gps_record_timestamp_unix_epoch,json=gpsRecordTimestampUnixEpoch,proto3" json:"gps_record_timestamp_unix_epoch,omitempty"`
// Level (the floor in a building) used to configure vertical navigation.
Level *Level `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
// The estimated horizontal accuracy of this pose in meters with 68%
// confidence (one standard deviation). For example, on Android, this value is
// available from this method:
// https://developer.android.com/reference/android/location/Location#getAccuracy().
// Other platforms have different methods of obtaining similar accuracy
// estimations.
AccuracyMeters float32 `protobuf:"fixed32,9,opt,name=accuracy_meters,json=accuracyMeters,proto3" json:"accuracy_meters,omitempty"`
}
func (x *Pose) Reset() {
*x = Pose{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Pose) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Pose) ProtoMessage() {}
func (x *Pose) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Pose.ProtoReflect.Descriptor instead.
func (*Pose) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{3}
}
func (x *Pose) GetLatLngPair() *latlng.LatLng {
if x != nil {
return x.LatLngPair
}
return nil
}
func (x *Pose) GetAltitude() float64 {
if x != nil {
return x.Altitude
}
return 0
}
func (x *Pose) GetHeading() float64 {
if x != nil {
return x.Heading
}
return 0
}
func (x *Pose) GetPitch() float64 {
if x != nil {
return x.Pitch
}
return 0
}
func (x *Pose) GetRoll() float64 {
if x != nil {
return x.Roll
}
return 0
}
func (x *Pose) GetGpsRecordTimestampUnixEpoch() *timestamppb.Timestamp {
if x != nil {
return x.GpsRecordTimestampUnixEpoch
}
return nil
}
func (x *Pose) GetLevel() *Level {
if x != nil {
return x.Level
}
return nil
}
func (x *Pose) GetAccuracyMeters() float32 {
if x != nil {
return x.AccuracyMeters
}
return 0
}
// IMU data from the device sensors.
type Imu struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The accelerometer measurements in meters/sec^2 with increasing timestamps
// from devices.
AccelMpsps []*Imu_Measurement3D `protobuf:"bytes,1,rep,name=accel_mpsps,json=accelMpsps,proto3" json:"accel_mpsps,omitempty"`
// The gyroscope measurements in radians/sec with increasing timestamps from
// devices.
GyroRps []*Imu_Measurement3D `protobuf:"bytes,2,rep,name=gyro_rps,json=gyroRps,proto3" json:"gyro_rps,omitempty"`
// The magnetometer measurements of the magnetic field in microtesla (uT) with
// increasing timestamps from devices.
MagUt []*Imu_Measurement3D `protobuf:"bytes,3,rep,name=mag_ut,json=magUt,proto3" json:"mag_ut,omitempty"`
}
func (x *Imu) Reset() {
*x = Imu{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Imu) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Imu) ProtoMessage() {}
func (x *Imu) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Imu.ProtoReflect.Descriptor instead.
func (*Imu) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{4}
}
func (x *Imu) GetAccelMpsps() []*Imu_Measurement3D {
if x != nil {
return x.AccelMpsps
}
return nil
}
func (x *Imu) GetGyroRps() []*Imu_Measurement3D {
if x != nil {
return x.GyroRps
}
return nil
}
func (x *Imu) GetMagUt() []*Imu_Measurement3D {
if x != nil {
return x.MagUt
}
return nil
}
// Place metadata for an entity.
type Place struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Place identifier, as described in
// https://developers.google.com/places/place-id.
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
// Output only. The name of the place, localized to the language_code.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The language_code that the name is localized with. This should
// be the language_code specified in the request, but may be a fallback.
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
}
func (x *Place) Reset() {
*x = Place{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Place) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Place) ProtoMessage() {}
func (x *Place) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Place.ProtoReflect.Descriptor instead.
func (*Place) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{5}
}
func (x *Place) GetPlaceId() string {
if x != nil {
return x.PlaceId
}
return ""
}
func (x *Place) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Place) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
// A connection is the link from a source photo to a destination photo.
type Connection struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The destination of the connection from the containing photo to
// another photo.
Target *PhotoId `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
}
func (x *Connection) Reset() {
*x = Connection{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Connection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Connection) ProtoMessage() {}
func (x *Connection) ProtoReflect() protoreflect.Message {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) Descriptor() ([]byte, []int) {
return file_google_streetview_publish_v1_resources_proto_rawDescGZIP(), []int{6}
}
func (x *Connection) GetTarget() *PhotoId {
if x != nil {
return x.Target
}
return nil
}
// Photo is used to store 360 photos along with photo metadata.
type Photo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Output only. Required when updating a photo. Output only when
// creating a photo. Identifier for the photo, which is unique among all
// photos in Google.
PhotoId *PhotoId `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
// Input only. Required when creating a photo. Input only. The resource URL
// where the photo bytes are uploaded to.
UploadReference *UploadRef `protobuf:"bytes,2,opt,name=upload_reference,json=uploadReference,proto3" json:"upload_reference,omitempty"`
// Output only. The download URL for the photo bytes. This field is set only
// when
// [GetPhotoRequest.view][google.streetview.publish.v1.GetPhotoRequest.view]
// is set to
// [PhotoView.INCLUDE_DOWNLOAD_URL][google.streetview.publish.v1.PhotoView.INCLUDE_DOWNLOAD_URL].
DownloadUrl string `protobuf:"bytes,3,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"`
// Output only. The thumbnail URL for showing a preview of the given photo.
ThumbnailUrl string `protobuf:"bytes,9,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"`
// Output only. The share link for the photo.
ShareLink string `protobuf:"bytes,11,opt,name=share_link,json=shareLink,proto3" json:"share_link,omitempty"`
// Optional. Pose of the photo.
Pose *Pose `protobuf:"bytes,4,opt,name=pose,proto3" json:"pose,omitempty"`
// Optional. Connections to other photos. A connection represents the link
// from this photo to another photo.
Connections []*Connection `protobuf:"bytes,5,rep,name=connections,proto3" json:"connections,omitempty"`
// Optional. Absolute time when the photo was captured.
// When the photo has no exif timestamp, this is used to set a timestamp in
// the photo metadata.
CaptureTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"`
// Output only. Time when the image was uploaded.
UploadTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`
// Optional. Places where this photo belongs.
Places []*Place `protobuf:"bytes,7,rep,name=places,proto3" json:"places,omitempty"`
// Output only. View count of the photo.
ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
// Output only. Status of rights transfer on this photo.
TransferStatus Photo_TransferStatus `protobuf:"varint,12,opt,name=transfer_status,json=transferStatus,proto3,enum=google.streetview.publish.v1.Photo_TransferStatus" json:"transfer_status,omitempty"`
// Output only. Status in Google Maps, whether this photo was published or
// rejected.
MapsPublishStatus Photo_MapsPublishStatus `protobuf:"varint,13,opt,name=maps_publish_status,json=mapsPublishStatus,proto3,enum=google.streetview.publish.v1.Photo_MapsPublishStatus" json:"maps_publish_status,omitempty"`
}
func (x *Photo) Reset() {
*x = Photo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_streetview_publish_v1_resources_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}