publish

package
v0.0.0-...-6cb3ea0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Photo_TransferStatus_name = map[int32]string{
		0: "TRANSFER_STATUS_UNKNOWN",
		1: "NEVER_TRANSFERRED",
		2: "PENDING",
		3: "COMPLETED",
		4: "REJECTED",
		5: "EXPIRED",
		6: "CANCELLED",
		7: "RECEIVED_VIA_TRANSFER",
	}
	Photo_TransferStatus_value = map[string]int32{
		"TRANSFER_STATUS_UNKNOWN": 0,
		"NEVER_TRANSFERRED":       1,
		"PENDING":                 2,
		"COMPLETED":               3,
		"REJECTED":                4,
		"EXPIRED":                 5,
		"CANCELLED":               6,
		"RECEIVED_VIA_TRANSFER":   7,
	}
)

Enum value maps for Photo_TransferStatus.

View Source
var (
	Photo_MapsPublishStatus_name = map[int32]string{
		0: "UNSPECIFIED_MAPS_PUBLISH_STATUS",
		1: "PUBLISHED",
		2: "REJECTED_UNKNOWN",
	}
	Photo_MapsPublishStatus_value = map[string]int32{
		"UNSPECIFIED_MAPS_PUBLISH_STATUS": 0,
		"PUBLISHED":                       1,
		"REJECTED_UNKNOWN":                2,
	}
)

Enum value maps for Photo_MapsPublishStatus.

View Source
var (
	PhotoView_name = map[int32]string{
		0: "BASIC",
		1: "INCLUDE_DOWNLOAD_URL",
	}
	PhotoView_value = map[string]int32{
		"BASIC":                0,
		"INCLUDE_DOWNLOAD_URL": 1,
	}
)

Enum value maps for PhotoView.

View Source
var File_google_streetview_publish_v1_resources_proto protoreflect.FileDescriptor
View Source
var File_google_streetview_publish_v1_rpcmessages_proto protoreflect.FileDescriptor
View Source
var File_google_streetview_publish_v1_streetview_publish_proto protoreflect.FileDescriptor

Functions

func RegisterStreetViewPublishServiceServer

func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer)

Types

type BatchDeletePhotosRequest

type BatchDeletePhotosRequest struct {

	// Required. IDs of the [Photos][google.streetview.publish.v1.Photo]. HTTP
	// GET requests require the following syntax for the URL query parameter:
	// `photoIds=<id1>&photoIds=<id2>&...`.
	PhotoIds []string `protobuf:"bytes,1,rep,name=photo_ids,json=photoIds,proto3" json:"photo_ids,omitempty"`
	// contains filtered or unexported fields
}

Request to delete multiple [Photos][google.streetview.publish.v1.Photo].

func (*BatchDeletePhotosRequest) Descriptor deprecated

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

Deprecated: Use BatchDeletePhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchDeletePhotosRequest) GetPhotoIds

func (x *BatchDeletePhotosRequest) GetPhotoIds() []string

func (*BatchDeletePhotosRequest) ProtoMessage

func (*BatchDeletePhotosRequest) ProtoMessage()

func (*BatchDeletePhotosRequest) ProtoReflect

func (x *BatchDeletePhotosRequest) ProtoReflect() protoreflect.Message

func (*BatchDeletePhotosRequest) Reset

func (x *BatchDeletePhotosRequest) Reset()

func (*BatchDeletePhotosRequest) String

func (x *BatchDeletePhotosRequest) String() string

type BatchDeletePhotosResponse

type BatchDeletePhotosResponse struct {

	// The status for the operation to delete a single
	// [Photo][google.streetview.publish.v1.Photo] in the batch request.
	Status []*status.Status `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Response to batch delete of one or more [Photos][google.streetview.publish.v1.Photo].

func (*BatchDeletePhotosResponse) Descriptor deprecated

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

Deprecated: Use BatchDeletePhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchDeletePhotosResponse) GetStatus

func (x *BatchDeletePhotosResponse) GetStatus() []*status.Status

func (*BatchDeletePhotosResponse) ProtoMessage

func (*BatchDeletePhotosResponse) ProtoMessage()

func (*BatchDeletePhotosResponse) ProtoReflect

func (*BatchDeletePhotosResponse) Reset

func (x *BatchDeletePhotosResponse) Reset()

func (*BatchDeletePhotosResponse) String

func (x *BatchDeletePhotosResponse) String() string

type BatchGetPhotosRequest

type BatchGetPhotosRequest struct {

	// Required. IDs of the [Photos][google.streetview.publish.v1.Photo]. HTTP GET
	// requests require the following syntax for the URL query parameter:
	// `photoIds=<id1>&photoIds=<id2>&...`.
	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"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

Request to get one or more [Photos][google.streetview.publish.v1.Photo]. By default

* does not return the download URL for the photo bytes.

Parameters:

* `view` controls if the download URL for the photo bytes is returned.

func (*BatchGetPhotosRequest) Descriptor deprecated

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

Deprecated: Use BatchGetPhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchGetPhotosRequest) GetLanguageCode

func (x *BatchGetPhotosRequest) GetLanguageCode() string

func (*BatchGetPhotosRequest) GetPhotoIds

func (x *BatchGetPhotosRequest) GetPhotoIds() []string

func (*BatchGetPhotosRequest) GetView

func (x *BatchGetPhotosRequest) GetView() PhotoView

func (*BatchGetPhotosRequest) ProtoMessage

func (*BatchGetPhotosRequest) ProtoMessage()

func (*BatchGetPhotosRequest) ProtoReflect

func (x *BatchGetPhotosRequest) ProtoReflect() protoreflect.Message

func (*BatchGetPhotosRequest) Reset

func (x *BatchGetPhotosRequest) Reset()

func (*BatchGetPhotosRequest) String

func (x *BatchGetPhotosRequest) String() string

type BatchGetPhotosResponse

type BatchGetPhotosResponse struct {

	// List of results for each individual
	// [Photo][google.streetview.publish.v1.Photo] requested, in the same order as
	// the requests in
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos].
	Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

Response to batch get of [Photos][google.streetview.publish.v1.Photo].

func (*BatchGetPhotosResponse) Descriptor deprecated

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

Deprecated: Use BatchGetPhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchGetPhotosResponse) GetResults

func (x *BatchGetPhotosResponse) GetResults() []*PhotoResponse

func (*BatchGetPhotosResponse) ProtoMessage

func (*BatchGetPhotosResponse) ProtoMessage()

func (*BatchGetPhotosResponse) ProtoReflect

func (x *BatchGetPhotosResponse) ProtoReflect() protoreflect.Message

func (*BatchGetPhotosResponse) Reset

func (x *BatchGetPhotosResponse) Reset()

func (*BatchGetPhotosResponse) String

func (x *BatchGetPhotosResponse) String() string

type BatchUpdatePhotosRequest

type BatchUpdatePhotosRequest struct {

	// Required. List of
	// [UpdatePhotoRequests][google.streetview.publish.v1.UpdatePhotoRequest].
	UpdatePhotoRequests []*UpdatePhotoRequest `protobuf:"bytes,1,rep,name=update_photo_requests,json=updatePhotoRequests,proto3" json:"update_photo_requests,omitempty"`
	// contains filtered or unexported fields
}

Request to update the metadata of photos. Updating the pixels of photos is not supported.

func (*BatchUpdatePhotosRequest) Descriptor deprecated

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

Deprecated: Use BatchUpdatePhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdatePhotosRequest) GetUpdatePhotoRequests

func (x *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest

func (*BatchUpdatePhotosRequest) ProtoMessage

func (*BatchUpdatePhotosRequest) ProtoMessage()

func (*BatchUpdatePhotosRequest) ProtoReflect

func (x *BatchUpdatePhotosRequest) ProtoReflect() protoreflect.Message

func (*BatchUpdatePhotosRequest) Reset

func (x *BatchUpdatePhotosRequest) Reset()

func (*BatchUpdatePhotosRequest) String

func (x *BatchUpdatePhotosRequest) String() string

type BatchUpdatePhotosResponse

type BatchUpdatePhotosResponse struct {

	// List of results for each individual
	// [Photo][google.streetview.publish.v1.Photo] updated, in the same order as
	// the request.
	Results []*PhotoResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

Response to batch update of metadata of one or more [Photos][google.streetview.publish.v1.Photo].

func (*BatchUpdatePhotosResponse) Descriptor deprecated

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

Deprecated: Use BatchUpdatePhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdatePhotosResponse) GetResults

func (x *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse

func (*BatchUpdatePhotosResponse) ProtoMessage

func (*BatchUpdatePhotosResponse) ProtoMessage()

func (*BatchUpdatePhotosResponse) ProtoReflect

func (*BatchUpdatePhotosResponse) Reset

func (x *BatchUpdatePhotosResponse) Reset()

func (*BatchUpdatePhotosResponse) String

func (x *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,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

A connection is the link from a source photo to a destination photo.

func (*Connection) Descriptor deprecated

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

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetTarget

func (x *Connection) GetTarget() *PhotoId

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect

func (x *Connection) ProtoReflect() protoreflect.Message

func (*Connection) Reset

func (x *Connection) Reset()

func (*Connection) String

func (x *Connection) String() string

type CreatePhotoRequest

type CreatePhotoRequest struct {

	// Required. Photo to create.
	Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"`
	// contains filtered or unexported fields
}

Request to create a Photo[google.streetview.publish.v1.Photo].

func (*CreatePhotoRequest) Descriptor deprecated

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

Deprecated: Use CreatePhotoRequest.ProtoReflect.Descriptor instead.

func (*CreatePhotoRequest) GetPhoto

func (x *CreatePhotoRequest) GetPhoto() *Photo

func (*CreatePhotoRequest) ProtoMessage

func (*CreatePhotoRequest) ProtoMessage()

func (*CreatePhotoRequest) ProtoReflect

func (x *CreatePhotoRequest) ProtoReflect() protoreflect.Message

func (*CreatePhotoRequest) Reset

func (x *CreatePhotoRequest) Reset()

func (*CreatePhotoRequest) String

func (x *CreatePhotoRequest) String() string

type DeletePhotoRequest

type DeletePhotoRequest struct {

	// Required. ID of the [Photo][google.streetview.publish.v1.Photo].
	PhotoId string `protobuf:"bytes,1,opt,name=photo_id,json=photoId,proto3" json:"photo_id,omitempty"`
	// contains filtered or unexported fields
}

Request to delete a Photo[google.streetview.publish.v1.Photo].

func (*DeletePhotoRequest) Descriptor deprecated

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

Deprecated: Use DeletePhotoRequest.ProtoReflect.Descriptor instead.

func (*DeletePhotoRequest) GetPhotoId

func (x *DeletePhotoRequest) GetPhotoId() string

func (*DeletePhotoRequest) ProtoMessage

func (*DeletePhotoRequest) ProtoMessage()

func (*DeletePhotoRequest) ProtoReflect

func (x *DeletePhotoRequest) ProtoReflect() protoreflect.Message

func (*DeletePhotoRequest) Reset

func (x *DeletePhotoRequest) Reset()

func (*DeletePhotoRequest) String

func (x *DeletePhotoRequest) String() string

type GetPhotoRequest

type GetPhotoRequest struct {

	// Required. ID of the [Photo][google.streetview.publish.v1.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][google.streetview.publish.v1.Photo] response.
	View PhotoView `protobuf:"varint,2,opt,name=view,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

Request to get a Photo[google.streetview.publish.v1.Photo].

By default

* does not return the download URL for the photo bytes.

Parameters:

* `view` controls if the download URL for the photo bytes is returned.

func (*GetPhotoRequest) Descriptor deprecated

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

Deprecated: Use GetPhotoRequest.ProtoReflect.Descriptor instead.

func (*GetPhotoRequest) GetLanguageCode

func (x *GetPhotoRequest) GetLanguageCode() string

func (*GetPhotoRequest) GetPhotoId

func (x *GetPhotoRequest) GetPhotoId() string

func (*GetPhotoRequest) GetView

func (x *GetPhotoRequest) GetView() PhotoView

func (*GetPhotoRequest) ProtoMessage

func (*GetPhotoRequest) ProtoMessage()

func (*GetPhotoRequest) ProtoReflect

func (x *GetPhotoRequest) ProtoReflect() protoreflect.Message

func (*GetPhotoRequest) Reset

func (x *GetPhotoRequest) Reset()

func (*GetPhotoRequest) String

func (x *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,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"`
	// contains filtered or unexported fields
}

Level information containing level number and its corresponding name.

func (*Level) Descriptor deprecated

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

Deprecated: Use Level.ProtoReflect.Descriptor instead.

func (*Level) GetName

func (x *Level) GetName() string

func (*Level) GetNumber

func (x *Level) GetNumber() float64

func (*Level) ProtoMessage

func (*Level) ProtoMessage()

func (*Level) ProtoReflect

func (x *Level) ProtoReflect() protoreflect.Message

func (*Level) Reset

func (x *Level) Reset()

func (*Level) String

func (x *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,proto3,enum=google.streetview.publish.v1.PhotoView" json:"view,omitempty"`
	// The maximum number of photos to return.
	// `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
	// the default page size of 100 is used.
	// The number of photos returned in the response may be less than `pageSize`
	// if the number of photos that belong to the user is less than `pageSize`.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The
	// [nextPageToken][google.streetview.publish.v1.ListPhotosResponse.next_page_token]
	// value returned from a previous
	// [ListPhotos][google.streetview.publish.v1.StreetViewPublishService.ListPhotos]
	// request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
	//
	// The only filter supported at the moment is `placeId`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
	// information, see
	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
	// If language_code is unspecified, the user's language preference for Google
	// services is used.
	LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

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 is returned. * `pageSize` determines the maximum number of photos to return. * `pageToken` is the next page token value returned from a previous [ListPhotos][google.streetview.publish.v1.StreetViewPublishService.ListPhotos]

request, if any.

* `filter` allows filtering by a given parameter. 'placeId' is the only parameter supported at the moment.

func (*ListPhotosRequest) Descriptor deprecated

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

Deprecated: Use ListPhotosRequest.ProtoReflect.Descriptor instead.

func (*ListPhotosRequest) GetFilter

func (x *ListPhotosRequest) GetFilter() string

func (*ListPhotosRequest) GetLanguageCode

func (x *ListPhotosRequest) GetLanguageCode() string

func (*ListPhotosRequest) GetPageSize

func (x *ListPhotosRequest) GetPageSize() int32

func (*ListPhotosRequest) GetPageToken

func (x *ListPhotosRequest) GetPageToken() string

func (*ListPhotosRequest) GetView

func (x *ListPhotosRequest) GetView() PhotoView

func (*ListPhotosRequest) ProtoMessage

func (*ListPhotosRequest) ProtoMessage()

func (*ListPhotosRequest) ProtoReflect

func (x *ListPhotosRequest) ProtoReflect() protoreflect.Message

func (*ListPhotosRequest) Reset

func (x *ListPhotosRequest) Reset()

func (*ListPhotosRequest) String

func (x *ListPhotosRequest) String() string

type ListPhotosResponse

type ListPhotosResponse struct {

	// List of photos. The
	// [pageSize][google.streetview.publish.v1.ListPhotosRequest.page_size] field
	// in the request determines the number of items returned.
	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"`
	// contains filtered or unexported fields
}

Response to list all photos that belong to a user.

func (*ListPhotosResponse) Descriptor deprecated

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

Deprecated: Use ListPhotosResponse.ProtoReflect.Descriptor instead.

func (*ListPhotosResponse) GetNextPageToken

func (x *ListPhotosResponse) GetNextPageToken() string

func (*ListPhotosResponse) GetPhotos

func (x *ListPhotosResponse) GetPhotos() []*Photo

func (*ListPhotosResponse) ProtoMessage

func (*ListPhotosResponse) ProtoMessage()

func (*ListPhotosResponse) ProtoReflect

func (x *ListPhotosResponse) ProtoReflect() protoreflect.Message

func (*ListPhotosResponse) Reset

func (x *ListPhotosResponse) Reset()

func (*ListPhotosResponse) String

func (x *ListPhotosResponse) String() string

type Photo

type Photo struct {

	// Required when updating a photo. Output only when creating a photo.
	// 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 a 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
	// [GetPhotoRequest.view][google.streetview.publish.v1.GetPhotoRequest.view]
	// is set to
	// [PhotoView.INCLUDE_DOWNLOAD_URL][google.streetview.publish.v1.PhotoView.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"`
	// Output only. The share link for the photo.
	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 *timestamppb.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"`
	// Output only. Status of rights transfer on this photo.
	TransferStatus Photo_TransferStatus `` /* 160-byte string literal not displayed */
	// Output only. Status in Google Maps, whether this photo was published or
	// rejected.
	MapsPublishStatus Photo_MapsPublishStatus `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*Photo) Descriptor deprecated

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

Deprecated: Use Photo.ProtoReflect.Descriptor instead.

func (*Photo) GetCaptureTime

func (x *Photo) GetCaptureTime() *timestamppb.Timestamp

func (*Photo) GetConnections

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

func (*Photo) GetDownloadUrl

func (x *Photo) GetDownloadUrl() string

func (*Photo) GetMapsPublishStatus

func (x *Photo) GetMapsPublishStatus() Photo_MapsPublishStatus

func (*Photo) GetPhotoId

func (x *Photo) GetPhotoId() *PhotoId

func (*Photo) GetPlaces

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

func (*Photo) GetPose

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

func (*Photo) GetThumbnailUrl

func (x *Photo) GetThumbnailUrl() string

func (*Photo) GetTransferStatus

func (x *Photo) GetTransferStatus() Photo_TransferStatus

func (*Photo) GetUploadReference

func (x *Photo) GetUploadReference() *UploadRef

func (*Photo) GetViewCount

func (x *Photo) GetViewCount() int64

func (*Photo) ProtoMessage

func (*Photo) ProtoMessage()

func (*Photo) ProtoReflect

func (x *Photo) ProtoReflect() protoreflect.Message

func (*Photo) Reset

func (x *Photo) Reset()

func (*Photo) String

func (x *Photo) String() string

type PhotoId

type PhotoId struct {

	// Required. A unique identifier for a photo.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Identifier for a Photo[google.streetview.publish.v1.Photo].

func (*PhotoId) Descriptor deprecated

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

Deprecated: Use PhotoId.ProtoReflect.Descriptor instead.

func (*PhotoId) GetId

func (x *PhotoId) GetId() string

func (*PhotoId) ProtoMessage

func (*PhotoId) ProtoMessage()

func (*PhotoId) ProtoReflect

func (x *PhotoId) ProtoReflect() protoreflect.Message

func (*PhotoId) Reset

func (x *PhotoId) Reset()

func (*PhotoId) String

func (x *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 *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The [Photo][google.streetview.publish.v1.Photo] resource, if the request
	// was successful.
	Photo *Photo `protobuf:"bytes,2,opt,name=photo,proto3" json:"photo,omitempty"`
	// contains filtered or unexported fields
}

Response payload for a single Photo[google.streetview.publish.v1.Photo] in batch operations including [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos] and [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos].

func (*PhotoResponse) Descriptor deprecated

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

Deprecated: Use PhotoResponse.ProtoReflect.Descriptor instead.

func (*PhotoResponse) GetPhoto

func (x *PhotoResponse) GetPhoto() *Photo

func (*PhotoResponse) GetStatus

func (x *PhotoResponse) GetStatus() *status.Status

func (*PhotoResponse) ProtoMessage

func (*PhotoResponse) ProtoMessage()

func (*PhotoResponse) ProtoReflect

func (x *PhotoResponse) ProtoReflect() protoreflect.Message

func (*PhotoResponse) Reset

func (x *PhotoResponse) Reset()

func (*PhotoResponse) String

func (x *PhotoResponse) String() string

type PhotoView

type PhotoView int32

Specifies which view of the Photo[google.streetview.publish.v1.Photo] to include 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) Descriptor

func (PhotoView) Descriptor() protoreflect.EnumDescriptor

func (PhotoView) Enum

func (x PhotoView) Enum() *PhotoView

func (PhotoView) EnumDescriptor deprecated

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

Deprecated: Use PhotoView.Descriptor instead.

func (PhotoView) Number

func (x PhotoView) Number() protoreflect.EnumNumber

func (PhotoView) String

func (x PhotoView) String() string

func (PhotoView) Type

type Photo_MapsPublishStatus

type Photo_MapsPublishStatus int32

Publication status of the photo in Google Maps.

const (
	// The status of the photo is unknown.
	Photo_UNSPECIFIED_MAPS_PUBLISH_STATUS Photo_MapsPublishStatus = 0
	// The photo is published to the public through Google Maps.
	Photo_PUBLISHED Photo_MapsPublishStatus = 1
	// The photo has been rejected for an unknown reason.
	Photo_REJECTED_UNKNOWN Photo_MapsPublishStatus = 2
)

func (Photo_MapsPublishStatus) Descriptor

func (Photo_MapsPublishStatus) Enum

func (Photo_MapsPublishStatus) EnumDescriptor deprecated

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

Deprecated: Use Photo_MapsPublishStatus.Descriptor instead.

func (Photo_MapsPublishStatus) Number

func (Photo_MapsPublishStatus) String

func (x Photo_MapsPublishStatus) String() string

func (Photo_MapsPublishStatus) Type

type Photo_TransferStatus

type Photo_TransferStatus int32

Status of rights transfer.

const (
	// The status of this transfer is unspecified.
	Photo_TRANSFER_STATUS_UNKNOWN Photo_TransferStatus = 0
	// This photo has never been in a transfer.
	Photo_NEVER_TRANSFERRED Photo_TransferStatus = 1
	// This photo transfer has been initiated, but the receiver has not yet
	// responded.
	Photo_PENDING Photo_TransferStatus = 2
	// The photo transfer has been completed, and this photo has been
	// transferred to the recipient.
	Photo_COMPLETED Photo_TransferStatus = 3
	// The recipient rejected this photo transfer.
	Photo_REJECTED Photo_TransferStatus = 4
	// The photo transfer expired before the recipient took any action.
	Photo_EXPIRED Photo_TransferStatus = 5
	// The sender cancelled this photo transfer.
	Photo_CANCELLED Photo_TransferStatus = 6
	// The recipient owns this photo due to a rights transfer.
	Photo_RECEIVED_VIA_TRANSFER Photo_TransferStatus = 7
)

func (Photo_TransferStatus) Descriptor

func (Photo_TransferStatus) Enum

func (Photo_TransferStatus) EnumDescriptor deprecated

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

Deprecated: Use Photo_TransferStatus.Descriptor instead.

func (Photo_TransferStatus) Number

func (Photo_TransferStatus) String

func (x Photo_TransferStatus) String() string

func (Photo_TransferStatus) Type

type Place

type Place struct {

	// 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"`
	// Output-only. The name of the place, localized to the language_code.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Output-only. The language_code that the name is localized with. This should
	// be the language_code specified in the request, but may be a fallback.
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// contains filtered or unexported fields
}

Place metadata for an entity.

func (*Place) Descriptor deprecated

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

Deprecated: Use Place.ProtoReflect.Descriptor instead.

func (*Place) GetLanguageCode

func (x *Place) GetLanguageCode() string

func (*Place) GetName

func (x *Place) GetName() string

func (*Place) GetPlaceId

func (x *Place) GetPlaceId() string

func (*Place) ProtoMessage

func (*Place) ProtoMessage()

func (*Place) ProtoReflect

func (x *Place) ProtoReflect() protoreflect.Message

func (*Place) Reset

func (x *Place) Reset()

func (*Place) String

func (x *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][google.streetview.publish.v1.Photo], if the
	// latitude and longitude pair are not provided, the geolocation from the
	// exif header is used. A latitude and longitude pair not provided in the
	// photo or exif header causes the create photo process to 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 WGS84 ellipsoid.
	// 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"`
	// The estimated horizontal accuracy of this pose in meters with 68%
	// confidence (one standard deviation). For example, on Android, this value is
	// available from this method:
	// https://developer.android.com/reference/android/location/Location#getAccuracy().
	// Other platforms have different methods of obtaining similar accuracy
	// estimations.
	AccuracyMeters float32 `protobuf:"fixed32,9,opt,name=accuracy_meters,json=accuracyMeters,proto3" json:"accuracy_meters,omitempty"`
	// contains filtered or unexported fields
}

Raw pose measurement for an entity.

func (*Pose) Descriptor deprecated

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

Deprecated: Use Pose.ProtoReflect.Descriptor instead.

func (*Pose) GetAccuracyMeters

func (x *Pose) GetAccuracyMeters() float32

func (*Pose) GetAltitude

func (x *Pose) GetAltitude() float64

func (*Pose) GetHeading

func (x *Pose) GetHeading() float64

func (*Pose) GetLatLngPair

func (x *Pose) GetLatLngPair() *latlng.LatLng

func (*Pose) GetLevel

func (x *Pose) GetLevel() *Level

func (*Pose) GetPitch

func (x *Pose) GetPitch() float64

func (*Pose) GetRoll

func (x *Pose) GetRoll() float64

func (*Pose) ProtoMessage

func (*Pose) ProtoMessage()

func (*Pose) ProtoReflect

func (x *Pose) ProtoReflect() protoreflect.Message

func (*Pose) Reset

func (x *Pose) Reset()

func (*Pose) String

func (x *Pose) String() string

type StreetViewPublishServiceClient

type StreetViewPublishServiceClient interface {
	// Creates an upload session to start uploading photo bytes. The method uses
	// the upload URL of the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
	// the [Photo][google.streetview.publish.v1.Photo].
	//
	// In addition to the photo requirements shown in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
	// the photo must meet the following requirements:
	//
	// * Photo Sphere XMP metadata must be included in the photo medadata. See
	// https://developers.google.com/streetview/spherical-metadata for the
	// required fields.
	// * The pixel size of the photo must meet the size requirements listed in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
	// the photo must be a full 360 horizontally.
	//
	// After the upload completes, the method uses
	// [UploadRef][google.streetview.publish.v1.UploadRef] with
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// to create the [Photo][google.streetview.publish.v1.Photo] object entry.
	StartUpload(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UploadRef, error)
	// After the client finishes uploading the photo with the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef],
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
	// Street View on Google Maps.
	//
	// Currently, the only way to set heading, pitch, and roll in CreatePhoto is
	// through the [Photo Sphere XMP
	// metadata](https://developers.google.com/streetview/spherical-metadata) in
	// the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
	// `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed or if the uploaded photo is not a 360 photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
	// reference does not exist.
	// * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
	// if the account has reached the storage limit.
	CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo].
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested
	// [Photo][google.streetview.publish.v1.Photo].
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// [Photo][google.streetview.publish.v1.Photo] does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo] batch.
	//
	// Note that if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
	// See
	// [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
	// for specific failures that can occur per photo.
	BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error)
	// Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
	// the user.
	//
	// <aside class="note"><b>Note:</b> Recently created photos that are still
	// being indexed are not returned in the response.</aside>
	ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
	// Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of a
	// photo is not supported.
	//
	// Only the fields specified in the
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// photo does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
	// Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of photos
	// is not supported.
	//
	// Note that if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
	// See
	// [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
	// for specific failures that can occur per photo.
	//
	// Only the fields specified in
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// The number of
	// [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
	// messages in a
	// [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
	// must not exceed 20.
	//
	// <aside class="note"><b>Note:</b> To update
	// [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
	// [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
	// filled as well. Otherwise, the request will fail.</aside>
	BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error)
	// Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
	// does not exist.
	DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
	// metadata.
	//
	// Note that if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// fails, either critical fields are missing or there was an authentication
	// error. Even if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
	// See
	// [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
	// for specific failures that can 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.

type StreetViewPublishServiceServer

type StreetViewPublishServiceServer interface {
	// Creates an upload session to start uploading photo bytes. The method uses
	// the upload URL of the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
	// the [Photo][google.streetview.publish.v1.Photo].
	//
	// In addition to the photo requirements shown in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
	// the photo must meet the following requirements:
	//
	// * Photo Sphere XMP metadata must be included in the photo medadata. See
	// https://developers.google.com/streetview/spherical-metadata for the
	// required fields.
	// * The pixel size of the photo must meet the size requirements listed in
	// https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
	// the photo must be a full 360 horizontally.
	//
	// After the upload completes, the method uses
	// [UploadRef][google.streetview.publish.v1.UploadRef] with
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// to create the [Photo][google.streetview.publish.v1.Photo] object entry.
	StartUpload(context.Context, *emptypb.Empty) (*UploadRef, error)
	// After the client finishes uploading the photo with the returned
	// [UploadRef][google.streetview.publish.v1.UploadRef],
	// [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
	// publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
	// Street View on Google Maps.
	//
	// Currently, the only way to set heading, pitch, and roll in CreatePhoto is
	// through the [Photo Sphere XMP
	// metadata](https://developers.google.com/streetview/spherical-metadata) in
	// the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
	// `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed or if the uploaded photo is not a 360 photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
	// reference does not exist.
	// * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
	// if the account has reached the storage limit.
	CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo].
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested
	// [Photo][google.streetview.publish.v1.Photo].
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// [Photo][google.streetview.publish.v1.Photo] does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)
	// Gets the metadata of the specified
	// [Photo][google.streetview.publish.v1.Photo] batch.
	//
	// Note that if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
	// See
	// [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
	// for specific failures that can occur per photo.
	BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)
	// Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
	// the user.
	//
	// <aside class="note"><b>Note:</b> Recently created photos that are still
	// being indexed are not returned in the response.</aside>
	ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
	// Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of a
	// photo is not supported.
	//
	// Only the fields specified in the
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
	// the request is malformed.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
	// photo does not exist.
	// * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
	// requested [Photo][google.streetview.publish.v1.Photo] is still being
	// indexed.
	UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)
	// Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
	// as pose, place association, connections, etc. Changing the pixels of photos
	// is not supported.
	//
	// Note that if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// fails, either critical fields are missing or there is an authentication
	// error. Even if
	// [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
	// See
	// [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
	// for specific failures that can occur per photo.
	//
	// Only the fields specified in
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// field are used. If `updateMask` is not present, the update applies to all
	// fields.
	//
	// The number of
	// [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
	// messages in a
	// [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
	// must not exceed 20.
	//
	// <aside class="note"><b>Note:</b> To update
	// [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
	// [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
	// filled as well. Otherwise, the request will fail.</aside>
	BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)
	// Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
	//
	// This method returns the following error codes:
	//
	// * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
	// the requesting user did not create the requested photo.
	// * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
	// does not exist.
	DeletePhoto(context.Context, *DeletePhotoRequest) (*emptypb.Empty, error)
	// Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
	// metadata.
	//
	// Note that if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// fails, either critical fields are missing or there was an authentication
	// error. Even if
	// [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
	// succeeds, individual photos in the batch may have failures.
	// These failures are specified in each
	// [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
	// in
	// [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
	// See
	// [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
	// for specific failures that can occur per photo.
	BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)
}

StreetViewPublishServiceServer is the server API for StreetViewPublishService service.

type UnimplementedStreetViewPublishServiceServer

type UnimplementedStreetViewPublishServiceServer struct {
}

UnimplementedStreetViewPublishServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos

func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos

func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos

func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto

func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto

func (*UnimplementedStreetViewPublishServiceServer) GetPhoto

func (*UnimplementedStreetViewPublishServiceServer) ListPhotos

func (*UnimplementedStreetViewPublishServiceServer) StartUpload

func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto

type UpdatePhotoRequest

type UpdatePhotoRequest struct {

	// Required. [Photo][google.streetview.publish.v1.Photo] object containing the
	// new metadata.
	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][google.streetview.publish.v1.Photo]
	// metadata is entirely replaced with the
	// new [Photo][google.streetview.publish.v1.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`
	//
	//
	// <aside class="note"><b>Note:</b>  When
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// contains repeated fields, the entire set of repeated values get replaced
	// with the new contents. For example, if
	// [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
	// contains `connections` and `UpdatePhotoRequest.photo.connections` is empty,
	// all connections are removed.</aside>
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

Request to update the metadata of a Photo[google.streetview.publish.v1.Photo]. Updating the pixels of a photo is not supported.

func (*UpdatePhotoRequest) Descriptor deprecated

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

Deprecated: Use UpdatePhotoRequest.ProtoReflect.Descriptor instead.

func (*UpdatePhotoRequest) GetPhoto

func (x *UpdatePhotoRequest) GetPhoto() *Photo

func (*UpdatePhotoRequest) GetUpdateMask

func (x *UpdatePhotoRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdatePhotoRequest) ProtoMessage

func (*UpdatePhotoRequest) ProtoMessage()

func (*UpdatePhotoRequest) ProtoReflect

func (x *UpdatePhotoRequest) ProtoReflect() protoreflect.Message

func (*UpdatePhotoRequest) Reset

func (x *UpdatePhotoRequest) Reset()

func (*UpdatePhotoRequest) String

func (x *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,proto3" json:"upload_url,omitempty"`
	// contains filtered or unexported fields
}

Upload reference for media files.

func (*UploadRef) Descriptor deprecated

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

Deprecated: Use UploadRef.ProtoReflect.Descriptor instead.

func (*UploadRef) GetUploadUrl

func (x *UploadRef) GetUploadUrl() string

func (*UploadRef) ProtoMessage

func (*UploadRef) ProtoMessage()

func (*UploadRef) ProtoReflect

func (x *UploadRef) ProtoReflect() protoreflect.Message

func (*UploadRef) Reset

func (x *UploadRef) Reset()

func (*UploadRef) String

func (x *UploadRef) String() string

Jump to

Keyboard shortcuts

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