Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -1,44 +1,16 @@
// 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"
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
latlng "google.golang.org/genproto/googleapis/type/latlng"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@@ -56,13 +28,36 @@ 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"`
UploadUrl string `protobuf:"bytes,1,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = UploadRef{} }
func (m *UploadRef) String() string { return proto.CompactTextString(m) }
func (*UploadRef) ProtoMessage() {}
func (*UploadRef) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{0}
}
func (m *UploadRef) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UploadRef.Unmarshal(m, b)
}
func (m *UploadRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UploadRef.Marshal(b, m, deterministic)
}
func (m *UploadRef) XXX_Merge(src proto.Message) {
xxx_messageInfo_UploadRef.Merge(m, src)
}
func (m *UploadRef) XXX_Size() int {
return xxx_messageInfo_UploadRef.Size(m)
}
func (m *UploadRef) XXX_DiscardUnknown() {
xxx_messageInfo_UploadRef.DiscardUnknown(m)
}
var xxx_messageInfo_UploadRef proto.InternalMessageInfo
func (m *UploadRef) GetUploadUrl() string {
if m != nil {
@@ -74,13 +69,36 @@ func (m *UploadRef) GetUploadUrl() string {
// Identifier for a photo.
type PhotoId struct {
// Required. A base64 encoded identifier.
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = PhotoId{} }
func (m *PhotoId) String() string { return proto.CompactTextString(m) }
func (*PhotoId) ProtoMessage() {}
func (*PhotoId) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{1}
}
func (m *PhotoId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhotoId.Unmarshal(m, b)
}
func (m *PhotoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhotoId.Marshal(b, m, deterministic)
}
func (m *PhotoId) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhotoId.Merge(m, src)
}
func (m *PhotoId) XXX_Size() int {
return xxx_messageInfo_PhotoId.Size(m)
}
func (m *PhotoId) XXX_DiscardUnknown() {
xxx_messageInfo_PhotoId.DiscardUnknown(m)
}
var xxx_messageInfo_PhotoId proto.InternalMessageInfo
func (m *PhotoId) GetId() string {
if m != nil {
@@ -94,17 +112,40 @@ 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"`
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" json:"name,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Level{} }
func (m *Level) String() string { return proto.CompactTextString(m) }
func (*Level) ProtoMessage() {}
func (*Level) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{2}
}
func (m *Level) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Level.Unmarshal(m, b)
}
func (m *Level) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Level.Marshal(b, m, deterministic)
}
func (m *Level) XXX_Merge(src proto.Message) {
xxx_messageInfo_Level.Merge(m, src)
}
func (m *Level) XXX_Size() int {
return xxx_messageInfo_Level.Size(m)
}
func (m *Level) XXX_DiscardUnknown() {
xxx_messageInfo_Level.DiscardUnknown(m)
}
var xxx_messageInfo_Level proto.InternalMessageInfo
func (m *Level) GetNumber() float64 {
if m != nil {
@@ -128,33 +169,56 @@ type Pose struct {
// 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"`
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 ground level (as defined by WGS84).
// NaN indicates an unmeasured quantity.
Altitude float64 `protobuf:"fixed64,2,opt,name=altitude" json:"altitude,omitempty"`
Altitude float64 `protobuf:"fixed64,2,opt,name=altitude,proto3" 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"`
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" json:"pitch,omitempty"`
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" json:"roll,omitempty"`
Roll float64 `protobuf:"fixed64,5,opt,name=roll,proto3" 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"`
Level *Level `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Pose{} }
func (m *Pose) String() string { return proto.CompactTextString(m) }
func (*Pose) ProtoMessage() {}
func (*Pose) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{3}
}
func (m *Pose) GetLatLngPair() *google_type.LatLng {
func (m *Pose) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Pose.Unmarshal(m, b)
}
func (m *Pose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Pose.Marshal(b, m, deterministic)
}
func (m *Pose) XXX_Merge(src proto.Message) {
xxx_messageInfo_Pose.Merge(m, src)
}
func (m *Pose) XXX_Size() int {
return xxx_messageInfo_Pose.Size(m)
}
func (m *Pose) XXX_DiscardUnknown() {
xxx_messageInfo_Pose.DiscardUnknown(m)
}
var xxx_messageInfo_Pose proto.InternalMessageInfo
func (m *Pose) GetLatLngPair() *latlng.LatLng {
if m != nil {
return m.LatLngPair
}
@@ -200,13 +264,36 @@ func (m *Pose) GetLevel() *Level {
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"`
PlaceId string `protobuf:"bytes,1,opt,name=place_id,json=placeId,proto3" json:"place_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Place{} }
func (m *Place) String() string { return proto.CompactTextString(m) }
func (*Place) ProtoMessage() {}
func (*Place) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{4}
}
func (m *Place) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Place.Unmarshal(m, b)
}
func (m *Place) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Place.Marshal(b, m, deterministic)
}
func (m *Place) XXX_Merge(src proto.Message) {
xxx_messageInfo_Place.Merge(m, src)
}
func (m *Place) XXX_Size() int {
return xxx_messageInfo_Place.Size(m)
}
func (m *Place) XXX_DiscardUnknown() {
xxx_messageInfo_Place.DiscardUnknown(m)
}
var xxx_messageInfo_Place proto.InternalMessageInfo
func (m *Place) GetPlaceId() string {
if m != nil {
@@ -219,13 +306,36 @@ func (m *Place) GetPlaceId() string {
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"`
Target *PhotoId `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Connection{} }
func (m *Connection) String() string { return proto.CompactTextString(m) }
func (*Connection) ProtoMessage() {}
func (*Connection) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{5}
}
func (m *Connection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Connection.Unmarshal(m, b)
}
func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Connection.Marshal(b, m, deterministic)
}
func (m *Connection) XXX_Merge(src proto.Message) {
xxx_messageInfo_Connection.Merge(m, src)
}
func (m *Connection) XXX_Size() int {
return xxx_messageInfo_Connection.Size(m)
}
func (m *Connection) XXX_DiscardUnknown() {
xxx_messageInfo_Connection.DiscardUnknown(m)
}
var xxx_messageInfo_Connection proto.InternalMessageInfo
func (m *Connection) GetTarget() *PhotoId {
if m != nil {
@@ -238,37 +348,60 @@ func (m *Connection) GetTarget() *PhotoId {
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"`
PhotoId *PhotoId `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" 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"`
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 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"`
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" json:"thumbnail_url,omitempty"`
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" json:"share_link,omitempty"`
ShareLink string `protobuf:"bytes,11,opt,name=share_link,json=shareLink,proto3" json:"share_link,omitempty"`
// Pose of the photo.
Pose *Pose `protobuf:"bytes,4,opt,name=pose" json:"pose,omitempty"`
Pose *Pose `protobuf:"bytes,4,opt,name=pose,proto3" 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"`
Connections []*Connection `protobuf:"bytes,5,rep,name=connections,proto3" 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"`
CaptureTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"`
// Places where this photo belongs.
Places []*Place `protobuf:"bytes,7,rep,name=places" json:"places,omitempty"`
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" json:"view_count,omitempty"`
ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
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) Reset() { *m = Photo{} }
func (m *Photo) String() string { return proto.CompactTextString(m) }
func (*Photo) ProtoMessage() {}
func (*Photo) Descriptor() ([]byte, []int) {
return fileDescriptor_56f2b10d5439612a, []int{6}
}
func (m *Photo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Photo.Unmarshal(m, b)
}
func (m *Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Photo.Marshal(b, m, deterministic)
}
func (m *Photo) XXX_Merge(src proto.Message) {
xxx_messageInfo_Photo.Merge(m, src)
}
func (m *Photo) XXX_Size() int {
return xxx_messageInfo_Photo.Size(m)
}
func (m *Photo) XXX_DiscardUnknown() {
xxx_messageInfo_Photo.DiscardUnknown(m)
}
var xxx_messageInfo_Photo proto.InternalMessageInfo
func (m *Photo) GetPhotoId() *PhotoId {
if m != nil {
@@ -319,7 +452,7 @@ func (m *Photo) GetConnections() []*Connection {
return nil
}
func (m *Photo) GetCaptureTime() *google_protobuf1.Timestamp {
func (m *Photo) GetCaptureTime() *timestamp.Timestamp {
if m != nil {
return m.CaptureTime
}
@@ -350,9 +483,11 @@ func init() {
proto.RegisterType((*Photo)(nil), "google.streetview.publish.v1.Photo")
}
func init() { proto.RegisterFile("google/streetview/publish/v1/resources.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("google/streetview/publish/v1/resources.proto", fileDescriptor_56f2b10d5439612a)
}
var fileDescriptor0 = []byte{
var fileDescriptor_56f2b10d5439612a = []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,

View File

@@ -3,17 +3,25 @@
package publish
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf2 "google.golang.org/genproto/protobuf/field_mask"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
status "google.golang.org/genproto/googleapis/rpc/status"
field_mask "google.golang.org/genproto/protobuf/field_mask"
math "math"
)
// 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
// Specifies which view of the `Photo` should be included in the response.
type PhotoView int32
@@ -29,6 +37,7 @@ var PhotoView_name = map[int32]string{
0: "BASIC",
1: "INCLUDE_DOWNLOAD_URL",
}
var PhotoView_value = map[string]int32{
"BASIC": 0,
"INCLUDE_DOWNLOAD_URL": 1,
@@ -37,18 +46,44 @@ var PhotoView_value = map[string]int32{
func (x PhotoView) String() string {
return proto.EnumName(PhotoView_name, int32(x))
}
func (PhotoView) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (PhotoView) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{0}
}
// Request to create a photo.
type CreatePhotoRequest struct {
// Required. Photo to create.
Photo *Photo `protobuf:"bytes,1,opt,name=photo" json:"photo,omitempty"`
Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreatePhotoRequest) Reset() { *m = CreatePhotoRequest{} }
func (m *CreatePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*CreatePhotoRequest) ProtoMessage() {}
func (*CreatePhotoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *CreatePhotoRequest) Reset() { *m = CreatePhotoRequest{} }
func (m *CreatePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*CreatePhotoRequest) ProtoMessage() {}
func (*CreatePhotoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{0}
}
func (m *CreatePhotoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreatePhotoRequest.Unmarshal(m, b)
}
func (m *CreatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreatePhotoRequest.Marshal(b, m, deterministic)
}
func (m *CreatePhotoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreatePhotoRequest.Merge(m, src)
}
func (m *CreatePhotoRequest) XXX_Size() int {
return xxx_messageInfo_CreatePhotoRequest.Size(m)
}
func (m *CreatePhotoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreatePhotoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreatePhotoRequest proto.InternalMessageInfo
func (m *CreatePhotoRequest) GetPhoto() *Photo {
if m != nil {
@@ -66,16 +101,39 @@ func (m *CreatePhotoRequest) GetPhoto() *Photo {
// - 'view' controls if the download URL for the photo bytes will be returned.
type GetPhotoRequest struct {
// Required. ID of the photo.
PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId" json:"photo_id,omitempty"`
PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
// Specifies if a download URL for the photo bytes should be returned in the
// Photo response.
View PhotoView `protobuf:"varint,2,opt,name=view,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetPhotoRequest) Reset() { *m = GetPhotoRequest{} }
func (m *GetPhotoRequest) String() string { return proto.CompactTextString(m) }
func (*GetPhotoRequest) ProtoMessage() {}
func (*GetPhotoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *GetPhotoRequest) Reset() { *m = GetPhotoRequest{} }
func (m *GetPhotoRequest) String() string { return proto.CompactTextString(m) }
func (*GetPhotoRequest) ProtoMessage() {}
func (*GetPhotoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{1}
}
func (m *GetPhotoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetPhotoRequest.Unmarshal(m, b)
}
func (m *GetPhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetPhotoRequest.Marshal(b, m, deterministic)
}
func (m *GetPhotoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetPhotoRequest.Merge(m, src)
}
func (m *GetPhotoRequest) XXX_Size() int {
return xxx_messageInfo_GetPhotoRequest.Size(m)
}
func (m *GetPhotoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetPhotoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetPhotoRequest proto.InternalMessageInfo
func (m *GetPhotoRequest) GetPhotoId() string {
if m != nil {
@@ -99,16 +157,39 @@ func (m *GetPhotoRequest) GetView() PhotoView {
// - 'view' controls if the download URL for the photo bytes will be returned.
type BatchGetPhotosRequest struct {
// Required. IDs of the photos.
PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds" json:"photo_ids,omitempty"`
PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"`
// Specifies if a download URL for the photo bytes should be returned in the
// Photo response.
View PhotoView `protobuf:"varint,2,opt,name=view,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetPhotosRequest) Reset() { *m = BatchGetPhotosRequest{} }
func (m *BatchGetPhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetPhotosRequest) ProtoMessage() {}
func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *BatchGetPhotosRequest) Reset() { *m = BatchGetPhotosRequest{} }
func (m *BatchGetPhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchGetPhotosRequest) ProtoMessage() {}
func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{2}
}
func (m *BatchGetPhotosRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetPhotosRequest.Unmarshal(m, b)
}
func (m *BatchGetPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetPhotosRequest.Marshal(b, m, deterministic)
}
func (m *BatchGetPhotosRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetPhotosRequest.Merge(m, src)
}
func (m *BatchGetPhotosRequest) XXX_Size() int {
return xxx_messageInfo_BatchGetPhotosRequest.Size(m)
}
func (m *BatchGetPhotosRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetPhotosRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetPhotosRequest proto.InternalMessageInfo
func (m *BatchGetPhotosRequest) GetPhotoIds() []string {
if m != nil {
@@ -128,13 +209,36 @@ func (m *BatchGetPhotosRequest) GetView() PhotoView {
type BatchGetPhotosResponse struct {
// List of results for each individual photo requested, in the same order as
// the request.
Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchGetPhotosResponse) Reset() { *m = BatchGetPhotosResponse{} }
func (m *BatchGetPhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchGetPhotosResponse) ProtoMessage() {}
func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *BatchGetPhotosResponse) Reset() { *m = BatchGetPhotosResponse{} }
func (m *BatchGetPhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchGetPhotosResponse) ProtoMessage() {}
func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{3}
}
func (m *BatchGetPhotosResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchGetPhotosResponse.Unmarshal(m, b)
}
func (m *BatchGetPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchGetPhotosResponse.Marshal(b, m, deterministic)
}
func (m *BatchGetPhotosResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchGetPhotosResponse.Merge(m, src)
}
func (m *BatchGetPhotosResponse) XXX_Size() int {
return xxx_messageInfo_BatchGetPhotosResponse.Size(m)
}
func (m *BatchGetPhotosResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchGetPhotosResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchGetPhotosResponse proto.InternalMessageInfo
func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse {
if m != nil {
@@ -148,17 +252,40 @@ func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse {
type PhotoResponse struct {
// The status for the operation to get or update a single photo in the batch
// request.
Status *google_rpc.Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// The photo resource, if the request was successful.
Photo *Photo `protobuf:"bytes,2,opt,name=photo" json:"photo,omitempty"`
Photo *Photo `protobuf:"bytes,2,opt,name=photo,proto3" json:"photo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhotoResponse) Reset() { *m = PhotoResponse{} }
func (m *PhotoResponse) String() string { return proto.CompactTextString(m) }
func (*PhotoResponse) ProtoMessage() {}
func (*PhotoResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *PhotoResponse) Reset() { *m = PhotoResponse{} }
func (m *PhotoResponse) String() string { return proto.CompactTextString(m) }
func (*PhotoResponse) ProtoMessage() {}
func (*PhotoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{4}
}
func (m *PhotoResponse) GetStatus() *google_rpc.Status {
func (m *PhotoResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhotoResponse.Unmarshal(m, b)
}
func (m *PhotoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhotoResponse.Marshal(b, m, deterministic)
}
func (m *PhotoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhotoResponse.Merge(m, src)
}
func (m *PhotoResponse) XXX_Size() int {
return xxx_messageInfo_PhotoResponse.Size(m)
}
func (m *PhotoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PhotoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PhotoResponse proto.InternalMessageInfo
func (m *PhotoResponse) GetStatus() *status.Status {
if m != nil {
return m.Status
}
@@ -185,24 +312,47 @@ func (m *PhotoResponse) GetPhoto() *Photo {
type ListPhotosRequest struct {
// Specifies if a download URL for the photos bytes should be returned in the
// Photos response.
View PhotoView `protobuf:"varint,1,opt,name=view,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
View PhotoView `protobuf:"varint,1,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
// The maximum number of photos to return.
// `page_size` must be non-negative. If `page_size` is zero or is not
// provided, the default page size of 100 will be used.
// The number of photos returned in the response may be less than `page_size`
// if the number of photos that belong to the user is less than `page_size`.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous List request, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// The filter expression.
// Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListPhotosRequest) Reset() { *m = ListPhotosRequest{} }
func (m *ListPhotosRequest) String() string { return proto.CompactTextString(m) }
func (*ListPhotosRequest) ProtoMessage() {}
func (*ListPhotosRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *ListPhotosRequest) Reset() { *m = ListPhotosRequest{} }
func (m *ListPhotosRequest) String() string { return proto.CompactTextString(m) }
func (*ListPhotosRequest) ProtoMessage() {}
func (*ListPhotosRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{5}
}
func (m *ListPhotosRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListPhotosRequest.Unmarshal(m, b)
}
func (m *ListPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListPhotosRequest.Marshal(b, m, deterministic)
}
func (m *ListPhotosRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListPhotosRequest.Merge(m, src)
}
func (m *ListPhotosRequest) XXX_Size() int {
return xxx_messageInfo_ListPhotosRequest.Size(m)
}
func (m *ListPhotosRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListPhotosRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListPhotosRequest proto.InternalMessageInfo
func (m *ListPhotosRequest) GetView() PhotoView {
if m != nil {
@@ -236,16 +386,39 @@ func (m *ListPhotosRequest) GetFilter() string {
type ListPhotosResponse struct {
// List of photos. There will be a maximum number of items returned based on
// the page_size field in the request.
Photos []*Photo `protobuf:"bytes,1,rep,name=photos" json:"photos,omitempty"`
Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,omitempty"`
// Token to retrieve the next page of results, or empty if there are no
// more results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListPhotosResponse) Reset() { *m = ListPhotosResponse{} }
func (m *ListPhotosResponse) String() string { return proto.CompactTextString(m) }
func (*ListPhotosResponse) ProtoMessage() {}
func (*ListPhotosResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func (m *ListPhotosResponse) Reset() { *m = ListPhotosResponse{} }
func (m *ListPhotosResponse) String() string { return proto.CompactTextString(m) }
func (*ListPhotosResponse) ProtoMessage() {}
func (*ListPhotosResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{6}
}
func (m *ListPhotosResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListPhotosResponse.Unmarshal(m, b)
}
func (m *ListPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListPhotosResponse.Marshal(b, m, deterministic)
}
func (m *ListPhotosResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListPhotosResponse.Merge(m, src)
}
func (m *ListPhotosResponse) XXX_Size() int {
return xxx_messageInfo_ListPhotosResponse.Size(m)
}
func (m *ListPhotosResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListPhotosResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListPhotosResponse proto.InternalMessageInfo
func (m *ListPhotosResponse) GetPhotos() []*Photo {
if m != nil {
@@ -269,7 +442,7 @@ type UpdatePhotoRequest struct {
// update applies to all fields.
// **Note:** To update `pose.altitude`, `pose.latlngpair` has to be filled as
// well. Otherwise, the request will fail.
Photo *Photo `protobuf:"bytes,1,opt,name=photo" json:"photo,omitempty"`
Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"`
// Mask that identifies fields on the photo metadata to update.
// If not present, the old Photo metadata will be entirely replaced with the
// new Photo metadata in this request. The update fails if invalid fields are
@@ -292,13 +465,36 @@ type UpdatePhotoRequest struct {
// `UpdatePhotoRequest.photo.update_mask` contains `connections` and
// `UpdatePhotoRequest.photo.connections` is empty, all connections will be
// removed.
UpdateMask *google_protobuf2.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdatePhotoRequest) Reset() { *m = UpdatePhotoRequest{} }
func (m *UpdatePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*UpdatePhotoRequest) ProtoMessage() {}
func (*UpdatePhotoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
func (m *UpdatePhotoRequest) Reset() { *m = UpdatePhotoRequest{} }
func (m *UpdatePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*UpdatePhotoRequest) ProtoMessage() {}
func (*UpdatePhotoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{7}
}
func (m *UpdatePhotoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdatePhotoRequest.Unmarshal(m, b)
}
func (m *UpdatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdatePhotoRequest.Marshal(b, m, deterministic)
}
func (m *UpdatePhotoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdatePhotoRequest.Merge(m, src)
}
func (m *UpdatePhotoRequest) XXX_Size() int {
return xxx_messageInfo_UpdatePhotoRequest.Size(m)
}
func (m *UpdatePhotoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdatePhotoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdatePhotoRequest proto.InternalMessageInfo
func (m *UpdatePhotoRequest) GetPhoto() *Photo {
if m != nil {
@@ -307,7 +503,7 @@ func (m *UpdatePhotoRequest) GetPhoto() *Photo {
return nil
}
func (m *UpdatePhotoRequest) GetUpdateMask() *google_protobuf2.FieldMask {
func (m *UpdatePhotoRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
@@ -318,13 +514,36 @@ func (m *UpdatePhotoRequest) GetUpdateMask() *google_protobuf2.FieldMask {
// Updating the pixels of photos is not supported.
type BatchUpdatePhotosRequest struct {
// Required. List of update photo requests.
UpdatePhotoRequests []*UpdatePhotoRequest `protobuf:"bytes,1,rep,name=update_photo_requests,json=updatePhotoRequests" json:"update_photo_requests,omitempty"`
UpdatePhotoRequests []*UpdatePhotoRequest `protobuf:"bytes,1,rep,name=update_photo_requests,json=updatePhotoRequests,proto3" json:"update_photo_requests,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchUpdatePhotosRequest) Reset() { *m = BatchUpdatePhotosRequest{} }
func (m *BatchUpdatePhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchUpdatePhotosRequest) ProtoMessage() {}
func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
func (m *BatchUpdatePhotosRequest) Reset() { *m = BatchUpdatePhotosRequest{} }
func (m *BatchUpdatePhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchUpdatePhotosRequest) ProtoMessage() {}
func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{8}
}
func (m *BatchUpdatePhotosRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchUpdatePhotosRequest.Unmarshal(m, b)
}
func (m *BatchUpdatePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchUpdatePhotosRequest.Marshal(b, m, deterministic)
}
func (m *BatchUpdatePhotosRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchUpdatePhotosRequest.Merge(m, src)
}
func (m *BatchUpdatePhotosRequest) XXX_Size() int {
return xxx_messageInfo_BatchUpdatePhotosRequest.Size(m)
}
func (m *BatchUpdatePhotosRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchUpdatePhotosRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchUpdatePhotosRequest proto.InternalMessageInfo
func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest {
if m != nil {
@@ -337,13 +556,36 @@ func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoReques
type BatchUpdatePhotosResponse struct {
// List of results for each individual photo updated, in the same order as
// the request.
Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchUpdatePhotosResponse) Reset() { *m = BatchUpdatePhotosResponse{} }
func (m *BatchUpdatePhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchUpdatePhotosResponse) ProtoMessage() {}
func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
func (m *BatchUpdatePhotosResponse) Reset() { *m = BatchUpdatePhotosResponse{} }
func (m *BatchUpdatePhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchUpdatePhotosResponse) ProtoMessage() {}
func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{9}
}
func (m *BatchUpdatePhotosResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchUpdatePhotosResponse.Unmarshal(m, b)
}
func (m *BatchUpdatePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchUpdatePhotosResponse.Marshal(b, m, deterministic)
}
func (m *BatchUpdatePhotosResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchUpdatePhotosResponse.Merge(m, src)
}
func (m *BatchUpdatePhotosResponse) XXX_Size() int {
return xxx_messageInfo_BatchUpdatePhotosResponse.Size(m)
}
func (m *BatchUpdatePhotosResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchUpdatePhotosResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchUpdatePhotosResponse proto.InternalMessageInfo
func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse {
if m != nil {
@@ -355,13 +597,36 @@ func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse {
// Request to delete a photo.
type DeletePhotoRequest struct {
// Required. ID of the photo.
PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId" json:"photo_id,omitempty"`
PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeletePhotoRequest) Reset() { *m = DeletePhotoRequest{} }
func (m *DeletePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePhotoRequest) ProtoMessage() {}
func (*DeletePhotoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
func (m *DeletePhotoRequest) Reset() { *m = DeletePhotoRequest{} }
func (m *DeletePhotoRequest) String() string { return proto.CompactTextString(m) }
func (*DeletePhotoRequest) ProtoMessage() {}
func (*DeletePhotoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{10}
}
func (m *DeletePhotoRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeletePhotoRequest.Unmarshal(m, b)
}
func (m *DeletePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeletePhotoRequest.Marshal(b, m, deterministic)
}
func (m *DeletePhotoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeletePhotoRequest.Merge(m, src)
}
func (m *DeletePhotoRequest) XXX_Size() int {
return xxx_messageInfo_DeletePhotoRequest.Size(m)
}
func (m *DeletePhotoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeletePhotoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeletePhotoRequest proto.InternalMessageInfo
func (m *DeletePhotoRequest) GetPhotoId() string {
if m != nil {
@@ -373,13 +638,36 @@ func (m *DeletePhotoRequest) GetPhotoId() string {
// Request to delete multiple photos.
type BatchDeletePhotosRequest struct {
// Required. List of delete photo requests.
PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds" json:"photo_ids,omitempty"`
PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchDeletePhotosRequest) Reset() { *m = BatchDeletePhotosRequest{} }
func (m *BatchDeletePhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchDeletePhotosRequest) ProtoMessage() {}
func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
func (m *BatchDeletePhotosRequest) Reset() { *m = BatchDeletePhotosRequest{} }
func (m *BatchDeletePhotosRequest) String() string { return proto.CompactTextString(m) }
func (*BatchDeletePhotosRequest) ProtoMessage() {}
func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{11}
}
func (m *BatchDeletePhotosRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchDeletePhotosRequest.Unmarshal(m, b)
}
func (m *BatchDeletePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchDeletePhotosRequest.Marshal(b, m, deterministic)
}
func (m *BatchDeletePhotosRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchDeletePhotosRequest.Merge(m, src)
}
func (m *BatchDeletePhotosRequest) XXX_Size() int {
return xxx_messageInfo_BatchDeletePhotosRequest.Size(m)
}
func (m *BatchDeletePhotosRequest) XXX_DiscardUnknown() {
xxx_messageInfo_BatchDeletePhotosRequest.DiscardUnknown(m)
}
var xxx_messageInfo_BatchDeletePhotosRequest proto.InternalMessageInfo
func (m *BatchDeletePhotosRequest) GetPhotoIds() []string {
if m != nil {
@@ -391,15 +679,38 @@ func (m *BatchDeletePhotosRequest) GetPhotoIds() []string {
// Response to batch delete of one or more photos.
type BatchDeletePhotosResponse struct {
// The status for the operation to delete a single photo in the batch request.
Status []*google_rpc.Status `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"`
Status []*status.Status `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchDeletePhotosResponse) Reset() { *m = BatchDeletePhotosResponse{} }
func (m *BatchDeletePhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchDeletePhotosResponse) ProtoMessage() {}
func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
func (m *BatchDeletePhotosResponse) Reset() { *m = BatchDeletePhotosResponse{} }
func (m *BatchDeletePhotosResponse) String() string { return proto.CompactTextString(m) }
func (*BatchDeletePhotosResponse) ProtoMessage() {}
func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e56ff94407a6aca7, []int{12}
}
func (m *BatchDeletePhotosResponse) GetStatus() []*google_rpc.Status {
func (m *BatchDeletePhotosResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchDeletePhotosResponse.Unmarshal(m, b)
}
func (m *BatchDeletePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchDeletePhotosResponse.Marshal(b, m, deterministic)
}
func (m *BatchDeletePhotosResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchDeletePhotosResponse.Merge(m, src)
}
func (m *BatchDeletePhotosResponse) XXX_Size() int {
return xxx_messageInfo_BatchDeletePhotosResponse.Size(m)
}
func (m *BatchDeletePhotosResponse) XXX_DiscardUnknown() {
xxx_messageInfo_BatchDeletePhotosResponse.DiscardUnknown(m)
}
var xxx_messageInfo_BatchDeletePhotosResponse proto.InternalMessageInfo
func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status {
if m != nil {
return m.Status
}
@@ -407,6 +718,7 @@ func (m *BatchDeletePhotosResponse) GetStatus() []*google_rpc.Status {
}
func init() {
proto.RegisterEnum("google.streetview.publish.v1.PhotoView", PhotoView_name, PhotoView_value)
proto.RegisterType((*CreatePhotoRequest)(nil), "google.streetview.publish.v1.CreatePhotoRequest")
proto.RegisterType((*GetPhotoRequest)(nil), "google.streetview.publish.v1.GetPhotoRequest")
proto.RegisterType((*BatchGetPhotosRequest)(nil), "google.streetview.publish.v1.BatchGetPhotosRequest")
@@ -420,12 +732,13 @@ func init() {
proto.RegisterType((*DeletePhotoRequest)(nil), "google.streetview.publish.v1.DeletePhotoRequest")
proto.RegisterType((*BatchDeletePhotosRequest)(nil), "google.streetview.publish.v1.BatchDeletePhotosRequest")
proto.RegisterType((*BatchDeletePhotosResponse)(nil), "google.streetview.publish.v1.BatchDeletePhotosResponse")
proto.RegisterEnum("google.streetview.publish.v1.PhotoView", PhotoView_name, PhotoView_value)
}
func init() { proto.RegisterFile("google/streetview/publish/v1/rpcmessages.proto", fileDescriptor1) }
func init() {
proto.RegisterFile("google/streetview/publish/v1/rpcmessages.proto", fileDescriptor_e56ff94407a6aca7)
}
var fileDescriptor1 = []byte{
var fileDescriptor_e56ff94407a6aca7 = []byte{
// 639 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x6e, 0xd3, 0x40,
0x14, 0xc5, 0x7d, 0xa4, 0xcd, 0xad, 0x4a, 0xcb, 0x40, 0x8b, 0x1b, 0x8a, 0x14, 0x19, 0x09, 0xa2,

View File

@@ -3,15 +3,14 @@
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_protobuf4 "github.com/golang/protobuf/ptypes/empty"
import (
context "golang.org/x/net/context"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -19,6 +18,54 @@ 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
func init() {
proto.RegisterFile("google/streetview/publish/v1/streetview_publish.proto", fileDescriptor_39e5f334059d9d6e)
}
var fileDescriptor_39e5f334059d9d6e = []byte{
// 533 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x15, 0x24, 0x10, 0xb8, 0x08, 0x69, 0x86, 0x55, 0x53, 0x3a, 0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0x9d, 0x99, 0x9f, 0x01, 0x5a,
0x33, 0x23, 0xad, 0xc5, 0x29, 0xfc, 0xac, 0xc1, 0x0e, 0xea, 0x06, 0x07, 0xf8, 0xbc, 0xb5, 0xcf,
0xce, 0xeb, 0xae, 0x81, 0xee, 0x45, 0xdd, 0x8b, 0xeb, 0x2b, 0xd5, 0x8b, 0x7f, 0x57, 0x81, 0x3a,
0x2f, 0x21, 0x85, 0x86, 0xd3, 0xab, 0x49, 0x1d, 0xdc, 0x3f, 0x6e, 0x00, 0x77, 0xac, 0xfb, 0xab,
0x8f, 0xf5, 0x72, 0x40, 0xb5, 0x8e, 0xcd, 0x06, 0x54, 0x37, 0xb4, 0x19, 0xd0, 0x79, 0xdf, 0xff,
0x06, 0x54, 0xaa, 0x07, 0x41, 0x7f, 0x78, 0x16, 0xa0, 0x87, 0xb1, 0x98, 0xb9, 0x84, 0x04, 0x04,
0x29, 0x92, 0x78, 0x75, 0xd2, 0x70, 0xed, 0xaf, 0x7b, 0xf3, 0xdd, 0x9e, 0x33, 0x8a, 0x94, 0x65,
0x09, 0x11, 0x79, 0x42, 0x13, 0xc8, 0xcc, 0xb0, 0x68, 0x59, 0x62, 0x92, 0xab, 0xd5, 0x97, 0xf3,
0x0b, 0xfb, 0x71, 0x7c, 0xc5, 0xe8, 0x77, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x9d, 0xfe,
0x1c, 0x89, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
@@ -27,8 +74,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for StreetViewPublishService service
// StreetViewPublishServiceClient is the client API for StreetViewPublishService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type StreetViewPublishServiceClient interface {
// Creates an upload session to start uploading photo data. The upload URL of
// the returned `UploadRef` is used to upload the data for the photo.
@@ -36,7 +84,7 @@ type StreetViewPublishServiceClient interface {
// After the upload is complete, the `UploadRef` is used with
// `StreetViewPublishService:CreatePhoto()` to create the `Photo` object
// entry.
StartUpload(ctx context.Context, in *google_protobuf4.Empty, opts ...grpc.CallOption) (*UploadRef, error)
StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error)
// After the client finishes uploading the photo with the returned
// `UploadRef`, `photo.create` publishes the uploaded photo to Street View on
// Google Maps.
@@ -92,7 +140,7 @@ type StreetViewPublishServiceClient interface {
// * `PERMISSION_DENIED` if the requesting user did not create the requested
// photo.
// * `NOT_FOUND` if the photo ID does not exist.
DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error)
DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// Deletes a list of photos and their metadata.
//
// Note that if `photos.batchDelete` fails, either critical fields
@@ -112,9 +160,9 @@ func NewStreetViewPublishServiceClient(cc *grpc.ClientConn) StreetViewPublishSer
return &streetViewPublishServiceClient{cc}
}
func (c *streetViewPublishServiceClient) StartUpload(ctx context.Context, in *google_protobuf4.Empty, opts ...grpc.CallOption) (*UploadRef, error) {
func (c *streetViewPublishServiceClient) StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error) {
out := new(UploadRef)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/StartUpload", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/StartUpload", in, out, opts...)
if err != nil {
return nil, err
}
@@ -123,7 +171,7 @@ func (c *streetViewPublishServiceClient) StartUpload(ctx context.Context, in *go
func (c *streetViewPublishServiceClient) CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto", in, out, opts...)
if err != nil {
return nil, err
}
@@ -132,7 +180,7 @@ func (c *streetViewPublishServiceClient) CreatePhoto(ctx context.Context, in *Cr
func (c *streetViewPublishServiceClient) GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto", in, out, opts...)
if err != nil {
return nil, err
}
@@ -141,7 +189,7 @@ func (c *streetViewPublishServiceClient) GetPhoto(ctx context.Context, in *GetPh
func (c *streetViewPublishServiceClient) BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error) {
out := new(BatchGetPhotosResponse)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos", in, out, opts...)
if err != nil {
return nil, err
}
@@ -150,7 +198,7 @@ func (c *streetViewPublishServiceClient) BatchGetPhotos(ctx context.Context, in
func (c *streetViewPublishServiceClient) ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) {
out := new(ListPhotosResponse)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos", in, out, opts...)
if err != nil {
return nil, err
}
@@ -159,7 +207,7 @@ func (c *streetViewPublishServiceClient) ListPhotos(ctx context.Context, in *Lis
func (c *streetViewPublishServiceClient) UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto", in, out, opts...)
if err != nil {
return nil, err
}
@@ -168,16 +216,16 @@ func (c *streetViewPublishServiceClient) UpdatePhoto(ctx context.Context, in *Up
func (c *streetViewPublishServiceClient) BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error) {
out := new(BatchUpdatePhotosResponse)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*google_protobuf4.Empty, error) {
out := new(google_protobuf4.Empty)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto", in, out, c.cc, opts...)
func (c *streetViewPublishServiceClient) DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto", in, out, opts...)
if err != nil {
return nil, err
}
@@ -186,15 +234,14 @@ func (c *streetViewPublishServiceClient) DeletePhoto(ctx context.Context, in *De
func (c *streetViewPublishServiceClient) BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error) {
out := new(BatchDeletePhotosResponse)
err := grpc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for StreetViewPublishService service
// StreetViewPublishServiceServer is the server API for StreetViewPublishService service.
type StreetViewPublishServiceServer interface {
// Creates an upload session to start uploading photo data. The upload URL of
// the returned `UploadRef` is used to upload the data for the photo.
@@ -202,7 +249,7 @@ type StreetViewPublishServiceServer interface {
// After the upload is complete, the `UploadRef` is used with
// `StreetViewPublishService:CreatePhoto()` to create the `Photo` object
// entry.
StartUpload(context.Context, *google_protobuf4.Empty) (*UploadRef, error)
StartUpload(context.Context, *empty.Empty) (*UploadRef, error)
// After the client finishes uploading the photo with the returned
// `UploadRef`, `photo.create` publishes the uploaded photo to Street View on
// Google Maps.
@@ -258,7 +305,7 @@ type StreetViewPublishServiceServer interface {
// * `PERMISSION_DENIED` if the requesting user did not create the requested
// photo.
// * `NOT_FOUND` if the photo ID does not exist.
DeletePhoto(context.Context, *DeletePhotoRequest) (*google_protobuf4.Empty, error)
DeletePhoto(context.Context, *DeletePhotoRequest) (*empty.Empty, error)
// Deletes a list of photos and their metadata.
//
// Note that if `photos.batchDelete` fails, either critical fields
@@ -275,7 +322,7 @@ func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublis
}
func _StreetViewPublishService_StartUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_protobuf4.Empty)
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
@@ -287,7 +334,7 @@ func _StreetViewPublishService_StartUpload_Handler(srv interface{}, ctx context.
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/StartUpload",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).StartUpload(ctx, req.(*google_protobuf4.Empty))
return srv.(StreetViewPublishServiceServer).StartUpload(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
@@ -480,45 +527,3 @@ var _StreetViewPublishService_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{},
Metadata: "google/streetview/publish/v1/streetview_publish.proto",
}
func init() {
proto.RegisterFile("google/streetview/publish/v1/streetview_publish.proto", fileDescriptor2)
}
var fileDescriptor2 = []byte{
// 533 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x15, 0x24, 0x10, 0xb8, 0x08, 0x69, 0x86, 0x55, 0x53, 0x3a, 0x24, 0x08, 0x12, 0xa0,
0x6a, 0xd8, 0x1b, 0xe3, 0x8f, 0x54, 0x6e, 0x1d, 0x88, 0x0b, 0x87, 0x69, 0xd5, 0x38, 0x70, 0x99,
0xdc, 0xf4, 0x5d, 0x6a, 0x29, 0x8d, 0x4d, 0xec, 0x74, 0x42, 0x30, 0x0e, 0xe3, 0xc8, 0x0d, 0x2e,
0x7c, 0x03, 0x3e, 0x10, 0x5f, 0x81, 0x0f, 0x82, 0xea, 0xd8, 0x4d, 0x36, 0x8a, 0x49, 0x4e, 0x69,
0xf3, 0x3e, 0xcf, 0xfb, 0xfc, 0xfa, 0xbe, 0xae, 0xd1, 0xd3, 0x44, 0x88, 0x24, 0x05, 0xaa, 0x74,
0x0e, 0xa0, 0xe7, 0x1c, 0x4e, 0xa8, 0x2c, 0xc6, 0x29, 0x57, 0x53, 0x3a, 0xdf, 0xa9, 0xbd, 0x3d,
0xb2, 0x6f, 0x89, 0xcc, 0x85, 0x16, 0x78, 0xb3, 0xb4, 0x91, 0x4a, 0x40, 0x9c, 0x60, 0xbe, 0x13,
0xda, 0x2a, 0x65, 0x92, 0x53, 0x96, 0x65, 0x42, 0x33, 0xcd, 0x45, 0xa6, 0x4a, 0x6f, 0xd8, 0xb3,
0x55, 0xf3, 0x6d, 0x5c, 0x1c, 0x53, 0x98, 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, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x9d, 0xfe,
0x1c, 0x89, 0x06, 0x00, 0x00,
}