/usr/share/gocode/src/google.golang.org/genproto/googleapis/streetview/publish/v1/resources.pb.go is in golang-google-genproto-dev 0.0~git20171123.7f0da29-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/streetview/publish/v1/resources.proto
/*
Package publish is a generated protocol buffer package.
It is generated from these files:
google/streetview/publish/v1/resources.proto
google/streetview/publish/v1/rpcmessages.proto
google/streetview/publish/v1/streetview_publish.proto
It has these top-level messages:
UploadRef
PhotoId
Level
Pose
Place
Connection
Photo
CreatePhotoRequest
GetPhotoRequest
BatchGetPhotosRequest
BatchGetPhotosResponse
PhotoResponse
ListPhotosRequest
ListPhotosResponse
UpdatePhotoRequest
BatchUpdatePhotosRequest
BatchUpdatePhotosResponse
DeletePhotoRequest
BatchDeletePhotosRequest
BatchDeletePhotosResponse
*/
package publish
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import google_type "google.golang.org/genproto/googleapis/type/latlng"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Upload reference for media files.
type UploadRef struct {
// Required. 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" json:"upload_url,omitempty"`
}
func (m *UploadRef) Reset() { *m = UploadRef{} }
func (m *UploadRef) String() string { return proto.CompactTextString(m) }
func (*UploadRef) ProtoMessage() {}
func (*UploadRef) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *UploadRef) GetUploadUrl() string {
if m != nil {
return m.UploadUrl
}
return ""
}
// Identifier for a photo.
type PhotoId struct {
// Required. A base64 encoded identifier.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (m *PhotoId) Reset() { *m = PhotoId{} }
func (m *PhotoId) String() string { return proto.CompactTextString(m) }
func (*PhotoId) ProtoMessage() {}
func (*PhotoId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *PhotoId) GetId() string {
if m != nil {
return m.Id
}
return ""
}
// Level information containing level number and its corresponding name.
type Level struct {
// 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" 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" json:"name,omitempty"`
}
func (m *Level) Reset() { *m = Level{} }
func (m *Level) String() string { return proto.CompactTextString(m) }
func (*Level) ProtoMessage() {}
func (*Level) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Level) GetNumber() float64 {
if m != nil {
return m.Number
}
return 0
}
func (m *Level) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Raw pose measurement for an entity.
type Pose struct {
// 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, if the latitude and longitude pair are not provided
// here, the geolocation from the exif header will be used.
// If the latitude and longitude pair is not provided and cannot be found in
// the exif header, the create photo process will fail.
LatLngPair *google_type.LatLng `protobuf:"bytes,1,opt,name=lat_lng_pair,json=latLngPair" json:"lat_lng_pair,omitempty"`
// Altitude of the pose in meters above ground level (as defined by WGS84).
// NaN indicates an unmeasured quantity.
Altitude float64 `protobuf:"fixed64,2,opt,name=altitude" json:"altitude,omitempty"`
// 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" 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" 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" json:"roll,omitempty"`
// Level (the floor in a building) used to configure vertical navigation.
Level *Level `protobuf:"bytes,7,opt,name=level" json:"level,omitempty"`
}
func (m *Pose) Reset() { *m = Pose{} }
func (m *Pose) String() string { return proto.CompactTextString(m) }
func (*Pose) ProtoMessage() {}
func (*Pose) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Pose) GetLatLngPair() *google_type.LatLng {
if m != nil {
return m.LatLngPair
}
return nil
}
func (m *Pose) GetAltitude() float64 {
if m != nil {
return m.Altitude
}
return 0
}
func (m *Pose) GetHeading() float64 {
if m != nil {
return m.Heading
}
return 0
}
func (m *Pose) GetPitch() float64 {
if m != nil {
return m.Pitch
}
return 0
}
func (m *Pose) GetRoll() float64 {
if m != nil {
return m.Roll
}
return 0
}
func (m *Pose) GetLevel() *Level {
if m != nil {
return m.Level
}
return nil
}
// Place metadata for an entity.
type Place struct {
// Required. Place identifier, as described in
// https://developers.google.com/places/place-id.
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId" json:"place_id,omitempty"`
}
func (m *Place) Reset() { *m = Place{} }
func (m *Place) String() string { return proto.CompactTextString(m) }
func (*Place) ProtoMessage() {}
func (*Place) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *Place) GetPlaceId() string {
if m != nil {
return m.PlaceId
}
return ""
}
// A connection is the link from a source photo to a destination photo.
type Connection struct {
// Required. The destination of the connection from the containing photo to
// another photo.
Target *PhotoId `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}
func (m *Connection) Reset() { *m = Connection{} }
func (m *Connection) String() string { return proto.CompactTextString(m) }
func (*Connection) ProtoMessage() {}
func (*Connection) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *Connection) GetTarget() *PhotoId {
if m != nil {
return m.Target
}
return nil
}
// Photo is used to store 360 photos along with photo metadata.
type Photo struct {
// Output only. Identifier for the photo, which is unique among all photos in
// Google.
PhotoId *PhotoId `protobuf:"bytes,1,opt,name=photo_id,json=photoId" json:"photo_id,omitempty"`
// Required (when creating photo). Input only. The resource URL where the
// photo bytes are uploaded to.
UploadReference *UploadRef `protobuf:"bytes,2,opt,name=upload_reference,json=uploadReference" json:"upload_reference,omitempty"`
// Output only. The download URL for the photo bytes. This field is set only
// when the `view` parameter in a `GetPhotoRequest` is set to
// `INCLUDE_DOWNLOAD_URL`.
DownloadUrl string `protobuf:"bytes,3,opt,name=download_url,json=downloadUrl" 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" json:"thumbnail_url,omitempty"`
// Output only. The share link for the photo.
ShareLink string `protobuf:"bytes,11,opt,name=share_link,json=shareLink" json:"share_link,omitempty"`
// Pose of the photo.
Pose *Pose `protobuf:"bytes,4,opt,name=pose" json:"pose,omitempty"`
// Connections to other photos. A connection represents the link from this
// photo to another photo.
Connections []*Connection `protobuf:"bytes,5,rep,name=connections" json:"connections,omitempty"`
// 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 *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime" json:"capture_time,omitempty"`
// Places where this photo belongs.
Places []*Place `protobuf:"bytes,7,rep,name=places" json:"places,omitempty"`
// Output only. View count of the photo.
ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount" json:"view_count,omitempty"`
}
func (m *Photo) Reset() { *m = Photo{} }
func (m *Photo) String() string { return proto.CompactTextString(m) }
func (*Photo) ProtoMessage() {}
func (*Photo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *Photo) GetPhotoId() *PhotoId {
if m != nil {
return m.PhotoId
}
return nil
}
func (m *Photo) GetUploadReference() *UploadRef {
if m != nil {
return m.UploadReference
}
return nil
}
func (m *Photo) GetDownloadUrl() string {
if m != nil {
return m.DownloadUrl
}
return ""
}
func (m *Photo) GetThumbnailUrl() string {
if m != nil {
return m.ThumbnailUrl
}
return ""
}
func (m *Photo) GetShareLink() string {
if m != nil {
return m.ShareLink
}
return ""
}
func (m *Photo) GetPose() *Pose {
if m != nil {
return m.Pose
}
return nil
}
func (m *Photo) GetConnections() []*Connection {
if m != nil {
return m.Connections
}
return nil
}
func (m *Photo) GetCaptureTime() *google_protobuf1.Timestamp {
if m != nil {
return m.CaptureTime
}
return nil
}
func (m *Photo) GetPlaces() []*Place {
if m != nil {
return m.Places
}
return nil
}
func (m *Photo) GetViewCount() int64 {
if m != nil {
return m.ViewCount
}
return 0
}
func init() {
proto.RegisterType((*UploadRef)(nil), "google.streetview.publish.v1.UploadRef")
proto.RegisterType((*PhotoId)(nil), "google.streetview.publish.v1.PhotoId")
proto.RegisterType((*Level)(nil), "google.streetview.publish.v1.Level")
proto.RegisterType((*Pose)(nil), "google.streetview.publish.v1.Pose")
proto.RegisterType((*Place)(nil), "google.streetview.publish.v1.Place")
proto.RegisterType((*Connection)(nil), "google.streetview.publish.v1.Connection")
proto.RegisterType((*Photo)(nil), "google.streetview.publish.v1.Photo")
}
func init() { proto.RegisterFile("google/streetview/publish/v1/resources.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 651 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdb, 0x6a, 0xdb, 0x4c,
0x10, 0xc6, 0xf1, 0x29, 0x1e, 0xf9, 0x3f, 0xb0, 0xff, 0x4f, 0x51, 0x4c, 0x43, 0x53, 0x85, 0x52,
0x53, 0x8a, 0x44, 0x1c, 0x5a, 0x28, 0x21, 0x50, 0x92, 0xab, 0xb4, 0xbe, 0x30, 0xdb, 0xa6, 0x17,
0xbd, 0x11, 0x6b, 0x69, 0x22, 0x2f, 0x59, 0xef, 0x2e, 0xab, 0x95, 0x43, 0x9f, 0xa1, 0x8f, 0xd1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