genproto: google.golang.org/genproto/googleapis/streetview/publish/v1 Index | Files

package publish

import "google.golang.org/genproto/googleapis/streetview/publish/v1"

Index

Package Files

resources.pb.go rpcmessages.pb.go streetview_publish.pb.go

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

func RegisterStreetViewPublishServiceServer Uses

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

type BatchDeletePhotosRequest Uses

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 Uses

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

Deprecated: Use BatchDeletePhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchDeletePhotosRequest) GetPhotoIds Uses

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

func (*BatchDeletePhotosRequest) ProtoMessage Uses

func (*BatchDeletePhotosRequest) ProtoMessage()

func (*BatchDeletePhotosRequest) ProtoReflect Uses

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

func (*BatchDeletePhotosRequest) Reset Uses

func (x *BatchDeletePhotosRequest) Reset()

func (*BatchDeletePhotosRequest) String Uses

func (x *BatchDeletePhotosRequest) String() string

type BatchDeletePhotosResponse Uses

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 Uses

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

Deprecated: Use BatchDeletePhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchDeletePhotosResponse) GetStatus Uses

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

func (*BatchDeletePhotosResponse) ProtoMessage Uses

func (*BatchDeletePhotosResponse) ProtoMessage()

func (*BatchDeletePhotosResponse) ProtoReflect Uses

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

func (*BatchDeletePhotosResponse) Reset Uses

func (x *BatchDeletePhotosResponse) Reset()

func (*BatchDeletePhotosResponse) String Uses

func (x *BatchDeletePhotosResponse) String() string

type BatchGetPhotosRequest Uses

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 Uses

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

Deprecated: Use BatchGetPhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchGetPhotosRequest) GetLanguageCode Uses

func (x *BatchGetPhotosRequest) GetLanguageCode() string

func (*BatchGetPhotosRequest) GetPhotoIds Uses

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

func (*BatchGetPhotosRequest) GetView Uses

func (x *BatchGetPhotosRequest) GetView() PhotoView

func (*BatchGetPhotosRequest) ProtoMessage Uses

func (*BatchGetPhotosRequest) ProtoMessage()

func (*BatchGetPhotosRequest) ProtoReflect Uses

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

func (*BatchGetPhotosRequest) Reset Uses

func (x *BatchGetPhotosRequest) Reset()

func (*BatchGetPhotosRequest) String Uses

func (x *BatchGetPhotosRequest) String() string

type BatchGetPhotosResponse Uses

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 Uses

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

Deprecated: Use BatchGetPhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchGetPhotosResponse) GetResults Uses

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

func (*BatchGetPhotosResponse) ProtoMessage Uses

func (*BatchGetPhotosResponse) ProtoMessage()

func (*BatchGetPhotosResponse) ProtoReflect Uses

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

func (*BatchGetPhotosResponse) Reset Uses

func (x *BatchGetPhotosResponse) Reset()

func (*BatchGetPhotosResponse) String Uses

func (x *BatchGetPhotosResponse) String() string

type BatchUpdatePhotosRequest Uses

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 Uses

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

Deprecated: Use BatchUpdatePhotosRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdatePhotosRequest) GetUpdatePhotoRequests Uses

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

func (*BatchUpdatePhotosRequest) ProtoMessage Uses

func (*BatchUpdatePhotosRequest) ProtoMessage()

func (*BatchUpdatePhotosRequest) ProtoReflect Uses

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

func (*BatchUpdatePhotosRequest) Reset Uses

func (x *BatchUpdatePhotosRequest) Reset()

func (*BatchUpdatePhotosRequest) String Uses

func (x *BatchUpdatePhotosRequest) String() string

type BatchUpdatePhotosResponse Uses

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 Uses

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

Deprecated: Use BatchUpdatePhotosResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdatePhotosResponse) GetResults Uses

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

func (*BatchUpdatePhotosResponse) ProtoMessage Uses

func (*BatchUpdatePhotosResponse) ProtoMessage()

func (*BatchUpdatePhotosResponse) ProtoReflect Uses

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

func (*BatchUpdatePhotosResponse) Reset Uses

func (x *BatchUpdatePhotosResponse) Reset()

func (*BatchUpdatePhotosResponse) String Uses

func (x *BatchUpdatePhotosResponse) String() string

type Connection Uses

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 Uses

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

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetTarget Uses

func (x *Connection) GetTarget() *PhotoId

func (*Connection) ProtoMessage Uses

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect Uses

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

func (*Connection) Reset Uses

func (x *Connection) Reset()

func (*Connection) String Uses

func (x *Connection) String() string

type CreatePhotoRequest Uses

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 Uses

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

Deprecated: Use CreatePhotoRequest.ProtoReflect.Descriptor instead.

func (*CreatePhotoRequest) GetPhoto Uses

func (x *CreatePhotoRequest) GetPhoto() *Photo

func (*CreatePhotoRequest) ProtoMessage Uses

func (*CreatePhotoRequest) ProtoMessage()

func (*CreatePhotoRequest) ProtoReflect Uses

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

func (*CreatePhotoRequest) Reset Uses

func (x *CreatePhotoRequest) Reset()

func (*CreatePhotoRequest) String Uses

func (x *CreatePhotoRequest) String() string

type DeletePhotoRequest Uses

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 Uses

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

Deprecated: Use DeletePhotoRequest.ProtoReflect.Descriptor instead.

func (*DeletePhotoRequest) GetPhotoId Uses

func (x *DeletePhotoRequest) GetPhotoId() string

func (*DeletePhotoRequest) ProtoMessage Uses

func (*DeletePhotoRequest) ProtoMessage()

func (*DeletePhotoRequest) ProtoReflect Uses

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

func (*DeletePhotoRequest) Reset Uses

func (x *DeletePhotoRequest) Reset()

func (*DeletePhotoRequest) String Uses

func (x *DeletePhotoRequest) String() string

type GetPhotoRequest Uses

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 Uses

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

Deprecated: Use GetPhotoRequest.ProtoReflect.Descriptor instead.

func (*GetPhotoRequest) GetLanguageCode Uses

func (x *GetPhotoRequest) GetLanguageCode() string

func (*GetPhotoRequest) GetPhotoId Uses

func (x *GetPhotoRequest) GetPhotoId() string

func (*GetPhotoRequest) GetView Uses

func (x *GetPhotoRequest) GetView() PhotoView

func (*GetPhotoRequest) ProtoMessage Uses

func (*GetPhotoRequest) ProtoMessage()

func (*GetPhotoRequest) ProtoReflect Uses

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

func (*GetPhotoRequest) Reset Uses

func (x *GetPhotoRequest) Reset()

func (*GetPhotoRequest) String Uses

func (x *GetPhotoRequest) String() string

type Level Uses

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 Uses

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

Deprecated: Use Level.ProtoReflect.Descriptor instead.

func (*Level) GetName Uses

func (x *Level) GetName() string

func (*Level) GetNumber Uses

func (x *Level) GetNumber() float64

func (*Level) ProtoMessage Uses

func (*Level) ProtoMessage()

func (*Level) ProtoReflect Uses

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

func (*Level) Reset Uses

func (x *Level) Reset()

func (*Level) String Uses

func (x *Level) String() string

type ListPhotosRequest Uses

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 Uses

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

Deprecated: Use ListPhotosRequest.ProtoReflect.Descriptor instead.

func (*ListPhotosRequest) GetFilter Uses

func (x *ListPhotosRequest) GetFilter() string

func (*ListPhotosRequest) GetLanguageCode Uses

func (x *ListPhotosRequest) GetLanguageCode() string

func (*ListPhotosRequest) GetPageSize Uses

func (x *ListPhotosRequest) GetPageSize() int32

func (*ListPhotosRequest) GetPageToken Uses

func (x *ListPhotosRequest) GetPageToken() string

func (*ListPhotosRequest) GetView Uses

func (x *ListPhotosRequest) GetView() PhotoView

func (*ListPhotosRequest) ProtoMessage Uses

func (*ListPhotosRequest) ProtoMessage()

func (*ListPhotosRequest) ProtoReflect Uses

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

func (*ListPhotosRequest) Reset Uses

func (x *ListPhotosRequest) Reset()

func (*ListPhotosRequest) String Uses

func (x *ListPhotosRequest) String() string

type ListPhotosResponse Uses

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 Uses

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

Deprecated: Use ListPhotosResponse.ProtoReflect.Descriptor instead.

func (*ListPhotosResponse) GetNextPageToken Uses

func (x *ListPhotosResponse) GetNextPageToken() string

func (*ListPhotosResponse) GetPhotos Uses

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

func (*ListPhotosResponse) ProtoMessage Uses

func (*ListPhotosResponse) ProtoMessage()

func (*ListPhotosResponse) ProtoReflect Uses

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

func (*ListPhotosResponse) Reset Uses

func (x *ListPhotosResponse) Reset()

func (*ListPhotosResponse) String Uses

func (x *ListPhotosResponse) String() string

type Photo Uses

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 *timestamp.Timestamp `protobuf:"bytes,6,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"`
    // Places where this photo belongs.
    Places []*Place `protobuf:"bytes,7,rep,name=places,proto3" json:"places,omitempty"`
    // Output only. View count of the photo.
    ViewCount int64 `protobuf:"varint,10,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"`
    // Output only. Status of rights transfer on this photo.
    TransferStatus Photo_TransferStatus `protobuf:"varint,12,opt,name=transfer_status,json=transferStatus,proto3,enum=google.streetview.publish.v1.Photo_TransferStatus" json:"transfer_status,omitempty"`
    // Output only. Status in Google Maps, whether this photo was published or
    // rejected.
    MapsPublishStatus Photo_MapsPublishStatus `protobuf:"varint,13,opt,name=maps_publish_status,json=mapsPublishStatus,proto3,enum=google.streetview.publish.v1.Photo_MapsPublishStatus" json:"maps_publish_status,omitempty"`
    // contains filtered or unexported fields
}

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

func (*Photo) Descriptor Uses

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

Deprecated: Use Photo.ProtoReflect.Descriptor instead.

func (*Photo) GetCaptureTime Uses

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

func (*Photo) GetConnections Uses

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

func (*Photo) GetDownloadUrl Uses

func (x *Photo) GetDownloadUrl() string

func (*Photo) GetMapsPublishStatus Uses

func (x *Photo) GetMapsPublishStatus() Photo_MapsPublishStatus

func (*Photo) GetPhotoId Uses

func (x *Photo) GetPhotoId() *PhotoId

func (*Photo) GetPlaces Uses

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

func (*Photo) GetPose Uses

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

func (*Photo) GetThumbnailUrl Uses

func (x *Photo) GetThumbnailUrl() string

func (*Photo) GetTransferStatus Uses

func (x *Photo) GetTransferStatus() Photo_TransferStatus

func (*Photo) GetUploadReference Uses

func (x *Photo) GetUploadReference() *UploadRef

func (*Photo) GetViewCount Uses

func (x *Photo) GetViewCount() int64

func (*Photo) ProtoMessage Uses

func (*Photo) ProtoMessage()

func (*Photo) ProtoReflect Uses

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

func (*Photo) Reset Uses

func (x *Photo) Reset()

func (*Photo) String Uses

func (x *Photo) String() string

type PhotoId Uses

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 Uses

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

Deprecated: Use PhotoId.ProtoReflect.Descriptor instead.

func (*PhotoId) GetId Uses

func (x *PhotoId) GetId() string

func (*PhotoId) ProtoMessage Uses

func (*PhotoId) ProtoMessage()

func (*PhotoId) ProtoReflect Uses

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

func (*PhotoId) Reset Uses

func (x *PhotoId) Reset()

func (*PhotoId) String Uses

func (x *PhotoId) String() string

type PhotoResponse Uses

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 Uses

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

Deprecated: Use PhotoResponse.ProtoReflect.Descriptor instead.

func (*PhotoResponse) GetPhoto Uses

func (x *PhotoResponse) GetPhoto() *Photo

func (*PhotoResponse) GetStatus Uses

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

func (*PhotoResponse) ProtoMessage Uses

func (*PhotoResponse) ProtoMessage()

func (*PhotoResponse) ProtoReflect Uses

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

func (*PhotoResponse) Reset Uses

func (x *PhotoResponse) Reset()

func (*PhotoResponse) String Uses

func (x *PhotoResponse) String() string

type PhotoView Uses

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 Uses

func (PhotoView) Descriptor() protoreflect.EnumDescriptor

func (PhotoView) Enum Uses

func (x PhotoView) Enum() *PhotoView

func (PhotoView) EnumDescriptor Uses

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

Deprecated: Use PhotoView.Descriptor instead.

func (PhotoView) Number Uses

func (x PhotoView) Number() protoreflect.EnumNumber

func (PhotoView) String Uses

func (x PhotoView) String() string

func (PhotoView) Type Uses

func (PhotoView) Type() protoreflect.EnumType

type Photo_MapsPublishStatus Uses

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 Uses

func (Photo_MapsPublishStatus) Descriptor() protoreflect.EnumDescriptor

func (Photo_MapsPublishStatus) Enum Uses

func (x Photo_MapsPublishStatus) Enum() *Photo_MapsPublishStatus

func (Photo_MapsPublishStatus) EnumDescriptor Uses

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

Deprecated: Use Photo_MapsPublishStatus.Descriptor instead.

func (Photo_MapsPublishStatus) Number Uses

func (x Photo_MapsPublishStatus) Number() protoreflect.EnumNumber

func (Photo_MapsPublishStatus) String Uses

func (x Photo_MapsPublishStatus) String() string

func (Photo_MapsPublishStatus) Type Uses

func (Photo_MapsPublishStatus) Type() protoreflect.EnumType

type Photo_TransferStatus Uses

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 Uses

func (Photo_TransferStatus) Descriptor() protoreflect.EnumDescriptor

func (Photo_TransferStatus) Enum Uses

func (x Photo_TransferStatus) Enum() *Photo_TransferStatus

func (Photo_TransferStatus) EnumDescriptor Uses

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

Deprecated: Use Photo_TransferStatus.Descriptor instead.

func (Photo_TransferStatus) Number Uses

func (x Photo_TransferStatus) Number() protoreflect.EnumNumber

func (Photo_TransferStatus) String Uses

func (x Photo_TransferStatus) String() string

func (Photo_TransferStatus) Type Uses

func (Photo_TransferStatus) Type() protoreflect.EnumType

type Place Uses

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 Uses

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

Deprecated: Use Place.ProtoReflect.Descriptor instead.

func (*Place) GetLanguageCode Uses

func (x *Place) GetLanguageCode() string

func (*Place) GetName Uses

func (x *Place) GetName() string

func (*Place) GetPlaceId Uses

func (x *Place) GetPlaceId() string

func (*Place) ProtoMessage Uses

func (*Place) ProtoMessage()

func (*Place) ProtoReflect Uses

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

func (*Place) Reset Uses

func (x *Place) Reset()

func (*Place) String Uses

func (x *Place) String() string

type Pose Uses

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 Uses

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

Deprecated: Use Pose.ProtoReflect.Descriptor instead.

func (*Pose) GetAccuracyMeters Uses

func (x *Pose) GetAccuracyMeters() float32

func (*Pose) GetAltitude Uses

func (x *Pose) GetAltitude() float64

func (*Pose) GetHeading Uses

func (x *Pose) GetHeading() float64

func (*Pose) GetLatLngPair Uses

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

func (*Pose) GetLevel Uses

func (x *Pose) GetLevel() *Level

func (*Pose) GetPitch Uses

func (x *Pose) GetPitch() float64

func (*Pose) GetRoll Uses

func (x *Pose) GetRoll() float64

func (*Pose) ProtoMessage Uses

func (*Pose) ProtoMessage()

func (*Pose) ProtoReflect Uses

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

func (*Pose) Reset Uses

func (x *Pose) Reset()

func (*Pose) String Uses

func (x *Pose) String() string

type StreetViewPublishServiceClient Uses

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 *empty.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) (*empty.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 Uses

func NewStreetViewPublishServiceClient(cc grpc.ClientConnInterface) StreetViewPublishServiceClient

type StreetViewPublishServiceServer Uses

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, *empty.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) (*empty.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 Uses

type UnimplementedStreetViewPublishServiceServer struct {
}

UnimplementedStreetViewPublishServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos Uses

func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)

func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos Uses

func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)

func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos Uses

func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)

func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto Uses

func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)

func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto Uses

func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto(context.Context, *DeletePhotoRequest) (*empty.Empty, error)

func (*UnimplementedStreetViewPublishServiceServer) GetPhoto Uses

func (*UnimplementedStreetViewPublishServiceServer) GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)

func (*UnimplementedStreetViewPublishServiceServer) ListPhotos Uses

func (*UnimplementedStreetViewPublishServiceServer) ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)

func (*UnimplementedStreetViewPublishServiceServer) StartUpload Uses

func (*UnimplementedStreetViewPublishServiceServer) StartUpload(context.Context, *empty.Empty) (*UploadRef, error)

func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto Uses

func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)

type UpdatePhotoRequest Uses

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 *field_mask.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 Uses

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

Deprecated: Use UpdatePhotoRequest.ProtoReflect.Descriptor instead.

func (*UpdatePhotoRequest) GetPhoto Uses

func (x *UpdatePhotoRequest) GetPhoto() *Photo

func (*UpdatePhotoRequest) GetUpdateMask Uses

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

func (*UpdatePhotoRequest) ProtoMessage Uses

func (*UpdatePhotoRequest) ProtoMessage()

func (*UpdatePhotoRequest) ProtoReflect Uses

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

func (*UpdatePhotoRequest) Reset Uses

func (x *UpdatePhotoRequest) Reset()

func (*UpdatePhotoRequest) String Uses

func (x *UpdatePhotoRequest) String() string

type UploadRef Uses

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 Uses

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

Deprecated: Use UploadRef.ProtoReflect.Descriptor instead.

func (*UploadRef) GetUploadUrl Uses

func (x *UploadRef) GetUploadUrl() string

func (*UploadRef) ProtoMessage Uses

func (*UploadRef) ProtoMessage()

func (*UploadRef) ProtoReflect Uses

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

func (*UploadRef) Reset Uses

func (x *UploadRef) Reset()

func (*UploadRef) String Uses

func (x *UploadRef) String() string

Package publish imports 15 packages (graph). Updated 2020-08-13. Refresh now. Tools for package owners.