1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/streetview/publish/v1/rpcmessages.proto 3 4package publish // import "google.golang.org/genproto/googleapis/streetview/publish/v1" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import status "google.golang.org/genproto/googleapis/rpc/status" 10import field_mask "google.golang.org/genproto/protobuf/field_mask" 11 12// Reference imports to suppress errors if they are not otherwise used. 13var _ = proto.Marshal 14var _ = fmt.Errorf 15var _ = math.Inf 16 17// This is a compile-time assertion to ensure that this generated file 18// is compatible with the proto package it is being compiled against. 19// A compilation error at this line likely means your copy of the 20// proto package needs to be updated. 21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 22 23// Specifies which view of the `Photo` should be included in the response. 24type PhotoView int32 25 26const ( 27 // Server reponses do not include the download URL for the photo bytes. 28 // The default value. 29 PhotoView_BASIC PhotoView = 0 30 // Server responses include the download URL for the photo bytes. 31 PhotoView_INCLUDE_DOWNLOAD_URL PhotoView = 1 32) 33 34var PhotoView_name = map[int32]string{ 35 0: "BASIC", 36 1: "INCLUDE_DOWNLOAD_URL", 37} 38var PhotoView_value = map[string]int32{ 39 "BASIC": 0, 40 "INCLUDE_DOWNLOAD_URL": 1, 41} 42 43func (x PhotoView) String() string { 44 return proto.EnumName(PhotoView_name, int32(x)) 45} 46func (PhotoView) EnumDescriptor() ([]byte, []int) { 47 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{0} 48} 49 50// Request to create a photo. 51type CreatePhotoRequest struct { 52 // Required. Photo to create. 53 Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` 54 XXX_NoUnkeyedLiteral struct{} `json:"-"` 55 XXX_unrecognized []byte `json:"-"` 56 XXX_sizecache int32 `json:"-"` 57} 58 59func (m *CreatePhotoRequest) Reset() { *m = CreatePhotoRequest{} } 60func (m *CreatePhotoRequest) String() string { return proto.CompactTextString(m) } 61func (*CreatePhotoRequest) ProtoMessage() {} 62func (*CreatePhotoRequest) Descriptor() ([]byte, []int) { 63 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{0} 64} 65func (m *CreatePhotoRequest) XXX_Unmarshal(b []byte) error { 66 return xxx_messageInfo_CreatePhotoRequest.Unmarshal(m, b) 67} 68func (m *CreatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 69 return xxx_messageInfo_CreatePhotoRequest.Marshal(b, m, deterministic) 70} 71func (dst *CreatePhotoRequest) XXX_Merge(src proto.Message) { 72 xxx_messageInfo_CreatePhotoRequest.Merge(dst, src) 73} 74func (m *CreatePhotoRequest) XXX_Size() int { 75 return xxx_messageInfo_CreatePhotoRequest.Size(m) 76} 77func (m *CreatePhotoRequest) XXX_DiscardUnknown() { 78 xxx_messageInfo_CreatePhotoRequest.DiscardUnknown(m) 79} 80 81var xxx_messageInfo_CreatePhotoRequest proto.InternalMessageInfo 82 83func (m *CreatePhotoRequest) GetPhoto() *Photo { 84 if m != nil { 85 return m.Photo 86 } 87 return nil 88} 89 90// Request to get a photo. 91// 92// By default 93// - does not return the download URL for the photo bytes. 94// 95// Parameters: 96// - 'view' controls if the download URL for the photo bytes will be returned. 97type GetPhotoRequest struct { 98 // Required. ID of the photo. 99 PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` 100 // Specifies if a download URL for the photo bytes should be returned in the 101 // Photo response. 102 View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"` 103 XXX_NoUnkeyedLiteral struct{} `json:"-"` 104 XXX_unrecognized []byte `json:"-"` 105 XXX_sizecache int32 `json:"-"` 106} 107 108func (m *GetPhotoRequest) Reset() { *m = GetPhotoRequest{} } 109func (m *GetPhotoRequest) String() string { return proto.CompactTextString(m) } 110func (*GetPhotoRequest) ProtoMessage() {} 111func (*GetPhotoRequest) Descriptor() ([]byte, []int) { 112 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{1} 113} 114func (m *GetPhotoRequest) XXX_Unmarshal(b []byte) error { 115 return xxx_messageInfo_GetPhotoRequest.Unmarshal(m, b) 116} 117func (m *GetPhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 118 return xxx_messageInfo_GetPhotoRequest.Marshal(b, m, deterministic) 119} 120func (dst *GetPhotoRequest) XXX_Merge(src proto.Message) { 121 xxx_messageInfo_GetPhotoRequest.Merge(dst, src) 122} 123func (m *GetPhotoRequest) XXX_Size() int { 124 return xxx_messageInfo_GetPhotoRequest.Size(m) 125} 126func (m *GetPhotoRequest) XXX_DiscardUnknown() { 127 xxx_messageInfo_GetPhotoRequest.DiscardUnknown(m) 128} 129 130var xxx_messageInfo_GetPhotoRequest proto.InternalMessageInfo 131 132func (m *GetPhotoRequest) GetPhotoId() string { 133 if m != nil { 134 return m.PhotoId 135 } 136 return "" 137} 138 139func (m *GetPhotoRequest) GetView() PhotoView { 140 if m != nil { 141 return m.View 142 } 143 return PhotoView_BASIC 144} 145 146// Request to get one or more photos. 147// By default 148// - does not return the download URL for the photo bytes. 149// 150// Parameters: 151// - 'view' controls if the download URL for the photo bytes will be returned. 152type BatchGetPhotosRequest struct { 153 // Required. IDs of the photos. 154 PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"` 155 // Specifies if a download URL for the photo bytes should be returned in the 156 // Photo response. 157 View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"` 158 XXX_NoUnkeyedLiteral struct{} `json:"-"` 159 XXX_unrecognized []byte `json:"-"` 160 XXX_sizecache int32 `json:"-"` 161} 162 163func (m *BatchGetPhotosRequest) Reset() { *m = BatchGetPhotosRequest{} } 164func (m *BatchGetPhotosRequest) String() string { return proto.CompactTextString(m) } 165func (*BatchGetPhotosRequest) ProtoMessage() {} 166func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int) { 167 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{2} 168} 169func (m *BatchGetPhotosRequest) XXX_Unmarshal(b []byte) error { 170 return xxx_messageInfo_BatchGetPhotosRequest.Unmarshal(m, b) 171} 172func (m *BatchGetPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 173 return xxx_messageInfo_BatchGetPhotosRequest.Marshal(b, m, deterministic) 174} 175func (dst *BatchGetPhotosRequest) XXX_Merge(src proto.Message) { 176 xxx_messageInfo_BatchGetPhotosRequest.Merge(dst, src) 177} 178func (m *BatchGetPhotosRequest) XXX_Size() int { 179 return xxx_messageInfo_BatchGetPhotosRequest.Size(m) 180} 181func (m *BatchGetPhotosRequest) XXX_DiscardUnknown() { 182 xxx_messageInfo_BatchGetPhotosRequest.DiscardUnknown(m) 183} 184 185var xxx_messageInfo_BatchGetPhotosRequest proto.InternalMessageInfo 186 187func (m *BatchGetPhotosRequest) GetPhotoIds() []string { 188 if m != nil { 189 return m.PhotoIds 190 } 191 return nil 192} 193 194func (m *BatchGetPhotosRequest) GetView() PhotoView { 195 if m != nil { 196 return m.View 197 } 198 return PhotoView_BASIC 199} 200 201// Response to batch get of photos. 202type BatchGetPhotosResponse struct { 203 // List of results for each individual photo requested, in the same order as 204 // the request. 205 Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 206 XXX_NoUnkeyedLiteral struct{} `json:"-"` 207 XXX_unrecognized []byte `json:"-"` 208 XXX_sizecache int32 `json:"-"` 209} 210 211func (m *BatchGetPhotosResponse) Reset() { *m = BatchGetPhotosResponse{} } 212func (m *BatchGetPhotosResponse) String() string { return proto.CompactTextString(m) } 213func (*BatchGetPhotosResponse) ProtoMessage() {} 214func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int) { 215 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{3} 216} 217func (m *BatchGetPhotosResponse) XXX_Unmarshal(b []byte) error { 218 return xxx_messageInfo_BatchGetPhotosResponse.Unmarshal(m, b) 219} 220func (m *BatchGetPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 221 return xxx_messageInfo_BatchGetPhotosResponse.Marshal(b, m, deterministic) 222} 223func (dst *BatchGetPhotosResponse) XXX_Merge(src proto.Message) { 224 xxx_messageInfo_BatchGetPhotosResponse.Merge(dst, src) 225} 226func (m *BatchGetPhotosResponse) XXX_Size() int { 227 return xxx_messageInfo_BatchGetPhotosResponse.Size(m) 228} 229func (m *BatchGetPhotosResponse) XXX_DiscardUnknown() { 230 xxx_messageInfo_BatchGetPhotosResponse.DiscardUnknown(m) 231} 232 233var xxx_messageInfo_BatchGetPhotosResponse proto.InternalMessageInfo 234 235func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse { 236 if m != nil { 237 return m.Results 238 } 239 return nil 240} 241 242// Response payload for a single `Photo` in batch operations including 243// `BatchGetPhotosRequest` and `BatchUpdatePhotosRequest`. 244type PhotoResponse struct { 245 // The status for the operation to get or update a single photo in the batch 246 // request. 247 Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 248 // The photo resource, if the request was successful. 249 Photo *Photo `protobuf:"bytes,2,opt,name=photo,proto3" json:"photo,omitempty"` 250 XXX_NoUnkeyedLiteral struct{} `json:"-"` 251 XXX_unrecognized []byte `json:"-"` 252 XXX_sizecache int32 `json:"-"` 253} 254 255func (m *PhotoResponse) Reset() { *m = PhotoResponse{} } 256func (m *PhotoResponse) String() string { return proto.CompactTextString(m) } 257func (*PhotoResponse) ProtoMessage() {} 258func (*PhotoResponse) Descriptor() ([]byte, []int) { 259 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{4} 260} 261func (m *PhotoResponse) XXX_Unmarshal(b []byte) error { 262 return xxx_messageInfo_PhotoResponse.Unmarshal(m, b) 263} 264func (m *PhotoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 265 return xxx_messageInfo_PhotoResponse.Marshal(b, m, deterministic) 266} 267func (dst *PhotoResponse) XXX_Merge(src proto.Message) { 268 xxx_messageInfo_PhotoResponse.Merge(dst, src) 269} 270func (m *PhotoResponse) XXX_Size() int { 271 return xxx_messageInfo_PhotoResponse.Size(m) 272} 273func (m *PhotoResponse) XXX_DiscardUnknown() { 274 xxx_messageInfo_PhotoResponse.DiscardUnknown(m) 275} 276 277var xxx_messageInfo_PhotoResponse proto.InternalMessageInfo 278 279func (m *PhotoResponse) GetStatus() *status.Status { 280 if m != nil { 281 return m.Status 282 } 283 return nil 284} 285 286func (m *PhotoResponse) GetPhoto() *Photo { 287 if m != nil { 288 return m.Photo 289 } 290 return nil 291} 292 293// Request to list all photos that belong to the user sending the request. 294// 295// By default 296// - does not return the download URL for the photo bytes. 297// 298// Parameters: 299// - 'view' controls if the download URL for the photo bytes will be returned. 300// - 'page_size' determines the maximum number of photos to return. 301// - 'page_token' is the next page token value returned from a previous List 302// request, if any. 303type ListPhotosRequest struct { 304 // Specifies if a download URL for the photos bytes should be returned in the 305 // Photos response. 306 View PhotoView `protobuf:"varint,1,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"` 307 // The maximum number of photos to return. 308 // `page_size` must be non-negative. If `page_size` is zero or is not 309 // provided, the default page size of 100 will be used. 310 // The number of photos returned in the response may be less than `page_size` 311 // if the number of photos that belong to the user is less than `page_size`. 312 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 313 // The next_page_token value returned from a previous List request, if any. 314 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 315 // The filter expression. 316 // Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw` 317 Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` 318 XXX_NoUnkeyedLiteral struct{} `json:"-"` 319 XXX_unrecognized []byte `json:"-"` 320 XXX_sizecache int32 `json:"-"` 321} 322 323func (m *ListPhotosRequest) Reset() { *m = ListPhotosRequest{} } 324func (m *ListPhotosRequest) String() string { return proto.CompactTextString(m) } 325func (*ListPhotosRequest) ProtoMessage() {} 326func (*ListPhotosRequest) Descriptor() ([]byte, []int) { 327 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{5} 328} 329func (m *ListPhotosRequest) XXX_Unmarshal(b []byte) error { 330 return xxx_messageInfo_ListPhotosRequest.Unmarshal(m, b) 331} 332func (m *ListPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 333 return xxx_messageInfo_ListPhotosRequest.Marshal(b, m, deterministic) 334} 335func (dst *ListPhotosRequest) XXX_Merge(src proto.Message) { 336 xxx_messageInfo_ListPhotosRequest.Merge(dst, src) 337} 338func (m *ListPhotosRequest) XXX_Size() int { 339 return xxx_messageInfo_ListPhotosRequest.Size(m) 340} 341func (m *ListPhotosRequest) XXX_DiscardUnknown() { 342 xxx_messageInfo_ListPhotosRequest.DiscardUnknown(m) 343} 344 345var xxx_messageInfo_ListPhotosRequest proto.InternalMessageInfo 346 347func (m *ListPhotosRequest) GetView() PhotoView { 348 if m != nil { 349 return m.View 350 } 351 return PhotoView_BASIC 352} 353 354func (m *ListPhotosRequest) GetPageSize() int32 { 355 if m != nil { 356 return m.PageSize 357 } 358 return 0 359} 360 361func (m *ListPhotosRequest) GetPageToken() string { 362 if m != nil { 363 return m.PageToken 364 } 365 return "" 366} 367 368func (m *ListPhotosRequest) GetFilter() string { 369 if m != nil { 370 return m.Filter 371 } 372 return "" 373} 374 375// Response to list all photos that belong to a user. 376type ListPhotosResponse struct { 377 // List of photos. There will be a maximum number of items returned based on 378 // the page_size field in the request. 379 Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,omitempty"` 380 // Token to retrieve the next page of results, or empty if there are no 381 // more results in the list. 382 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 383 XXX_NoUnkeyedLiteral struct{} `json:"-"` 384 XXX_unrecognized []byte `json:"-"` 385 XXX_sizecache int32 `json:"-"` 386} 387 388func (m *ListPhotosResponse) Reset() { *m = ListPhotosResponse{} } 389func (m *ListPhotosResponse) String() string { return proto.CompactTextString(m) } 390func (*ListPhotosResponse) ProtoMessage() {} 391func (*ListPhotosResponse) Descriptor() ([]byte, []int) { 392 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{6} 393} 394func (m *ListPhotosResponse) XXX_Unmarshal(b []byte) error { 395 return xxx_messageInfo_ListPhotosResponse.Unmarshal(m, b) 396} 397func (m *ListPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 398 return xxx_messageInfo_ListPhotosResponse.Marshal(b, m, deterministic) 399} 400func (dst *ListPhotosResponse) XXX_Merge(src proto.Message) { 401 xxx_messageInfo_ListPhotosResponse.Merge(dst, src) 402} 403func (m *ListPhotosResponse) XXX_Size() int { 404 return xxx_messageInfo_ListPhotosResponse.Size(m) 405} 406func (m *ListPhotosResponse) XXX_DiscardUnknown() { 407 xxx_messageInfo_ListPhotosResponse.DiscardUnknown(m) 408} 409 410var xxx_messageInfo_ListPhotosResponse proto.InternalMessageInfo 411 412func (m *ListPhotosResponse) GetPhotos() []*Photo { 413 if m != nil { 414 return m.Photos 415 } 416 return nil 417} 418 419func (m *ListPhotosResponse) GetNextPageToken() string { 420 if m != nil { 421 return m.NextPageToken 422 } 423 return "" 424} 425 426// Request to update the metadata of a photo. 427// Updating the pixels of a photo is not supported. 428type UpdatePhotoRequest struct { 429 // Required. Photo object containing the new metadata. Only the fields 430 // specified in `update_mask` are used. If `update_mask` is not present, the 431 // update applies to all fields. 432 // **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as 433 // well. Otherwise, the request will fail. 434 Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` 435 // Mask that identifies fields on the photo metadata to update. 436 // If not present, the old Photo metadata will be entirely replaced with the 437 // new Photo metadata in this request. The update fails if invalid fields are 438 // specified. Multiple fields can be specified in a comma-delimited list. 439 // 440 // The following fields are valid: 441 // 442 // * `pose.heading` 443 // * `pose.latlngpair` 444 // * `pose.pitch` 445 // * `pose.roll` 446 // * `pose.level` 447 // * `pose.altitude` 448 // * `connections` 449 // * `places` 450 // 451 // 452 // **Note:** Repeated fields in `update_mask` mean the entire set of repeated 453 // values will be replaced with the new contents. For example, if 454 // `UpdatePhotoRequest.photo.update_mask` contains `connections` and 455 // `UpdatePhotoRequest.photo.connections` is empty, all connections will be 456 // removed. 457 UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 458 XXX_NoUnkeyedLiteral struct{} `json:"-"` 459 XXX_unrecognized []byte `json:"-"` 460 XXX_sizecache int32 `json:"-"` 461} 462 463func (m *UpdatePhotoRequest) Reset() { *m = UpdatePhotoRequest{} } 464func (m *UpdatePhotoRequest) String() string { return proto.CompactTextString(m) } 465func (*UpdatePhotoRequest) ProtoMessage() {} 466func (*UpdatePhotoRequest) Descriptor() ([]byte, []int) { 467 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{7} 468} 469func (m *UpdatePhotoRequest) XXX_Unmarshal(b []byte) error { 470 return xxx_messageInfo_UpdatePhotoRequest.Unmarshal(m, b) 471} 472func (m *UpdatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 473 return xxx_messageInfo_UpdatePhotoRequest.Marshal(b, m, deterministic) 474} 475func (dst *UpdatePhotoRequest) XXX_Merge(src proto.Message) { 476 xxx_messageInfo_UpdatePhotoRequest.Merge(dst, src) 477} 478func (m *UpdatePhotoRequest) XXX_Size() int { 479 return xxx_messageInfo_UpdatePhotoRequest.Size(m) 480} 481func (m *UpdatePhotoRequest) XXX_DiscardUnknown() { 482 xxx_messageInfo_UpdatePhotoRequest.DiscardUnknown(m) 483} 484 485var xxx_messageInfo_UpdatePhotoRequest proto.InternalMessageInfo 486 487func (m *UpdatePhotoRequest) GetPhoto() *Photo { 488 if m != nil { 489 return m.Photo 490 } 491 return nil 492} 493 494func (m *UpdatePhotoRequest) GetUpdateMask() *field_mask.FieldMask { 495 if m != nil { 496 return m.UpdateMask 497 } 498 return nil 499} 500 501// Request to update the metadata of photos. 502// Updating the pixels of photos is not supported. 503type BatchUpdatePhotosRequest struct { 504 // Required. List of update photo requests. 505 UpdatePhotoRequests []*UpdatePhotoRequest `protobuf:"bytes,1,rep,name=update_photo_requests,json=updatePhotoRequests,proto3" json:"update_photo_requests,omitempty"` 506 XXX_NoUnkeyedLiteral struct{} `json:"-"` 507 XXX_unrecognized []byte `json:"-"` 508 XXX_sizecache int32 `json:"-"` 509} 510 511func (m *BatchUpdatePhotosRequest) Reset() { *m = BatchUpdatePhotosRequest{} } 512func (m *BatchUpdatePhotosRequest) String() string { return proto.CompactTextString(m) } 513func (*BatchUpdatePhotosRequest) ProtoMessage() {} 514func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int) { 515 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{8} 516} 517func (m *BatchUpdatePhotosRequest) XXX_Unmarshal(b []byte) error { 518 return xxx_messageInfo_BatchUpdatePhotosRequest.Unmarshal(m, b) 519} 520func (m *BatchUpdatePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 521 return xxx_messageInfo_BatchUpdatePhotosRequest.Marshal(b, m, deterministic) 522} 523func (dst *BatchUpdatePhotosRequest) XXX_Merge(src proto.Message) { 524 xxx_messageInfo_BatchUpdatePhotosRequest.Merge(dst, src) 525} 526func (m *BatchUpdatePhotosRequest) XXX_Size() int { 527 return xxx_messageInfo_BatchUpdatePhotosRequest.Size(m) 528} 529func (m *BatchUpdatePhotosRequest) XXX_DiscardUnknown() { 530 xxx_messageInfo_BatchUpdatePhotosRequest.DiscardUnknown(m) 531} 532 533var xxx_messageInfo_BatchUpdatePhotosRequest proto.InternalMessageInfo 534 535func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest { 536 if m != nil { 537 return m.UpdatePhotoRequests 538 } 539 return nil 540} 541 542// Response to batch update of metadata of one or more photos. 543type BatchUpdatePhotosResponse struct { 544 // List of results for each individual photo updated, in the same order as 545 // the request. 546 Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 547 XXX_NoUnkeyedLiteral struct{} `json:"-"` 548 XXX_unrecognized []byte `json:"-"` 549 XXX_sizecache int32 `json:"-"` 550} 551 552func (m *BatchUpdatePhotosResponse) Reset() { *m = BatchUpdatePhotosResponse{} } 553func (m *BatchUpdatePhotosResponse) String() string { return proto.CompactTextString(m) } 554func (*BatchUpdatePhotosResponse) ProtoMessage() {} 555func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int) { 556 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{9} 557} 558func (m *BatchUpdatePhotosResponse) XXX_Unmarshal(b []byte) error { 559 return xxx_messageInfo_BatchUpdatePhotosResponse.Unmarshal(m, b) 560} 561func (m *BatchUpdatePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 562 return xxx_messageInfo_BatchUpdatePhotosResponse.Marshal(b, m, deterministic) 563} 564func (dst *BatchUpdatePhotosResponse) XXX_Merge(src proto.Message) { 565 xxx_messageInfo_BatchUpdatePhotosResponse.Merge(dst, src) 566} 567func (m *BatchUpdatePhotosResponse) XXX_Size() int { 568 return xxx_messageInfo_BatchUpdatePhotosResponse.Size(m) 569} 570func (m *BatchUpdatePhotosResponse) XXX_DiscardUnknown() { 571 xxx_messageInfo_BatchUpdatePhotosResponse.DiscardUnknown(m) 572} 573 574var xxx_messageInfo_BatchUpdatePhotosResponse proto.InternalMessageInfo 575 576func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse { 577 if m != nil { 578 return m.Results 579 } 580 return nil 581} 582 583// Request to delete a photo. 584type DeletePhotoRequest struct { 585 // Required. ID of the photo. 586 PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"` 587 XXX_NoUnkeyedLiteral struct{} `json:"-"` 588 XXX_unrecognized []byte `json:"-"` 589 XXX_sizecache int32 `json:"-"` 590} 591 592func (m *DeletePhotoRequest) Reset() { *m = DeletePhotoRequest{} } 593func (m *DeletePhotoRequest) String() string { return proto.CompactTextString(m) } 594func (*DeletePhotoRequest) ProtoMessage() {} 595func (*DeletePhotoRequest) Descriptor() ([]byte, []int) { 596 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{10} 597} 598func (m *DeletePhotoRequest) XXX_Unmarshal(b []byte) error { 599 return xxx_messageInfo_DeletePhotoRequest.Unmarshal(m, b) 600} 601func (m *DeletePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 602 return xxx_messageInfo_DeletePhotoRequest.Marshal(b, m, deterministic) 603} 604func (dst *DeletePhotoRequest) XXX_Merge(src proto.Message) { 605 xxx_messageInfo_DeletePhotoRequest.Merge(dst, src) 606} 607func (m *DeletePhotoRequest) XXX_Size() int { 608 return xxx_messageInfo_DeletePhotoRequest.Size(m) 609} 610func (m *DeletePhotoRequest) XXX_DiscardUnknown() { 611 xxx_messageInfo_DeletePhotoRequest.DiscardUnknown(m) 612} 613 614var xxx_messageInfo_DeletePhotoRequest proto.InternalMessageInfo 615 616func (m *DeletePhotoRequest) GetPhotoId() string { 617 if m != nil { 618 return m.PhotoId 619 } 620 return "" 621} 622 623// Request to delete multiple photos. 624type BatchDeletePhotosRequest struct { 625 // Required. List of delete photo requests. 626 PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"` 627 XXX_NoUnkeyedLiteral struct{} `json:"-"` 628 XXX_unrecognized []byte `json:"-"` 629 XXX_sizecache int32 `json:"-"` 630} 631 632func (m *BatchDeletePhotosRequest) Reset() { *m = BatchDeletePhotosRequest{} } 633func (m *BatchDeletePhotosRequest) String() string { return proto.CompactTextString(m) } 634func (*BatchDeletePhotosRequest) ProtoMessage() {} 635func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int) { 636 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{11} 637} 638func (m *BatchDeletePhotosRequest) XXX_Unmarshal(b []byte) error { 639 return xxx_messageInfo_BatchDeletePhotosRequest.Unmarshal(m, b) 640} 641func (m *BatchDeletePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 642 return xxx_messageInfo_BatchDeletePhotosRequest.Marshal(b, m, deterministic) 643} 644func (dst *BatchDeletePhotosRequest) XXX_Merge(src proto.Message) { 645 xxx_messageInfo_BatchDeletePhotosRequest.Merge(dst, src) 646} 647func (m *BatchDeletePhotosRequest) XXX_Size() int { 648 return xxx_messageInfo_BatchDeletePhotosRequest.Size(m) 649} 650func (m *BatchDeletePhotosRequest) XXX_DiscardUnknown() { 651 xxx_messageInfo_BatchDeletePhotosRequest.DiscardUnknown(m) 652} 653 654var xxx_messageInfo_BatchDeletePhotosRequest proto.InternalMessageInfo 655 656func (m *BatchDeletePhotosRequest) GetPhotoIds() []string { 657 if m != nil { 658 return m.PhotoIds 659 } 660 return nil 661} 662 663// Response to batch delete of one or more photos. 664type BatchDeletePhotosResponse struct { 665 // The status for the operation to delete a single photo in the batch request. 666 Status []*status.Status `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"` 667 XXX_NoUnkeyedLiteral struct{} `json:"-"` 668 XXX_unrecognized []byte `json:"-"` 669 XXX_sizecache int32 `json:"-"` 670} 671 672func (m *BatchDeletePhotosResponse) Reset() { *m = BatchDeletePhotosResponse{} } 673func (m *BatchDeletePhotosResponse) String() string { return proto.CompactTextString(m) } 674func (*BatchDeletePhotosResponse) ProtoMessage() {} 675func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int) { 676 return fileDescriptor_rpcmessages_d38e067cf9604ca9, []int{12} 677} 678func (m *BatchDeletePhotosResponse) XXX_Unmarshal(b []byte) error { 679 return xxx_messageInfo_BatchDeletePhotosResponse.Unmarshal(m, b) 680} 681func (m *BatchDeletePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 682 return xxx_messageInfo_BatchDeletePhotosResponse.Marshal(b, m, deterministic) 683} 684func (dst *BatchDeletePhotosResponse) XXX_Merge(src proto.Message) { 685 xxx_messageInfo_BatchDeletePhotosResponse.Merge(dst, src) 686} 687func (m *BatchDeletePhotosResponse) XXX_Size() int { 688 return xxx_messageInfo_BatchDeletePhotosResponse.Size(m) 689} 690func (m *BatchDeletePhotosResponse) XXX_DiscardUnknown() { 691 xxx_messageInfo_BatchDeletePhotosResponse.DiscardUnknown(m) 692} 693 694var xxx_messageInfo_BatchDeletePhotosResponse proto.InternalMessageInfo 695 696func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status { 697 if m != nil { 698 return m.Status 699 } 700 return nil 701} 702 703func init() { 704 proto.RegisterType((*CreatePhotoRequest)(nil), "google.streetview.publish.v1.CreatePhotoRequest") 705 proto.RegisterType((*GetPhotoRequest)(nil), "google.streetview.publish.v1.GetPhotoRequest") 706 proto.RegisterType((*BatchGetPhotosRequest)(nil), "google.streetview.publish.v1.BatchGetPhotosRequest") 707 proto.RegisterType((*BatchGetPhotosResponse)(nil), "google.streetview.publish.v1.BatchGetPhotosResponse") 708 proto.RegisterType((*PhotoResponse)(nil), "google.streetview.publish.v1.PhotoResponse") 709 proto.RegisterType((*ListPhotosRequest)(nil), "google.streetview.publish.v1.ListPhotosRequest") 710 proto.RegisterType((*ListPhotosResponse)(nil), "google.streetview.publish.v1.ListPhotosResponse") 711 proto.RegisterType((*UpdatePhotoRequest)(nil), "google.streetview.publish.v1.UpdatePhotoRequest") 712 proto.RegisterType((*BatchUpdatePhotosRequest)(nil), "google.streetview.publish.v1.BatchUpdatePhotosRequest") 713 proto.RegisterType((*BatchUpdatePhotosResponse)(nil), "google.streetview.publish.v1.BatchUpdatePhotosResponse") 714 proto.RegisterType((*DeletePhotoRequest)(nil), "google.streetview.publish.v1.DeletePhotoRequest") 715 proto.RegisterType((*BatchDeletePhotosRequest)(nil), "google.streetview.publish.v1.BatchDeletePhotosRequest") 716 proto.RegisterType((*BatchDeletePhotosResponse)(nil), "google.streetview.publish.v1.BatchDeletePhotosResponse") 717 proto.RegisterEnum("google.streetview.publish.v1.PhotoView", PhotoView_name, PhotoView_value) 718} 719 720func init() { 721 proto.RegisterFile("google/streetview/publish/v1/rpcmessages.proto", fileDescriptor_rpcmessages_d38e067cf9604ca9) 722} 723 724var fileDescriptor_rpcmessages_d38e067cf9604ca9 = []byte{ 725 // 639 bytes of a gzipped FileDescriptorProto 726 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x6e, 0xd3, 0x40, 727 0x14, 0xc5, 0x7d, 0xa4, 0xcd, 0xad, 0x4a, 0xcb, 0x40, 0x8b, 0x1b, 0x8a, 0x14, 0x19, 0x09, 0xa2, 728 0x82, 0xec, 0xb6, 0x2c, 0x10, 0xca, 0xaa, 0x49, 0x4a, 0x55, 0x29, 0x7d, 0xc8, 0xa1, 0x20, 0xb1, 729 0xb1, 0x1c, 0xe7, 0xc6, 0xb1, 0xe2, 0x64, 0x5c, 0xcf, 0x38, 0x85, 0xae, 0xf8, 0x00, 0xf8, 0x0b, 730 0x3e, 0x14, 0x79, 0x3c, 0xd3, 0x26, 0x69, 0x88, 0x02, 0x74, 0x67, 0xdf, 0xc7, 0xb9, 0x67, 0xce, 731 0x9d, 0x63, 0x83, 0xe9, 0x53, 0xea, 0x87, 0x68, 0x31, 0x1e, 0x23, 0xf2, 0x41, 0x80, 0x57, 0x56, 732 0x94, 0x34, 0xc3, 0x80, 0x75, 0xac, 0xc1, 0x9e, 0x15, 0x47, 0x5e, 0x0f, 0x19, 0x73, 0x7d, 0x64, 733 0x66, 0x14, 0x53, 0x4e, 0xc9, 0x76, 0x56, 0x6f, 0xde, 0xd6, 0x9b, 0xb2, 0xde, 0x1c, 0xec, 0x15, 734 0x8a, 0x12, 0x4d, 0xd4, 0x36, 0x93, 0xb6, 0xd5, 0x0e, 0x30, 0x6c, 0x39, 0x3d, 0x97, 0x75, 0xb3, 735 0xfe, 0xc2, 0x53, 0x59, 0x11, 0x47, 0x9e, 0xc5, 0xb8, 0xcb, 0x13, 0x09, 0x5c, 0x78, 0x33, 0x9d, 736 0x08, 0x32, 0x9a, 0xc4, 0x9e, 0xa2, 0x61, 0x9c, 0x01, 0xa9, 0xc6, 0xe8, 0x72, 0x3c, 0xef, 0x50, 737 0x4e, 0x6d, 0xbc, 0x4c, 0x90, 0x71, 0xf2, 0x1e, 0x16, 0xa3, 0xf4, 0x5d, 0xd7, 0x8a, 0x5a, 0x69, 738 0x65, 0xff, 0x85, 0x39, 0x8d, 0xac, 0x99, 0xb5, 0x66, 0x1d, 0x46, 0x00, 0x6b, 0x47, 0xc8, 0x47, 739 0xd0, 0xb6, 0x60, 0x59, 0xe4, 0x9c, 0xa0, 0x25, 0x00, 0xf3, 0xf6, 0x92, 0x78, 0x3f, 0x6e, 0x91, 740 0x32, 0x2c, 0xa4, 0x68, 0xfa, 0x5c, 0x51, 0x2b, 0x3d, 0xdc, 0x7f, 0x35, 0xc3, 0x9c, 0x4f, 0x01, 741 0x5e, 0xd9, 0xa2, 0xc9, 0xb8, 0x84, 0x8d, 0x8a, 0xcb, 0xbd, 0x8e, 0x9a, 0xc7, 0xd4, 0xc0, 0x67, 742 0x90, 0x57, 0x03, 0x99, 0xae, 0x15, 0xe7, 0x4b, 0x79, 0x7b, 0x59, 0x4e, 0x64, 0xff, 0x37, 0xd2, 743 0x81, 0xcd, 0xf1, 0x91, 0x2c, 0xa2, 0x7d, 0x86, 0xe4, 0x10, 0x96, 0x62, 0x64, 0x49, 0xc8, 0xb3, 744 0x89, 0x2b, 0xfb, 0xaf, 0x67, 0x11, 0x4d, 0x76, 0xdb, 0xaa, 0xd7, 0x18, 0xc0, 0xea, 0x48, 0x86, 745 0xec, 0x40, 0x2e, 0x5b, 0xaf, 0xdc, 0x05, 0x51, 0xb0, 0x71, 0xe4, 0x99, 0x0d, 0x91, 0xb1, 0x65, 746 0xc5, 0xed, 0xda, 0xe6, 0xfe, 0x7a, 0x6d, 0xbf, 0x34, 0x78, 0x54, 0x0f, 0xd8, 0x98, 0x90, 0x4a, 747 0x2b, 0xed, 0x1f, 0xb4, 0x12, 0x5b, 0x70, 0x7d, 0x74, 0x58, 0x70, 0x8d, 0x82, 0xd1, 0xa2, 0xbd, 748 0x9c, 0x06, 0x1a, 0xc1, 0x35, 0x92, 0xe7, 0x00, 0x22, 0xc9, 0x69, 0x17, 0xfb, 0xfa, 0xbc, 0xb8, 749 0x15, 0xa2, 0xfc, 0x63, 0x1a, 0x20, 0x9b, 0x90, 0x6b, 0x07, 0x21, 0xc7, 0x58, 0x5f, 0x10, 0x29, 750 0xf9, 0x66, 0x7c, 0x03, 0x32, 0xcc, 0x52, 0x6a, 0x54, 0x86, 0x9c, 0x38, 0x85, 0x92, 0x7e, 0xa6, 751 0x83, 0xcb, 0x16, 0xf2, 0x12, 0xd6, 0xfa, 0xf8, 0x95, 0x3b, 0x43, 0x74, 0xe6, 0xc4, 0xcc, 0xd5, 752 0x34, 0x7c, 0xae, 0x28, 0x19, 0x3f, 0x34, 0x20, 0x17, 0x51, 0xeb, 0xfe, 0xac, 0x42, 0xca, 0xb0, 753 0x92, 0x08, 0x40, 0xe1, 0x6b, 0xb9, 0xb4, 0x82, 0x02, 0x50, 0xd6, 0x37, 0x3f, 0xa4, 0xd6, 0x3f, 754 0x71, 0x59, 0xd7, 0x86, 0xac, 0x3c, 0x7d, 0x36, 0xbe, 0x6b, 0xa0, 0x8b, 0xab, 0x38, 0xc4, 0xe9, 755 0x66, 0x6f, 0x2d, 0xd8, 0x90, 0xc8, 0x99, 0x0f, 0xe2, 0x2c, 0xae, 0xf4, 0xd9, 0x9d, 0x4e, 0xf2, 756 0xee, 0x29, 0xed, 0xc7, 0xc9, 0x9d, 0x18, 0x33, 0x9a, 0xb0, 0x35, 0x81, 0xc1, 0xfd, 0xfa, 0xc1, 757 0x02, 0x52, 0xc3, 0x10, 0xc7, 0x44, 0xff, 0xf3, 0x17, 0xc5, 0x78, 0x27, 0x65, 0x19, 0xea, 0x9a, 758 0xe9, 0xbb, 0x60, 0x1c, 0xc9, 0xd3, 0x8c, 0x36, 0x4e, 0x70, 0xe1, 0xfc, 0x74, 0x17, 0xee, 0xec, 759 0x42, 0xfe, 0xc6, 0x0a, 0x24, 0x0f, 0x8b, 0x95, 0x83, 0xc6, 0x71, 0x75, 0xfd, 0x01, 0xd1, 0xe1, 760 0xc9, 0xf1, 0x69, 0xb5, 0x7e, 0x51, 0x3b, 0x74, 0x6a, 0x67, 0x9f, 0x4f, 0xeb, 0x67, 0x07, 0x35, 761 0xe7, 0xc2, 0xae, 0xaf, 0x6b, 0x95, 0x9f, 0x1a, 0x94, 0x3c, 0xda, 0x53, 0x98, 0x3e, 0x52, 0x33, 762 0xf1, 0xbd, 0xc9, 0x42, 0x55, 0xb6, 0x1b, 0x22, 0x9c, 0xa2, 0x9f, 0x67, 0x51, 0x3b, 0xf2, 0x4e, 763 0xe4, 0xcf, 0xe5, 0x4b, 0x55, 0x61, 0xd0, 0xd0, 0xed, 0xfb, 0x26, 0x8d, 0x7d, 0xcb, 0xc7, 0xbe, 764 0xb8, 0x4b, 0x56, 0x96, 0x72, 0xa3, 0x80, 0x4d, 0xfe, 0x39, 0x94, 0xe5, 0x63, 0x33, 0x27, 0xea, 765 0xdf, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x7c, 0xa0, 0x45, 0xd4, 0x06, 0x00, 0x00, 766} 767