Documentation ¶
Index ¶
- Variables
- func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer)
- type BatchDeletePhotosRequest
- func (*BatchDeletePhotosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeletePhotosRequest) GetPhotoIds() []string
- func (*BatchDeletePhotosRequest) ProtoMessage()
- func (x *BatchDeletePhotosRequest) ProtoReflect() protoreflect.Message
- func (x *BatchDeletePhotosRequest) Reset()
- func (x *BatchDeletePhotosRequest) String() string
- type BatchDeletePhotosResponse
- func (*BatchDeletePhotosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeletePhotosResponse) GetStatus() []*status.Status
- func (*BatchDeletePhotosResponse) ProtoMessage()
- func (x *BatchDeletePhotosResponse) ProtoReflect() protoreflect.Message
- func (x *BatchDeletePhotosResponse) Reset()
- func (x *BatchDeletePhotosResponse) String() string
- type BatchGetPhotosRequest
- func (*BatchGetPhotosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetPhotosRequest) GetLanguageCode() string
- func (x *BatchGetPhotosRequest) GetPhotoIds() []string
- func (x *BatchGetPhotosRequest) GetView() PhotoView
- func (*BatchGetPhotosRequest) ProtoMessage()
- func (x *BatchGetPhotosRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetPhotosRequest) Reset()
- func (x *BatchGetPhotosRequest) String() string
- type BatchGetPhotosResponse
- func (*BatchGetPhotosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetPhotosResponse) GetResults() []*PhotoResponse
- func (*BatchGetPhotosResponse) ProtoMessage()
- func (x *BatchGetPhotosResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetPhotosResponse) Reset()
- func (x *BatchGetPhotosResponse) String() string
- type BatchUpdatePhotosRequest
- func (*BatchUpdatePhotosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdatePhotosRequest) GetUpdatePhotoRequests() []*UpdatePhotoRequest
- func (*BatchUpdatePhotosRequest) ProtoMessage()
- func (x *BatchUpdatePhotosRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdatePhotosRequest) Reset()
- func (x *BatchUpdatePhotosRequest) String() string
- type BatchUpdatePhotosResponse
- func (*BatchUpdatePhotosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdatePhotosResponse) GetResults() []*PhotoResponse
- func (*BatchUpdatePhotosResponse) ProtoMessage()
- func (x *BatchUpdatePhotosResponse) ProtoReflect() protoreflect.Message
- func (x *BatchUpdatePhotosResponse) Reset()
- func (x *BatchUpdatePhotosResponse) String() string
- type Connection
- type CreatePhotoRequest
- func (*CreatePhotoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePhotoRequest) GetPhoto() *Photo
- func (*CreatePhotoRequest) ProtoMessage()
- func (x *CreatePhotoRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePhotoRequest) Reset()
- func (x *CreatePhotoRequest) String() string
- type DeletePhotoRequest
- func (*DeletePhotoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePhotoRequest) GetPhotoId() string
- func (*DeletePhotoRequest) ProtoMessage()
- func (x *DeletePhotoRequest) ProtoReflect() protoreflect.Message
- func (x *DeletePhotoRequest) Reset()
- func (x *DeletePhotoRequest) String() string
- type GetPhotoRequest
- func (*GetPhotoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPhotoRequest) GetLanguageCode() string
- func (x *GetPhotoRequest) GetPhotoId() string
- func (x *GetPhotoRequest) GetView() PhotoView
- func (*GetPhotoRequest) ProtoMessage()
- func (x *GetPhotoRequest) ProtoReflect() protoreflect.Message
- func (x *GetPhotoRequest) Reset()
- func (x *GetPhotoRequest) String() string
- type Level
- type ListPhotosRequest
- func (*ListPhotosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPhotosRequest) GetFilter() string
- func (x *ListPhotosRequest) GetLanguageCode() string
- func (x *ListPhotosRequest) GetPageSize() int32
- func (x *ListPhotosRequest) GetPageToken() string
- func (x *ListPhotosRequest) GetView() PhotoView
- func (*ListPhotosRequest) ProtoMessage()
- func (x *ListPhotosRequest) ProtoReflect() protoreflect.Message
- func (x *ListPhotosRequest) Reset()
- func (x *ListPhotosRequest) String() string
- type ListPhotosResponse
- func (*ListPhotosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPhotosResponse) GetNextPageToken() string
- func (x *ListPhotosResponse) GetPhotos() []*Photo
- func (*ListPhotosResponse) ProtoMessage()
- func (x *ListPhotosResponse) ProtoReflect() protoreflect.Message
- func (x *ListPhotosResponse) Reset()
- func (x *ListPhotosResponse) String() string
- type Photo
- func (*Photo) Descriptor() ([]byte, []int)deprecated
- func (x *Photo) GetCaptureTime() *timestamppb.Timestamp
- func (x *Photo) GetConnections() []*Connection
- func (x *Photo) GetDownloadUrl() string
- func (x *Photo) GetMapsPublishStatus() Photo_MapsPublishStatus
- func (x *Photo) GetPhotoId() *PhotoId
- func (x *Photo) GetPlaces() []*Place
- func (x *Photo) GetPose() *Pose
- func (x *Photo) GetShareLink() string
- func (x *Photo) GetThumbnailUrl() string
- func (x *Photo) GetTransferStatus() Photo_TransferStatus
- func (x *Photo) GetUploadReference() *UploadRef
- func (x *Photo) GetViewCount() int64
- func (*Photo) ProtoMessage()
- func (x *Photo) ProtoReflect() protoreflect.Message
- func (x *Photo) Reset()
- func (x *Photo) String() string
- type PhotoId
- type PhotoResponse
- func (*PhotoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PhotoResponse) GetPhoto() *Photo
- func (x *PhotoResponse) GetStatus() *status.Status
- func (*PhotoResponse) ProtoMessage()
- func (x *PhotoResponse) ProtoReflect() protoreflect.Message
- func (x *PhotoResponse) Reset()
- func (x *PhotoResponse) String() string
- type PhotoView
- type Photo_MapsPublishStatus
- func (Photo_MapsPublishStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Photo_MapsPublishStatus) Enum() *Photo_MapsPublishStatus
- func (Photo_MapsPublishStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Photo_MapsPublishStatus) Number() protoreflect.EnumNumber
- func (x Photo_MapsPublishStatus) String() string
- func (Photo_MapsPublishStatus) Type() protoreflect.EnumType
- type Photo_TransferStatus
- func (Photo_TransferStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Photo_TransferStatus) Enum() *Photo_TransferStatus
- func (Photo_TransferStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Photo_TransferStatus) Number() protoreflect.EnumNumber
- func (x Photo_TransferStatus) String() string
- func (Photo_TransferStatus) Type() protoreflect.EnumType
- type Place
- type Pose
- func (*Pose) Descriptor() ([]byte, []int)deprecated
- func (x *Pose) GetAccuracyMeters() float32
- func (x *Pose) GetAltitude() float64
- func (x *Pose) GetHeading() float64
- func (x *Pose) GetLatLngPair() *latlng.LatLng
- func (x *Pose) GetLevel() *Level
- func (x *Pose) GetPitch() float64
- func (x *Pose) GetRoll() float64
- func (*Pose) ProtoMessage()
- func (x *Pose) ProtoReflect() protoreflect.Message
- func (x *Pose) Reset()
- func (x *Pose) String() string
- type StreetViewPublishServiceClient
- type StreetViewPublishServiceServer
- type UnimplementedStreetViewPublishServiceServer
- func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)
- func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)
- func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)
- func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)
- func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto(context.Context, *DeletePhotoRequest) (*emptypb.Empty, error)
- func (*UnimplementedStreetViewPublishServiceServer) GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)
- func (*UnimplementedStreetViewPublishServiceServer) ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
- func (*UnimplementedStreetViewPublishServiceServer) StartUpload(context.Context, *emptypb.Empty) (*UploadRef, error)
- func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)
- type UpdatePhotoRequest
- func (*UpdatePhotoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePhotoRequest) GetPhoto() *Photo
- func (x *UpdatePhotoRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdatePhotoRequest) ProtoMessage()
- func (x *UpdatePhotoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePhotoRequest) Reset()
- func (x *UpdatePhotoRequest) String() string
- type UploadRef
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
var File_google_streetview_publish_v1_resources_proto protoreflect.FileDescriptor
var File_google_streetview_publish_v1_rpcmessages_proto protoreflect.FileDescriptor
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 (x *BatchDeletePhotosResponse) ProtoReflect() protoreflect.Message
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 (x *BatchUpdatePhotosResponse) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Level) ProtoMessage()
func (*Level) ProtoReflect ¶
func (x *Level) ProtoReflect() protoreflect.Message
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"` 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) GetCaptureTime ¶
func (x *Photo) GetCaptureTime() *timestamppb.Timestamp
func (*Photo) GetConnections ¶
func (x *Photo) GetConnections() []*Connection
func (*Photo) GetDownloadUrl ¶
func (*Photo) GetMapsPublishStatus ¶
func (x *Photo) GetMapsPublishStatus() Photo_MapsPublishStatus
func (*Photo) GetPhotoId ¶
func (*Photo) GetShareLink ¶
func (*Photo) GetThumbnailUrl ¶
func (*Photo) GetTransferStatus ¶
func (x *Photo) GetTransferStatus() Photo_TransferStatus
func (*Photo) GetUploadReference ¶
func (*Photo) GetViewCount ¶
func (*Photo) ProtoMessage ¶
func (*Photo) ProtoMessage()
func (*Photo) ProtoReflect ¶
func (x *Photo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*PhotoId) ProtoMessage()
func (*PhotoId) ProtoReflect ¶
func (x *PhotoId) ProtoReflect() protoreflect.Message
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.
func (PhotoView) Descriptor ¶
func (PhotoView) Descriptor() protoreflect.EnumDescriptor
func (PhotoView) EnumDescriptor
deprecated
func (PhotoView) Number ¶
func (x PhotoView) Number() protoreflect.EnumNumber
func (PhotoView) Type ¶
func (PhotoView) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (Photo_MapsPublishStatus) Enum ¶
func (x Photo_MapsPublishStatus) Enum() *Photo_MapsPublishStatus
func (Photo_MapsPublishStatus) EnumDescriptor
deprecated
func (Photo_MapsPublishStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Photo_MapsPublishStatus.Descriptor instead.
func (Photo_MapsPublishStatus) Number ¶
func (x Photo_MapsPublishStatus) Number() protoreflect.EnumNumber
func (Photo_MapsPublishStatus) String ¶
func (x Photo_MapsPublishStatus) String() string
func (Photo_MapsPublishStatus) Type ¶
func (Photo_MapsPublishStatus) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (Photo_TransferStatus) Enum ¶
func (x Photo_TransferStatus) Enum() *Photo_TransferStatus
func (Photo_TransferStatus) EnumDescriptor
deprecated
func (Photo_TransferStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Photo_TransferStatus.Descriptor instead.
func (Photo_TransferStatus) Number ¶
func (x Photo_TransferStatus) Number() protoreflect.EnumNumber
func (Photo_TransferStatus) String ¶
func (x Photo_TransferStatus) String() string
func (Photo_TransferStatus) Type ¶
func (Photo_TransferStatus) Type() protoreflect.EnumType
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) GetLanguageCode ¶
func (*Place) GetPlaceId ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
func (*Place) ProtoReflect ¶
func (x *Place) ProtoReflect() protoreflect.Message
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) GetAccuracyMeters ¶
func (*Pose) GetAltitude ¶
func (*Pose) GetHeading ¶
func (*Pose) GetLatLngPair ¶
func (*Pose) ProtoMessage ¶
func (*Pose) ProtoMessage()
func (*Pose) ProtoReflect ¶
func (x *Pose) ProtoReflect() protoreflect.Message
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.
func NewStreetViewPublishServiceClient ¶
func NewStreetViewPublishServiceClient(cc grpc.ClientConnInterface) StreetViewPublishServiceClient
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) BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)
func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos ¶
func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)
func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos ¶
func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)
func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto ¶
func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)
func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto ¶
func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto(context.Context, *DeletePhotoRequest) (*emptypb.Empty, error)
func (*UnimplementedStreetViewPublishServiceServer) GetPhoto ¶
func (*UnimplementedStreetViewPublishServiceServer) GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)
func (*UnimplementedStreetViewPublishServiceServer) ListPhotos ¶
func (*UnimplementedStreetViewPublishServiceServer) ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
func (*UnimplementedStreetViewPublishServiceServer) StartUpload ¶
func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto ¶
func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)
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) GetUploadUrl ¶
func (*UploadRef) ProtoMessage ¶
func (*UploadRef) ProtoMessage()
func (*UploadRef) ProtoReflect ¶
func (x *UploadRef) ProtoReflect() protoreflect.Message