Struct gapi_grpc::google::streetview::publish::v1::street_view_publish_service_client::StreetViewPublishServiceClient [−][src]
Publishes and connects user-contributed photos on Street View.
Implementations
impl StreetViewPublishServiceClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> StreetViewPublishServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn start_upload(
&mut self,
request: impl IntoRequest<()>
) -> Result<Response<UploadRef>, Status>
[src]
&mut self,
request: impl IntoRequest<()>
) -> Result<Response<UploadRef>, Status>
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.
pub async fn create_photo(
&mut self,
request: impl IntoRequest<CreatePhotoRequest>
) -> Result<Response<Photo>, Status>
[src]
&mut self,
request: impl IntoRequest<CreatePhotoRequest>
) -> Result<Response<Photo>, Status>
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 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.
pub async fn get_photo(
&mut self,
request: impl IntoRequest<GetPhotoRequest>
) -> Result<Response<Photo>, Status>
[src]
&mut self,
request: impl IntoRequest<GetPhotoRequest>
) -> Result<Response<Photo>, Status>
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.
pub async fn batch_get_photos(
&mut self,
request: impl IntoRequest<BatchGetPhotosRequest>
) -> Result<Response<BatchGetPhotosResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<BatchGetPhotosRequest>
) -> Result<Response<BatchGetPhotosResponse>, Status>
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.
pub async fn list_photos(
&mut self,
request: impl IntoRequest<ListPhotosRequest>
) -> Result<Response<ListPhotosResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListPhotosRequest>
) -> Result<Response<ListPhotosResponse>, Status>
Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to the user.
pub async fn update_photo(
&mut self,
request: impl IntoRequest<UpdatePhotoRequest>
) -> Result<Response<Photo>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdatePhotoRequest>
) -> Result<Response<Photo>, Status>
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.
pub async fn batch_update_photos(
&mut self,
request: impl IntoRequest<BatchUpdatePhotosRequest>
) -> Result<Response<BatchUpdatePhotosResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<BatchUpdatePhotosRequest>
) -> Result<Response<BatchUpdatePhotosResponse>, Status>
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.
pub async fn delete_photo(
&mut self,
request: impl IntoRequest<DeletePhotoRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeletePhotoRequest>
) -> Result<Response<()>, Status>
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.
pub async fn batch_delete_photos(
&mut self,
request: impl IntoRequest<BatchDeletePhotosRequest>
) -> Result<Response<BatchDeletePhotosResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<BatchDeletePhotosRequest>
) -> Result<Response<BatchDeletePhotosResponse>, Status>
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.
Trait Implementations
impl<T: Clone> Clone for StreetViewPublishServiceClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for StreetViewPublishServiceClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for StreetViewPublishServiceClient<T>
impl<T> Send for StreetViewPublishServiceClient<T> where
T: Send,
T: Send,
impl<T> Sync for StreetViewPublishServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for StreetViewPublishServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for StreetViewPublishServiceClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,