publish

package
v0.0.0-...-96659ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var PhotoView_name = map[int32]string{
	0: "BASIC",
	1: "INCLUDE_DOWNLOAD_URL",
}
View Source
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" json:"photo_ids,omitempty"`
}

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

type BatchDeletePhotosResponse

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"`
}

Response to batch delete of one or more photos.

func (*BatchDeletePhotosResponse) Descriptor

func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int)

func (*BatchDeletePhotosResponse) GetStatus

func (m *BatchDeletePhotosResponse) GetStatus() []*google_rpc.Status

func (*BatchDeletePhotosResponse) ProtoMessage

func (*BatchDeletePhotosResponse) ProtoMessage()

func (*BatchDeletePhotosResponse) Reset

func (m *BatchDeletePhotosResponse) Reset()

func (*BatchDeletePhotosResponse) String

func (m *BatchDeletePhotosResponse) String() string

type BatchGetPhotosRequest

type BatchGetPhotosRequest struct {
	// Required. IDs of the photos.
	PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds" 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"`
}

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

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" json:"results,omitempty"`
}

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

type BatchUpdatePhotosRequest

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"`
}

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

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" json:"results,omitempty"`
}

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

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" json:"target,omitempty"`
}

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

type CreatePhotoRequest

type CreatePhotoRequest struct {
	// Required. Photo to create.
	Photo *Photo `protobuf:"bytes,1,opt,name=photo" json:"photo,omitempty"`
}

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

type DeletePhotoRequest

type DeletePhotoRequest struct {
	// Required. ID of the photo.
	PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId" json:"photo_id,omitempty"`
}

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

type GetPhotoRequest

type GetPhotoRequest struct {
	// Required. ID of the photo.
	PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId" 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"`
}

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

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" 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"`
}

Level information containing level number and its corresponding name.

func (*Level) Descriptor

func (*Level) Descriptor() ([]byte, []int)

func (*Level) GetName

func (m *Level) GetName() string

func (*Level) GetNumber

func (m *Level) GetNumber() float64

func (*Level) ProtoMessage

func (*Level) ProtoMessage()

func (*Level) Reset

func (m *Level) Reset()

func (*Level) String

func (m *Level) String() string

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,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"`
	// 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"`
	// The filter expression.
	// Example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`
	Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
}

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

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" 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"`
}

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

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" json:"photo_id,omitempty"`
	// Required (when creating photo). Input only. The resource URL where the
	// photo bytes are uploaded to.
	UploadReference *UploadRef `protobuf:"bytes,2,opt,name=upload_reference,json=uploadReference" json:"upload_reference,omitempty"`
	// Output only. The download URL for the photo bytes. This field is set only
	// when the `view` parameter in a `GetPhotoRequest` is set to
	// `INCLUDE_DOWNLOAD_URL`.
	DownloadUrl string `protobuf:"bytes,3,opt,name=download_url,json=downloadUrl" json:"download_url,omitempty"`
	// Output only. The thumbnail URL for showing a preview of the given photo.
	ThumbnailUrl string `protobuf:"bytes,9,opt,name=thumbnail_url,json=thumbnailUrl" json:"thumbnail_url,omitempty"`
	// Output only. The share link for the photo.
	ShareLink string `protobuf:"bytes,11,opt,name=share_link,json=shareLink" json:"share_link,omitempty"`
	// Pose of the photo.
	Pose *Pose `protobuf:"bytes,4,opt,name=pose" json:"pose,omitempty"`
	// Connections to other photos. A connection represents the link from this
	// photo to another photo.
	Connections []*Connection `protobuf:"bytes,5,rep,name=connections" json:"connections,omitempty"`
	// Absolute time when the photo was captured.
	// When the photo has no exif timestamp, this is used to set a timestamp in
	// the photo metadata.
	CaptureTime *google_protobuf1.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime" json:"capture_time,omitempty"`
	// Places where this photo belongs.
	Places []*Place `protobuf:"bytes,7,rep,name=places" json:"places,omitempty"`
	// Output only. View count of the photo.
	ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount" json:"view_count,omitempty"`
}

Photo is used to store 360 photos along with photo metadata.

func (*Photo) Descriptor

func (*Photo) Descriptor() ([]byte, []int)

func (*Photo) GetCaptureTime

func (m *Photo) GetCaptureTime() *google_protobuf1.Timestamp

func (*Photo) GetConnections

func (m *Photo) GetConnections() []*Connection

func (*Photo) GetDownloadUrl

func (m *Photo) GetDownloadUrl() string

func (*Photo) GetPhotoId

func (m *Photo) GetPhotoId() *PhotoId

func (*Photo) GetPlaces

func (m *Photo) GetPlaces() []*Place

func (*Photo) GetPose

func (m *Photo) GetPose() *Pose
func (m *Photo) GetShareLink() string

func (*Photo) GetThumbnailUrl

func (m *Photo) GetThumbnailUrl() string

func (*Photo) GetUploadReference

func (m *Photo) GetUploadReference() *UploadRef

func (*Photo) GetViewCount

func (m *Photo) GetViewCount() int64

func (*Photo) ProtoMessage

func (*Photo) ProtoMessage()

func (*Photo) Reset

func (m *Photo) Reset()

func (*Photo) String

func (m *Photo) String() string

type PhotoId

type PhotoId struct {
	// Required. A base64 encoded identifier.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

Identifier for a photo.

func (*PhotoId) Descriptor

func (*PhotoId) Descriptor() ([]byte, []int)

func (*PhotoId) GetId

func (m *PhotoId) GetId() string

func (*PhotoId) ProtoMessage

func (*PhotoId) ProtoMessage()

func (*PhotoId) Reset

func (m *PhotoId) Reset()

func (*PhotoId) String

func (m *PhotoId) String() string

type 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"`
	// The photo resource, if the request was successful.
	Photo *Photo `protobuf:"bytes,2,opt,name=photo" json:"photo,omitempty"`
}

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() *google_rpc.Status

func (*PhotoResponse) ProtoMessage

func (*PhotoResponse) ProtoMessage()

func (*PhotoResponse) Reset

func (m *PhotoResponse) Reset()

func (*PhotoResponse) String

func (m *PhotoResponse) String() string

type PhotoView

type PhotoView int32

Specifies which view of the `Photo` should be included in the response.

const (
	// Server reponses do not include the download URL for the photo bytes.
	// The default value.
	PhotoView_BASIC PhotoView = 0
	// Server responses include the download URL for the photo bytes.
	PhotoView_INCLUDE_DOWNLOAD_URL PhotoView = 1
)

func (PhotoView) EnumDescriptor

func (PhotoView) EnumDescriptor() ([]byte, []int)

func (PhotoView) String

func (x PhotoView) String() string

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" json:"place_id,omitempty"`
}

Place metadata for an entity.

func (*Place) Descriptor

func (*Place) Descriptor() ([]byte, []int)

func (*Place) GetPlaceId

func (m *Place) GetPlaceId() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) Reset

func (m *Place) Reset()

func (*Place) String

func (m *Place) String() string

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 *google_type.LatLng `protobuf:"bytes,1,opt,name=lat_lng_pair,json=latLngPair" json:"lat_lng_pair,omitempty"`
	// Altitude of the pose in meters above ground level (as defined by WGS84).
	// NaN indicates an unmeasured quantity.
	Altitude float64 `protobuf:"fixed64,2,opt,name=altitude" json:"altitude,omitempty"`
	// Compass heading, measured at the center of the photo in degrees clockwise
	// from North. Value must be >=0 and <360.
	// NaN indicates an unmeasured quantity.
	Heading float64 `protobuf:"fixed64,3,opt,name=heading" json:"heading,omitempty"`
	// Pitch, measured at the center of the photo in degrees. Value must be >=-90
	// and <= 90. A value of -90 means looking directly down, and a value of 90
	// means looking directly up.
	// NaN indicates an unmeasured quantity.
	Pitch float64 `protobuf:"fixed64,4,opt,name=pitch" json:"pitch,omitempty"`
	// Roll, measured in degrees. Value must be >= 0 and <360. A value of 0
	// means level with the horizon.
	// NaN indicates an unmeasured quantity.
	Roll float64 `protobuf:"fixed64,5,opt,name=roll" json:"roll,omitempty"`
	// Level (the floor in a building) used to configure vertical navigation.
	Level *Level `protobuf:"bytes,7,opt,name=level" json:"level,omitempty"`
}

Raw pose measurement for an entity.

func (*Pose) Descriptor

func (*Pose) Descriptor() ([]byte, []int)

func (*Pose) GetAltitude

func (m *Pose) GetAltitude() float64

func (*Pose) GetHeading

func (m *Pose) GetHeading() float64

func (*Pose) GetLatLngPair

func (m *Pose) GetLatLngPair() *google_type.LatLng

func (*Pose) GetLevel

func (m *Pose) GetLevel() *Level

func (*Pose) GetPitch

func (m *Pose) GetPitch() float64

func (*Pose) GetRoll

func (m *Pose) GetRoll() float64

func (*Pose) ProtoMessage

func (*Pose) ProtoMessage()

func (*Pose) Reset

func (m *Pose) Reset()

func (*Pose) String

func (m *Pose) String() string

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 *google_protobuf4.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) (*google_protobuf4.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)
}

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, *google_protobuf4.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) (*google_protobuf4.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)
}

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" 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 *google_protobuf2.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}

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() *google_protobuf2.FieldMask

func (*UpdatePhotoRequest) ProtoMessage

func (*UpdatePhotoRequest) ProtoMessage()

func (*UpdatePhotoRequest) Reset

func (m *UpdatePhotoRequest) Reset()

func (*UpdatePhotoRequest) String

func (m *UpdatePhotoRequest) String() string

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" json:"upload_url,omitempty"`
}

Upload reference for media files.

func (*UploadRef) Descriptor

func (*UploadRef) Descriptor() ([]byte, []int)

func (*UploadRef) GetUploadUrl

func (m *UploadRef) GetUploadUrl() string

func (*UploadRef) ProtoMessage

func (*UploadRef) ProtoMessage()

func (*UploadRef) Reset

func (m *UploadRef) Reset()

func (*UploadRef) String

func (m *UploadRef) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL