Documentation ¶
Index ¶
- Variables
- func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer)
- type BatchDeletePhotosRequest
- func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int)
- func (m *BatchDeletePhotosRequest) GetPhotoIds() []string
- func (*BatchDeletePhotosRequest) ProtoMessage()
- func (m *BatchDeletePhotosRequest) Reset()
- func (m *BatchDeletePhotosRequest) String() string
- func (m *BatchDeletePhotosRequest) XXX_DiscardUnknown()
- func (m *BatchDeletePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchDeletePhotosRequest) XXX_Merge(src proto.Message)
- func (m *BatchDeletePhotosRequest) XXX_Size() int
- func (m *BatchDeletePhotosRequest) XXX_Unmarshal(b []byte) error
- type BatchDeletePhotosResponse
- func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int)
- func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status
- func (*BatchDeletePhotosResponse) ProtoMessage()
- func (m *BatchDeletePhotosResponse) Reset()
- func (m *BatchDeletePhotosResponse) String() string
- func (m *BatchDeletePhotosResponse) XXX_DiscardUnknown()
- func (m *BatchDeletePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchDeletePhotosResponse) XXX_Merge(src proto.Message)
- func (m *BatchDeletePhotosResponse) XXX_Size() int
- func (m *BatchDeletePhotosResponse) XXX_Unmarshal(b []byte) error
- type BatchGetPhotosRequest
- func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int)
- func (m *BatchGetPhotosRequest) GetPhotoIds() []string
- func (m *BatchGetPhotosRequest) GetView() PhotoView
- func (*BatchGetPhotosRequest) ProtoMessage()
- func (m *BatchGetPhotosRequest) Reset()
- func (m *BatchGetPhotosRequest) String() string
- func (m *BatchGetPhotosRequest) XXX_DiscardUnknown()
- func (m *BatchGetPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetPhotosRequest) XXX_Merge(src proto.Message)
- func (m *BatchGetPhotosRequest) XXX_Size() int
- func (m *BatchGetPhotosRequest) XXX_Unmarshal(b []byte) error
- type BatchGetPhotosResponse
- func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int)
- func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse
- func (*BatchGetPhotosResponse) ProtoMessage()
- func (m *BatchGetPhotosResponse) Reset()
- func (m *BatchGetPhotosResponse) String() string
- func (m *BatchGetPhotosResponse) XXX_DiscardUnknown()
- func (m *BatchGetPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetPhotosResponse) XXX_Merge(src proto.Message)
- func (m *BatchGetPhotosResponse) XXX_Size() int
- func (m *BatchGetPhotosResponse) XXX_Unmarshal(b []byte) error
- type BatchUpdatePhotosRequest
- func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int)
- func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest
- func (*BatchUpdatePhotosRequest) ProtoMessage()
- func (m *BatchUpdatePhotosRequest) Reset()
- func (m *BatchUpdatePhotosRequest) String() string
- func (m *BatchUpdatePhotosRequest) XXX_DiscardUnknown()
- func (m *BatchUpdatePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchUpdatePhotosRequest) XXX_Merge(src proto.Message)
- func (m *BatchUpdatePhotosRequest) XXX_Size() int
- func (m *BatchUpdatePhotosRequest) XXX_Unmarshal(b []byte) error
- type BatchUpdatePhotosResponse
- func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int)
- func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse
- func (*BatchUpdatePhotosResponse) ProtoMessage()
- func (m *BatchUpdatePhotosResponse) Reset()
- func (m *BatchUpdatePhotosResponse) String() string
- func (m *BatchUpdatePhotosResponse) XXX_DiscardUnknown()
- func (m *BatchUpdatePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchUpdatePhotosResponse) XXX_Merge(src proto.Message)
- func (m *BatchUpdatePhotosResponse) XXX_Size() int
- func (m *BatchUpdatePhotosResponse) XXX_Unmarshal(b []byte) error
- type Connection
- func (*Connection) Descriptor() ([]byte, []int)
- func (m *Connection) GetTarget() *PhotoId
- func (*Connection) ProtoMessage()
- func (m *Connection) Reset()
- func (m *Connection) String() string
- func (m *Connection) XXX_DiscardUnknown()
- func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Connection) XXX_Merge(src proto.Message)
- func (m *Connection) XXX_Size() int
- func (m *Connection) XXX_Unmarshal(b []byte) error
- type CreatePhotoRequest
- func (*CreatePhotoRequest) Descriptor() ([]byte, []int)
- func (m *CreatePhotoRequest) GetPhoto() *Photo
- func (*CreatePhotoRequest) ProtoMessage()
- func (m *CreatePhotoRequest) Reset()
- func (m *CreatePhotoRequest) String() string
- func (m *CreatePhotoRequest) XXX_DiscardUnknown()
- func (m *CreatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreatePhotoRequest) XXX_Merge(src proto.Message)
- func (m *CreatePhotoRequest) XXX_Size() int
- func (m *CreatePhotoRequest) XXX_Unmarshal(b []byte) error
- type DeletePhotoRequest
- func (*DeletePhotoRequest) Descriptor() ([]byte, []int)
- func (m *DeletePhotoRequest) GetPhotoId() string
- func (*DeletePhotoRequest) ProtoMessage()
- func (m *DeletePhotoRequest) Reset()
- func (m *DeletePhotoRequest) String() string
- func (m *DeletePhotoRequest) XXX_DiscardUnknown()
- func (m *DeletePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeletePhotoRequest) XXX_Merge(src proto.Message)
- func (m *DeletePhotoRequest) XXX_Size() int
- func (m *DeletePhotoRequest) XXX_Unmarshal(b []byte) error
- type GetPhotoRequest
- func (*GetPhotoRequest) Descriptor() ([]byte, []int)
- func (m *GetPhotoRequest) GetPhotoId() string
- func (m *GetPhotoRequest) GetView() PhotoView
- func (*GetPhotoRequest) ProtoMessage()
- func (m *GetPhotoRequest) Reset()
- func (m *GetPhotoRequest) String() string
- func (m *GetPhotoRequest) XXX_DiscardUnknown()
- func (m *GetPhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPhotoRequest) XXX_Merge(src proto.Message)
- func (m *GetPhotoRequest) XXX_Size() int
- func (m *GetPhotoRequest) XXX_Unmarshal(b []byte) error
- type Level
- func (*Level) Descriptor() ([]byte, []int)
- func (m *Level) GetName() string
- func (m *Level) GetNumber() float64
- func (*Level) ProtoMessage()
- func (m *Level) Reset()
- func (m *Level) String() string
- func (m *Level) XXX_DiscardUnknown()
- func (m *Level) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Level) XXX_Merge(src proto.Message)
- func (m *Level) XXX_Size() int
- func (m *Level) XXX_Unmarshal(b []byte) error
- type ListPhotosRequest
- func (*ListPhotosRequest) Descriptor() ([]byte, []int)
- func (m *ListPhotosRequest) GetFilter() string
- func (m *ListPhotosRequest) GetPageSize() int32
- func (m *ListPhotosRequest) GetPageToken() string
- func (m *ListPhotosRequest) GetView() PhotoView
- func (*ListPhotosRequest) ProtoMessage()
- func (m *ListPhotosRequest) Reset()
- func (m *ListPhotosRequest) String() string
- func (m *ListPhotosRequest) XXX_DiscardUnknown()
- func (m *ListPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPhotosRequest) XXX_Merge(src proto.Message)
- func (m *ListPhotosRequest) XXX_Size() int
- func (m *ListPhotosRequest) XXX_Unmarshal(b []byte) error
- type ListPhotosResponse
- func (*ListPhotosResponse) Descriptor() ([]byte, []int)
- func (m *ListPhotosResponse) GetNextPageToken() string
- func (m *ListPhotosResponse) GetPhotos() []*Photo
- func (*ListPhotosResponse) ProtoMessage()
- func (m *ListPhotosResponse) Reset()
- func (m *ListPhotosResponse) String() string
- func (m *ListPhotosResponse) XXX_DiscardUnknown()
- func (m *ListPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPhotosResponse) XXX_Merge(src proto.Message)
- func (m *ListPhotosResponse) XXX_Size() int
- func (m *ListPhotosResponse) XXX_Unmarshal(b []byte) error
- type Photo
- func (*Photo) Descriptor() ([]byte, []int)
- func (m *Photo) GetCaptureTime() *timestamp.Timestamp
- func (m *Photo) GetConnections() []*Connection
- func (m *Photo) GetDownloadUrl() string
- func (m *Photo) GetPhotoId() *PhotoId
- func (m *Photo) GetPlaces() []*Place
- func (m *Photo) GetPose() *Pose
- func (m *Photo) GetShareLink() string
- func (m *Photo) GetThumbnailUrl() string
- func (m *Photo) GetUploadReference() *UploadRef
- func (m *Photo) GetViewCount() int64
- func (*Photo) ProtoMessage()
- func (m *Photo) Reset()
- func (m *Photo) String() string
- func (m *Photo) XXX_DiscardUnknown()
- func (m *Photo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Photo) XXX_Merge(src proto.Message)
- func (m *Photo) XXX_Size() int
- func (m *Photo) XXX_Unmarshal(b []byte) error
- type PhotoId
- func (*PhotoId) Descriptor() ([]byte, []int)
- func (m *PhotoId) GetId() string
- func (*PhotoId) ProtoMessage()
- func (m *PhotoId) Reset()
- func (m *PhotoId) String() string
- func (m *PhotoId) XXX_DiscardUnknown()
- func (m *PhotoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PhotoId) XXX_Merge(src proto.Message)
- func (m *PhotoId) XXX_Size() int
- func (m *PhotoId) XXX_Unmarshal(b []byte) error
- type PhotoResponse
- func (*PhotoResponse) Descriptor() ([]byte, []int)
- func (m *PhotoResponse) GetPhoto() *Photo
- func (m *PhotoResponse) GetStatus() *status.Status
- func (*PhotoResponse) ProtoMessage()
- func (m *PhotoResponse) Reset()
- func (m *PhotoResponse) String() string
- func (m *PhotoResponse) XXX_DiscardUnknown()
- func (m *PhotoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PhotoResponse) XXX_Merge(src proto.Message)
- func (m *PhotoResponse) XXX_Size() int
- func (m *PhotoResponse) XXX_Unmarshal(b []byte) error
- type PhotoView
- type Place
- func (*Place) Descriptor() ([]byte, []int)
- func (m *Place) GetPlaceId() string
- func (*Place) ProtoMessage()
- func (m *Place) Reset()
- func (m *Place) String() string
- func (m *Place) XXX_DiscardUnknown()
- func (m *Place) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Place) XXX_Merge(src proto.Message)
- func (m *Place) XXX_Size() int
- func (m *Place) XXX_Unmarshal(b []byte) error
- type Pose
- func (*Pose) Descriptor() ([]byte, []int)
- func (m *Pose) GetAltitude() float64
- func (m *Pose) GetHeading() float64
- func (m *Pose) GetLatLngPair() *latlng.LatLng
- func (m *Pose) GetLevel() *Level
- func (m *Pose) GetPitch() float64
- func (m *Pose) GetRoll() float64
- func (*Pose) ProtoMessage()
- func (m *Pose) Reset()
- func (m *Pose) String() string
- func (m *Pose) XXX_DiscardUnknown()
- func (m *Pose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pose) XXX_Merge(src proto.Message)
- func (m *Pose) XXX_Size() int
- func (m *Pose) XXX_Unmarshal(b []byte) error
- type StreetViewPublishServiceClient
- type StreetViewPublishServiceServer
- type UpdatePhotoRequest
- func (*UpdatePhotoRequest) Descriptor() ([]byte, []int)
- func (m *UpdatePhotoRequest) GetPhoto() *Photo
- func (m *UpdatePhotoRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdatePhotoRequest) ProtoMessage()
- func (m *UpdatePhotoRequest) Reset()
- func (m *UpdatePhotoRequest) String() string
- func (m *UpdatePhotoRequest) XXX_DiscardUnknown()
- func (m *UpdatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePhotoRequest) XXX_Merge(src proto.Message)
- func (m *UpdatePhotoRequest) XXX_Size() int
- func (m *UpdatePhotoRequest) XXX_Unmarshal(b []byte) error
- type UploadRef
- func (*UploadRef) Descriptor() ([]byte, []int)
- func (m *UploadRef) GetUploadUrl() string
- func (*UploadRef) ProtoMessage()
- func (m *UploadRef) Reset()
- func (m *UploadRef) String() string
- func (m *UploadRef) XXX_DiscardUnknown()
- func (m *UploadRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UploadRef) XXX_Merge(src proto.Message)
- func (m *UploadRef) XXX_Size() int
- func (m *UploadRef) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var PhotoView_name = map[int32]string{
0: "BASIC",
1: "INCLUDE_DOWNLOAD_URL",
}
var PhotoView_value = map[string]int32{
"BASIC": 0,
"INCLUDE_DOWNLOAD_URL": 1,
}
Functions ¶
func RegisterStreetViewPublishServiceServer ¶
func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer)
Types ¶
type BatchDeletePhotosRequest ¶
type BatchDeletePhotosRequest struct { // Required. List of delete photo requests. 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:"-"` }
Request to delete multiple photos.
func (*BatchDeletePhotosRequest) Descriptor ¶
func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int)
func (*BatchDeletePhotosRequest) GetPhotoIds ¶
func (m *BatchDeletePhotosRequest) GetPhotoIds() []string
func (*BatchDeletePhotosRequest) ProtoMessage ¶
func (*BatchDeletePhotosRequest) ProtoMessage()
func (*BatchDeletePhotosRequest) Reset ¶
func (m *BatchDeletePhotosRequest) Reset()
func (*BatchDeletePhotosRequest) String ¶
func (m *BatchDeletePhotosRequest) String() string
func (*BatchDeletePhotosRequest) XXX_DiscardUnknown ¶
func (m *BatchDeletePhotosRequest) XXX_DiscardUnknown()
func (*BatchDeletePhotosRequest) XXX_Marshal ¶
func (m *BatchDeletePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchDeletePhotosRequest) XXX_Merge ¶
func (m *BatchDeletePhotosRequest) XXX_Merge(src proto.Message)
func (*BatchDeletePhotosRequest) XXX_Size ¶
func (m *BatchDeletePhotosRequest) XXX_Size() int
func (*BatchDeletePhotosRequest) XXX_Unmarshal ¶
func (m *BatchDeletePhotosRequest) XXX_Unmarshal(b []byte) error
type BatchDeletePhotosResponse ¶
type BatchDeletePhotosResponse struct { // The status for the operation to delete a single photo in the batch request. 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:"-"` }
Response to batch delete of one or more photos.
func (*BatchDeletePhotosResponse) Descriptor ¶
func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int)
func (*BatchDeletePhotosResponse) GetStatus ¶
func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status
func (*BatchDeletePhotosResponse) ProtoMessage ¶
func (*BatchDeletePhotosResponse) ProtoMessage()
func (*BatchDeletePhotosResponse) Reset ¶
func (m *BatchDeletePhotosResponse) Reset()
func (*BatchDeletePhotosResponse) String ¶
func (m *BatchDeletePhotosResponse) String() string
func (*BatchDeletePhotosResponse) XXX_DiscardUnknown ¶
func (m *BatchDeletePhotosResponse) XXX_DiscardUnknown()
func (*BatchDeletePhotosResponse) XXX_Marshal ¶
func (m *BatchDeletePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchDeletePhotosResponse) XXX_Merge ¶
func (m *BatchDeletePhotosResponse) XXX_Merge(src proto.Message)
func (*BatchDeletePhotosResponse) XXX_Size ¶
func (m *BatchDeletePhotosResponse) XXX_Size() int
func (*BatchDeletePhotosResponse) XXX_Unmarshal ¶
func (m *BatchDeletePhotosResponse) XXX_Unmarshal(b []byte) error
type BatchGetPhotosRequest ¶
type BatchGetPhotosRequest struct { // Required. IDs of the photos. 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,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request to get one or more photos. By default - does not return the download URL for the photo bytes.
Parameters: - 'view' controls if the download URL for the photo bytes will be returned.
func (*BatchGetPhotosRequest) Descriptor ¶
func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int)
func (*BatchGetPhotosRequest) GetPhotoIds ¶
func (m *BatchGetPhotosRequest) GetPhotoIds() []string
func (*BatchGetPhotosRequest) GetView ¶
func (m *BatchGetPhotosRequest) GetView() PhotoView
func (*BatchGetPhotosRequest) ProtoMessage ¶
func (*BatchGetPhotosRequest) ProtoMessage()
func (*BatchGetPhotosRequest) Reset ¶
func (m *BatchGetPhotosRequest) Reset()
func (*BatchGetPhotosRequest) String ¶
func (m *BatchGetPhotosRequest) String() string
func (*BatchGetPhotosRequest) XXX_DiscardUnknown ¶
func (m *BatchGetPhotosRequest) XXX_DiscardUnknown()
func (*BatchGetPhotosRequest) XXX_Marshal ¶
func (m *BatchGetPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetPhotosRequest) XXX_Merge ¶
func (m *BatchGetPhotosRequest) XXX_Merge(src proto.Message)
func (*BatchGetPhotosRequest) XXX_Size ¶
func (m *BatchGetPhotosRequest) XXX_Size() int
func (*BatchGetPhotosRequest) XXX_Unmarshal ¶
func (m *BatchGetPhotosRequest) XXX_Unmarshal(b []byte) error
type BatchGetPhotosResponse ¶
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,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response to batch get of photos.
func (*BatchGetPhotosResponse) Descriptor ¶
func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int)
func (*BatchGetPhotosResponse) GetResults ¶
func (m *BatchGetPhotosResponse) GetResults() []*PhotoResponse
func (*BatchGetPhotosResponse) ProtoMessage ¶
func (*BatchGetPhotosResponse) ProtoMessage()
func (*BatchGetPhotosResponse) Reset ¶
func (m *BatchGetPhotosResponse) Reset()
func (*BatchGetPhotosResponse) String ¶
func (m *BatchGetPhotosResponse) String() string
func (*BatchGetPhotosResponse) XXX_DiscardUnknown ¶
func (m *BatchGetPhotosResponse) XXX_DiscardUnknown()
func (*BatchGetPhotosResponse) XXX_Marshal ¶
func (m *BatchGetPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetPhotosResponse) XXX_Merge ¶
func (m *BatchGetPhotosResponse) XXX_Merge(src proto.Message)
func (*BatchGetPhotosResponse) XXX_Size ¶
func (m *BatchGetPhotosResponse) XXX_Size() int
func (*BatchGetPhotosResponse) XXX_Unmarshal ¶
func (m *BatchGetPhotosResponse) XXX_Unmarshal(b []byte) error
type BatchUpdatePhotosRequest ¶
type BatchUpdatePhotosRequest struct { // Required. List of update photo requests. 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:"-"` }
Request to update the metadata of photos. Updating the pixels of photos is not supported.
func (*BatchUpdatePhotosRequest) Descriptor ¶
func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int)
func (*BatchUpdatePhotosRequest) GetUpdatePhotoRequests ¶
func (m *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest
func (*BatchUpdatePhotosRequest) ProtoMessage ¶
func (*BatchUpdatePhotosRequest) ProtoMessage()
func (*BatchUpdatePhotosRequest) Reset ¶
func (m *BatchUpdatePhotosRequest) Reset()
func (*BatchUpdatePhotosRequest) String ¶
func (m *BatchUpdatePhotosRequest) String() string
func (*BatchUpdatePhotosRequest) XXX_DiscardUnknown ¶
func (m *BatchUpdatePhotosRequest) XXX_DiscardUnknown()
func (*BatchUpdatePhotosRequest) XXX_Marshal ¶
func (m *BatchUpdatePhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchUpdatePhotosRequest) XXX_Merge ¶
func (m *BatchUpdatePhotosRequest) XXX_Merge(src proto.Message)
func (*BatchUpdatePhotosRequest) XXX_Size ¶
func (m *BatchUpdatePhotosRequest) XXX_Size() int
func (*BatchUpdatePhotosRequest) XXX_Unmarshal ¶
func (m *BatchUpdatePhotosRequest) XXX_Unmarshal(b []byte) error
type BatchUpdatePhotosResponse ¶
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,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response to batch update of metadata of one or more photos.
func (*BatchUpdatePhotosResponse) Descriptor ¶
func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int)
func (*BatchUpdatePhotosResponse) GetResults ¶
func (m *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse
func (*BatchUpdatePhotosResponse) ProtoMessage ¶
func (*BatchUpdatePhotosResponse) ProtoMessage()
func (*BatchUpdatePhotosResponse) Reset ¶
func (m *BatchUpdatePhotosResponse) Reset()
func (*BatchUpdatePhotosResponse) String ¶
func (m *BatchUpdatePhotosResponse) String() string
func (*BatchUpdatePhotosResponse) XXX_DiscardUnknown ¶
func (m *BatchUpdatePhotosResponse) XXX_DiscardUnknown()
func (*BatchUpdatePhotosResponse) XXX_Marshal ¶
func (m *BatchUpdatePhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchUpdatePhotosResponse) XXX_Merge ¶
func (m *BatchUpdatePhotosResponse) XXX_Merge(src proto.Message)
func (*BatchUpdatePhotosResponse) XXX_Size ¶
func (m *BatchUpdatePhotosResponse) XXX_Size() int
func (*BatchUpdatePhotosResponse) XXX_Unmarshal ¶
func (m *BatchUpdatePhotosResponse) XXX_Unmarshal(b []byte) error
type Connection ¶
type Connection struct { // Required. The destination of the connection from the containing photo to // another photo. Target *PhotoId `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
A connection is the link from a source photo to a destination photo.
func (*Connection) Descriptor ¶
func (*Connection) Descriptor() ([]byte, []int)
func (*Connection) GetTarget ¶
func (m *Connection) GetTarget() *PhotoId
func (*Connection) ProtoMessage ¶
func (*Connection) ProtoMessage()
func (*Connection) Reset ¶
func (m *Connection) Reset()
func (*Connection) String ¶
func (m *Connection) String() string
func (*Connection) XXX_DiscardUnknown ¶
func (m *Connection) XXX_DiscardUnknown()
func (*Connection) XXX_Marshal ¶
func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Connection) XXX_Merge ¶
func (m *Connection) XXX_Merge(src proto.Message)
func (*Connection) XXX_Size ¶
func (m *Connection) XXX_Size() int
func (*Connection) XXX_Unmarshal ¶
func (m *Connection) XXX_Unmarshal(b []byte) error
type CreatePhotoRequest ¶
type CreatePhotoRequest struct { // Required. Photo to create. Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request to create a photo.
func (*CreatePhotoRequest) Descriptor ¶
func (*CreatePhotoRequest) Descriptor() ([]byte, []int)
func (*CreatePhotoRequest) GetPhoto ¶
func (m *CreatePhotoRequest) GetPhoto() *Photo
func (*CreatePhotoRequest) ProtoMessage ¶
func (*CreatePhotoRequest) ProtoMessage()
func (*CreatePhotoRequest) Reset ¶
func (m *CreatePhotoRequest) Reset()
func (*CreatePhotoRequest) String ¶
func (m *CreatePhotoRequest) String() string
func (*CreatePhotoRequest) XXX_DiscardUnknown ¶
func (m *CreatePhotoRequest) XXX_DiscardUnknown()
func (*CreatePhotoRequest) XXX_Marshal ¶
func (m *CreatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreatePhotoRequest) XXX_Merge ¶
func (m *CreatePhotoRequest) XXX_Merge(src proto.Message)
func (*CreatePhotoRequest) XXX_Size ¶
func (m *CreatePhotoRequest) XXX_Size() int
func (*CreatePhotoRequest) XXX_Unmarshal ¶
func (m *CreatePhotoRequest) XXX_Unmarshal(b []byte) error
type DeletePhotoRequest ¶
type DeletePhotoRequest struct { // Required. ID of the photo. 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:"-"` }
Request to delete a photo.
func (*DeletePhotoRequest) Descriptor ¶
func (*DeletePhotoRequest) Descriptor() ([]byte, []int)
func (*DeletePhotoRequest) GetPhotoId ¶
func (m *DeletePhotoRequest) GetPhotoId() string
func (*DeletePhotoRequest) ProtoMessage ¶
func (*DeletePhotoRequest) ProtoMessage()
func (*DeletePhotoRequest) Reset ¶
func (m *DeletePhotoRequest) Reset()
func (*DeletePhotoRequest) String ¶
func (m *DeletePhotoRequest) String() string
func (*DeletePhotoRequest) XXX_DiscardUnknown ¶
func (m *DeletePhotoRequest) XXX_DiscardUnknown()
func (*DeletePhotoRequest) XXX_Marshal ¶
func (m *DeletePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePhotoRequest) XXX_Merge ¶
func (m *DeletePhotoRequest) XXX_Merge(src proto.Message)
func (*DeletePhotoRequest) XXX_Size ¶
func (m *DeletePhotoRequest) XXX_Size() int
func (*DeletePhotoRequest) XXX_Unmarshal ¶
func (m *DeletePhotoRequest) XXX_Unmarshal(b []byte) error
type GetPhotoRequest ¶
type GetPhotoRequest struct { // Required. ID of the photo. 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,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request to get a photo.
By default - does not return the download URL for the photo bytes.
Parameters: - 'view' controls if the download URL for the photo bytes will be returned.
func (*GetPhotoRequest) Descriptor ¶
func (*GetPhotoRequest) Descriptor() ([]byte, []int)
func (*GetPhotoRequest) GetPhotoId ¶
func (m *GetPhotoRequest) GetPhotoId() string
func (*GetPhotoRequest) GetView ¶
func (m *GetPhotoRequest) GetView() PhotoView
func (*GetPhotoRequest) ProtoMessage ¶
func (*GetPhotoRequest) ProtoMessage()
func (*GetPhotoRequest) Reset ¶
func (m *GetPhotoRequest) Reset()
func (*GetPhotoRequest) String ¶
func (m *GetPhotoRequest) String() string
func (*GetPhotoRequest) XXX_DiscardUnknown ¶
func (m *GetPhotoRequest) XXX_DiscardUnknown()
func (*GetPhotoRequest) XXX_Marshal ¶
func (m *GetPhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPhotoRequest) XXX_Merge ¶
func (m *GetPhotoRequest) XXX_Merge(src proto.Message)
func (*GetPhotoRequest) XXX_Size ¶
func (m *GetPhotoRequest) XXX_Size() int
func (*GetPhotoRequest) XXX_Unmarshal ¶
func (m *GetPhotoRequest) XXX_Unmarshal(b []byte) error
type Level ¶
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,proto3" json:"number,omitempty"` // Required. A name assigned to this Level, restricted to 3 characters. // Consider how the elevator buttons would be labeled for this level if there // was an elevator. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Level information containing level number and its corresponding name.
func (*Level) Descriptor ¶
func (*Level) ProtoMessage ¶
func (*Level) ProtoMessage()
func (*Level) XXX_DiscardUnknown ¶
func (m *Level) XXX_DiscardUnknown()
func (*Level) XXX_Marshal ¶
func (*Level) XXX_Unmarshal ¶
type ListPhotosRequest ¶
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,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,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,proto3" json:"page_token,omitempty"` // The filter expression. // Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw` Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request to list all photos that belong to the user sending the request.
By default - does not return the download URL for the photo bytes.
Parameters:
- 'view' controls if the download URL for the photo bytes will be returned.
- 'page_size' determines the maximum number of photos to return.
- 'page_token' is the next page token value returned from a previous List request, if any.
func (*ListPhotosRequest) Descriptor ¶
func (*ListPhotosRequest) Descriptor() ([]byte, []int)
func (*ListPhotosRequest) GetFilter ¶
func (m *ListPhotosRequest) GetFilter() string
func (*ListPhotosRequest) GetPageSize ¶
func (m *ListPhotosRequest) GetPageSize() int32
func (*ListPhotosRequest) GetPageToken ¶
func (m *ListPhotosRequest) GetPageToken() string
func (*ListPhotosRequest) GetView ¶
func (m *ListPhotosRequest) GetView() PhotoView
func (*ListPhotosRequest) ProtoMessage ¶
func (*ListPhotosRequest) ProtoMessage()
func (*ListPhotosRequest) Reset ¶
func (m *ListPhotosRequest) Reset()
func (*ListPhotosRequest) String ¶
func (m *ListPhotosRequest) String() string
func (*ListPhotosRequest) XXX_DiscardUnknown ¶
func (m *ListPhotosRequest) XXX_DiscardUnknown()
func (*ListPhotosRequest) XXX_Marshal ¶
func (m *ListPhotosRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPhotosRequest) XXX_Merge ¶
func (m *ListPhotosRequest) XXX_Merge(src proto.Message)
func (*ListPhotosRequest) XXX_Size ¶
func (m *ListPhotosRequest) XXX_Size() int
func (*ListPhotosRequest) XXX_Unmarshal ¶
func (m *ListPhotosRequest) XXX_Unmarshal(b []byte) error
type ListPhotosResponse ¶
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,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,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response to list all photos that belong to a user.
func (*ListPhotosResponse) Descriptor ¶
func (*ListPhotosResponse) Descriptor() ([]byte, []int)
func (*ListPhotosResponse) GetNextPageToken ¶
func (m *ListPhotosResponse) GetNextPageToken() string
func (*ListPhotosResponse) GetPhotos ¶
func (m *ListPhotosResponse) GetPhotos() []*Photo
func (*ListPhotosResponse) ProtoMessage ¶
func (*ListPhotosResponse) ProtoMessage()
func (*ListPhotosResponse) Reset ¶
func (m *ListPhotosResponse) Reset()
func (*ListPhotosResponse) String ¶
func (m *ListPhotosResponse) String() string
func (*ListPhotosResponse) XXX_DiscardUnknown ¶
func (m *ListPhotosResponse) XXX_DiscardUnknown()
func (*ListPhotosResponse) XXX_Marshal ¶
func (m *ListPhotosResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPhotosResponse) XXX_Merge ¶
func (m *ListPhotosResponse) XXX_Merge(src proto.Message)
func (*ListPhotosResponse) XXX_Size ¶
func (m *ListPhotosResponse) XXX_Size() int
func (*ListPhotosResponse) XXX_Unmarshal ¶
func (m *ListPhotosResponse) XXX_Unmarshal(b []byte) error
type Photo ¶
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,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,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,proto3" json:"download_url,omitempty"` // Output only. The thumbnail URL for showing a preview of the given photo. ThumbnailUrl string `protobuf:"bytes,9,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` 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,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,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 *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,proto3" json:"places,omitempty"` // Output only. View count of the photo. ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Photo is used to store 360 photos along with photo metadata.
func (*Photo) Descriptor ¶
func (*Photo) GetCaptureTime ¶
func (*Photo) GetConnections ¶
func (m *Photo) GetConnections() []*Connection
func (*Photo) GetDownloadUrl ¶
func (*Photo) GetPhotoId ¶
func (*Photo) GetShareLink ¶
func (*Photo) GetThumbnailUrl ¶
func (*Photo) GetUploadReference ¶
func (*Photo) GetViewCount ¶
func (*Photo) ProtoMessage ¶
func (*Photo) ProtoMessage()
func (*Photo) XXX_DiscardUnknown ¶
func (m *Photo) XXX_DiscardUnknown()
func (*Photo) XXX_Marshal ¶
func (*Photo) XXX_Unmarshal ¶
type PhotoId ¶
type PhotoId struct { // Required. A base64 encoded identifier. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Identifier for a photo.
func (*PhotoId) Descriptor ¶
func (*PhotoId) ProtoMessage ¶
func (*PhotoId) ProtoMessage()
func (*PhotoId) XXX_DiscardUnknown ¶
func (m *PhotoId) XXX_DiscardUnknown()
func (*PhotoId) XXX_Marshal ¶
func (*PhotoId) XXX_Unmarshal ¶
type PhotoResponse ¶
type PhotoResponse struct { // The status for the operation to get or update a single photo in the batch // request. 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,proto3" json:"photo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response payload for a single `Photo` in batch operations including `BatchGetPhotosRequest` and `BatchUpdatePhotosRequest`.
func (*PhotoResponse) Descriptor ¶
func (*PhotoResponse) Descriptor() ([]byte, []int)
func (*PhotoResponse) GetPhoto ¶
func (m *PhotoResponse) GetPhoto() *Photo
func (*PhotoResponse) GetStatus ¶
func (m *PhotoResponse) GetStatus() *status.Status
func (*PhotoResponse) ProtoMessage ¶
func (*PhotoResponse) ProtoMessage()
func (*PhotoResponse) Reset ¶
func (m *PhotoResponse) Reset()
func (*PhotoResponse) String ¶
func (m *PhotoResponse) String() string
func (*PhotoResponse) XXX_DiscardUnknown ¶
func (m *PhotoResponse) XXX_DiscardUnknown()
func (*PhotoResponse) XXX_Marshal ¶
func (m *PhotoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PhotoResponse) XXX_Merge ¶
func (m *PhotoResponse) XXX_Merge(src proto.Message)
func (*PhotoResponse) XXX_Size ¶
func (m *PhotoResponse) XXX_Size() int
func (*PhotoResponse) XXX_Unmarshal ¶
func (m *PhotoResponse) XXX_Unmarshal(b []byte) error
type PhotoView ¶
type PhotoView int32
Specifies which view of the `Photo` should be included in the response.
func (PhotoView) EnumDescriptor ¶
type Place ¶
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,proto3" json:"place_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Place metadata for an entity.
func (*Place) Descriptor ¶
func (*Place) GetPlaceId ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) XXX_DiscardUnknown ¶
func (m *Place) XXX_DiscardUnknown()
func (*Place) XXX_Marshal ¶
func (*Place) XXX_Unmarshal ¶
type Pose ¶
type Pose struct { // Latitude and longitude pair of the pose, as explained here: // https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng // When creating a photo, if the latitude and longitude pair are not provided // here, the geolocation from the exif header will be used. // If the latitude and longitude pair is not provided and cannot be found in // the exif header, the create photo process will fail. LatLngPair *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,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,proto3" json:"heading,omitempty"` // Pitch, measured at the center of the photo in degrees. Value must be >=-90 // and <= 90. A value of -90 means looking directly down, and a value of 90 // means looking directly up. // NaN indicates an unmeasured quantity. Pitch float64 `protobuf:"fixed64,4,opt,name=pitch,proto3" json:"pitch,omitempty"` // Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 // means level with the horizon. // NaN indicates an unmeasured quantity. Roll float64 `protobuf:"fixed64,5,opt,name=roll,proto3" json:"roll,omitempty"` // Level (the floor in a building) used to configure vertical navigation. Level *Level `protobuf:"bytes,7,opt,name=level,proto3" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Raw pose measurement for an entity.
func (*Pose) Descriptor ¶
func (*Pose) GetAltitude ¶
func (*Pose) GetHeading ¶
func (*Pose) GetLatLngPair ¶
func (*Pose) ProtoMessage ¶
func (*Pose) ProtoMessage()
func (*Pose) XXX_DiscardUnknown ¶
func (m *Pose) XXX_DiscardUnknown()
func (*Pose) XXX_Unmarshal ¶
type StreetViewPublishServiceClient ¶
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. // // After the upload is complete, the `UploadRef` is used with // `StreetViewPublishService:CreatePhoto()` to create the `Photo` object // entry. 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. // // This method returns the following error codes: // // * `INVALID_ARGUMENT` if the request is malformed. // * `NOT_FOUND` if the upload reference does not exist. CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) // Gets the metadata of the specified `Photo`. // // This method returns the following error codes: // // * `PERMISSION_DENIED` if the requesting user did not create the requested // photo. // * `NOT_FOUND` if the requested photo does not exist. GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error) // Gets the metadata of the specified `Photo` batch. // // Note that if `photos.batchGet` fails, either critical fields are // missing or there was an authentication error. // Even if `photos.batchGet` succeeds, there may have been failures // for single photos in the batch. These failures will be specified in // `BatchGetPhotosResponse.results.status`. // See `photo.get` for specific failures that will occur per photo. BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error) // Lists all the photos that belong to the user. ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) // Updates the metadata of a photo, such as pose, place association, etc. // Changing the pixels of a photo is not supported. // // This method returns the following error codes: // // * `PERMISSION_DENIED` if the requesting user did not create the requested // photo. // * `INVALID_ARGUMENT` if the request is malformed. // * `NOT_FOUND` if the photo ID does not exist. UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) // Updates the metadata of photos, such as pose, place association, etc. // Changing the pixels of a photo is not supported. // // Note that if `photos.batchUpdate` fails, either critical fields // are missing or there was an authentication error. // Even if `photos.batchUpdate` succeeds, there may have been // failures for single photos in the batch. These failures will be specified // in `BatchUpdatePhotosResponse.results.status`. // See `UpdatePhoto` for specific failures that will occur per photo. BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error) // Deletes a photo and its metadata. // // This method returns the following error codes: // // * `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) (*empty.Empty, error) // Deletes a list of photos and their metadata. // // Note that if `photos.batchDelete` fails, either critical fields // are missing or there was an authentication error. // Even if `photos.batchDelete` succeeds, there may have been // failures for single photos in the batch. These failures will be specified // in `BatchDeletePhotosResponse.status`. // See `photo.update` for specific failures that will occur per photo. BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error) }
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.
func NewStreetViewPublishServiceClient ¶
func NewStreetViewPublishServiceClient(cc *grpc.ClientConn) StreetViewPublishServiceClient
type StreetViewPublishServiceServer ¶
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. // // After the upload is complete, the `UploadRef` is used with // `StreetViewPublishService:CreatePhoto()` to create the `Photo` object // entry. 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. // // This method returns the following error codes: // // * `INVALID_ARGUMENT` if the request is malformed. // * `NOT_FOUND` if the upload reference does not exist. CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error) // Gets the metadata of the specified `Photo`. // // This method returns the following error codes: // // * `PERMISSION_DENIED` if the requesting user did not create the requested // photo. // * `NOT_FOUND` if the requested photo does not exist. GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error) // Gets the metadata of the specified `Photo` batch. // // Note that if `photos.batchGet` fails, either critical fields are // missing or there was an authentication error. // Even if `photos.batchGet` succeeds, there may have been failures // for single photos in the batch. These failures will be specified in // `BatchGetPhotosResponse.results.status`. // See `photo.get` for specific failures that will occur per photo. BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error) // Lists all the photos that belong to the user. ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error) // Updates the metadata of a photo, such as pose, place association, etc. // Changing the pixels of a photo is not supported. // // This method returns the following error codes: // // * `PERMISSION_DENIED` if the requesting user did not create the requested // photo. // * `INVALID_ARGUMENT` if the request is malformed. // * `NOT_FOUND` if the photo ID does not exist. UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error) // Updates the metadata of photos, such as pose, place association, etc. // Changing the pixels of a photo is not supported. // // Note that if `photos.batchUpdate` fails, either critical fields // are missing or there was an authentication error. // Even if `photos.batchUpdate` succeeds, there may have been // failures for single photos in the batch. These failures will be specified // in `BatchUpdatePhotosResponse.results.status`. // See `UpdatePhoto` for specific failures that will occur per photo. BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error) // Deletes a photo and its metadata. // // This method returns the following error codes: // // * `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) (*empty.Empty, error) // Deletes a list of photos and their metadata. // // Note that if `photos.batchDelete` fails, either critical fields // are missing or there was an authentication error. // Even if `photos.batchDelete` succeeds, there may have been // failures for single photos in the batch. These failures will be specified // in `BatchDeletePhotosResponse.status`. // See `photo.update` for specific failures that will occur per photo. BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error) }
StreetViewPublishServiceServer is the server API for StreetViewPublishService service.
type UpdatePhotoRequest ¶
type UpdatePhotoRequest struct { // Required. Photo object containing the new metadata. Only the fields // specified in `update_mask` are used. If `update_mask` is not present, the // 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,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 // specified. Multiple fields can be specified in a comma-delimited list. // // The following fields are valid: // // * `pose.heading` // * `pose.latlngpair` // * `pose.pitch` // * `pose.roll` // * `pose.level` // * `pose.altitude` // * `connections` // * `places` // // // **Note:** Repeated fields in `update_mask` mean the entire set of repeated // values will be replaced with the new contents. For example, if // `UpdatePhotoRequest.photo.update_mask` contains `connections` and // `UpdatePhotoRequest.photo.connections` is empty, all connections will be // removed. 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:"-"` }
Request to update the metadata of a photo. Updating the pixels of a photo is not supported.
func (*UpdatePhotoRequest) Descriptor ¶
func (*UpdatePhotoRequest) Descriptor() ([]byte, []int)
func (*UpdatePhotoRequest) GetPhoto ¶
func (m *UpdatePhotoRequest) GetPhoto() *Photo
func (*UpdatePhotoRequest) GetUpdateMask ¶
func (m *UpdatePhotoRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdatePhotoRequest) ProtoMessage ¶
func (*UpdatePhotoRequest) ProtoMessage()
func (*UpdatePhotoRequest) Reset ¶
func (m *UpdatePhotoRequest) Reset()
func (*UpdatePhotoRequest) String ¶
func (m *UpdatePhotoRequest) String() string
func (*UpdatePhotoRequest) XXX_DiscardUnknown ¶
func (m *UpdatePhotoRequest) XXX_DiscardUnknown()
func (*UpdatePhotoRequest) XXX_Marshal ¶
func (m *UpdatePhotoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePhotoRequest) XXX_Merge ¶
func (m *UpdatePhotoRequest) XXX_Merge(src proto.Message)
func (*UpdatePhotoRequest) XXX_Size ¶
func (m *UpdatePhotoRequest) XXX_Size() int
func (*UpdatePhotoRequest) XXX_Unmarshal ¶
func (m *UpdatePhotoRequest) XXX_Unmarshal(b []byte) error
type UploadRef ¶
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,proto3" json:"upload_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Upload reference for media files.
func (*UploadRef) Descriptor ¶
func (*UploadRef) GetUploadUrl ¶
func (*UploadRef) ProtoMessage ¶
func (*UploadRef) ProtoMessage()
func (*UploadRef) XXX_DiscardUnknown ¶
func (m *UploadRef) XXX_DiscardUnknown()