blob: ca8b91901f5fe530e7e4d72524a8ee84b3ee29e0 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/streetview/publish/v1/streetview_publish.proto
package publish
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("google/streetview/publish/v1/streetview_publish.proto", fileDescriptor_39e5f334059d9d6e)
}
var fileDescriptor_39e5f334059d9d6e = []byte{
// 533 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x15, 0x24, 0x10, 0xb8, 0x08, 0x69, 0x86, 0x55, 0x53, 0x3a, 0x24, 0x08, 0x12, 0xa0,
0x6a, 0xd8, 0x1b, 0xe3, 0x8f, 0x54, 0x6e, 0x1d, 0x88, 0x0b, 0x87, 0x69, 0xd5, 0x38, 0x70, 0x99,
0xdc, 0xf4, 0x5d, 0x6a, 0x29, 0x8d, 0x4d, 0xec, 0x74, 0x42, 0x30, 0x0e, 0xe3, 0xc8, 0x0d, 0x2e,
0x7c, 0x03, 0x3e, 0x10, 0x5f, 0x81, 0x0f, 0x82, 0xea, 0xd8, 0x4d, 0x36, 0x8a, 0x49, 0x4e, 0x69,
0xf3, 0x3e, 0xcf, 0xfb, 0xfc, 0xfa, 0xbe, 0xae, 0xd1, 0xd3, 0x44, 0x88, 0x24, 0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 0x79, 0xdf, 0xff,
0x06, 0x54, 0xaa, 0x07, 0x41, 0x7f, 0x78, 0x16, 0xa0, 0x87, 0xb1, 0x98, 0xb9, 0x84, 0x04, 0x04,
0x29, 0x92, 0x78, 0x75, 0xd2, 0x70, 0xed, 0xaf, 0x7b, 0xf3, 0xdd, 0x9e, 0x33, 0x8a, 0x94, 0x65,
0x09, 0x11, 0x79, 0x42, 0x13, 0xc8, 0xcc, 0xb0, 0x68, 0x59, 0x62, 0x92, 0xab, 0xd5, 0x97, 0xf3,
0x0b, 0xfb, 0x71, 0x7c, 0xc5, 0xe8, 0x77, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x9d, 0xfe,
0x1c, 0x89, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// StreetViewPublishServiceClient is the client API for StreetViewPublishService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type 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)
}
type streetViewPublishServiceClient struct {
cc grpc.ClientConnInterface
}
func NewStreetViewPublishServiceClient(cc grpc.ClientConnInterface) StreetViewPublishServiceClient {
return &streetViewPublishServiceClient{cc}
}
func (c *streetViewPublishServiceClient) StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error) {
out := new(UploadRef)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/StartUpload", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error) {
out := new(BatchGetPhotosResponse)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) {
out := new(ListPhotosResponse)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
out := new(Photo)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error) {
out := new(BatchUpdatePhotosResponse)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *streetViewPublishServiceClient) BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error) {
out := new(BatchDeletePhotosResponse)
err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// StreetViewPublishServiceServer is the server API for StreetViewPublishService service.
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)
}
// UnimplementedStreetViewPublishServiceServer can be embedded to have forward compatible implementations.
type UnimplementedStreetViewPublishServiceServer struct {
}
func (*UnimplementedStreetViewPublishServiceServer) StartUpload(ctx context.Context, req *empty.Empty) (*UploadRef, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartUpload not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) CreatePhoto(ctx context.Context, req *CreatePhotoRequest) (*Photo, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreatePhoto not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) GetPhoto(ctx context.Context, req *GetPhotoRequest) (*Photo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPhoto not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) BatchGetPhotos(ctx context.Context, req *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchGetPhotos not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) ListPhotos(ctx context.Context, req *ListPhotosRequest) (*ListPhotosResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPhotos not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) UpdatePhoto(ctx context.Context, req *UpdatePhotoRequest) (*Photo, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdatePhoto not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) BatchUpdatePhotos(ctx context.Context, req *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchUpdatePhotos not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) DeletePhoto(ctx context.Context, req *DeletePhotoRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeletePhoto not implemented")
}
func (*UnimplementedStreetViewPublishServiceServer) BatchDeletePhotos(ctx context.Context, req *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchDeletePhotos not implemented")
}
func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer) {
s.RegisterService(&_StreetViewPublishService_serviceDesc, srv)
}
func _StreetViewPublishService_StartUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).StartUpload(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/StartUpload",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).StartUpload(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_CreatePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreatePhotoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).CreatePhoto(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).CreatePhoto(ctx, req.(*CreatePhotoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_GetPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetPhotoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).GetPhoto(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).GetPhoto(ctx, req.(*GetPhotoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_BatchGetPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchGetPhotosRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).BatchGetPhotos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).BatchGetPhotos(ctx, req.(*BatchGetPhotosRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_ListPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPhotosRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).ListPhotos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).ListPhotos(ctx, req.(*ListPhotosRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_UpdatePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdatePhotoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).UpdatePhoto(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).UpdatePhoto(ctx, req.(*UpdatePhotoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_BatchUpdatePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchUpdatePhotosRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).BatchUpdatePhotos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).BatchUpdatePhotos(ctx, req.(*BatchUpdatePhotosRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_DeletePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeletePhotoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).DeletePhoto(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).DeletePhoto(ctx, req.(*DeletePhotoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _StreetViewPublishService_BatchDeletePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchDeletePhotosRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(StreetViewPublishServiceServer).BatchDeletePhotos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(StreetViewPublishServiceServer).BatchDeletePhotos(ctx, req.(*BatchDeletePhotosRequest))
}
return interceptor(ctx, in, info, handler)
}
var _StreetViewPublishService_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.streetview.publish.v1.StreetViewPublishService",
HandlerType: (*StreetViewPublishServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "StartUpload",
Handler: _StreetViewPublishService_StartUpload_Handler,
},
{
MethodName: "CreatePhoto",
Handler: _StreetViewPublishService_CreatePhoto_Handler,
},
{
MethodName: "GetPhoto",
Handler: _StreetViewPublishService_GetPhoto_Handler,
},
{
MethodName: "BatchGetPhotos",
Handler: _StreetViewPublishService_BatchGetPhotos_Handler,
},
{
MethodName: "ListPhotos",
Handler: _StreetViewPublishService_ListPhotos_Handler,
},
{
MethodName: "UpdatePhoto",
Handler: _StreetViewPublishService_UpdatePhoto_Handler,
},
{
MethodName: "BatchUpdatePhotos",
Handler: _StreetViewPublishService_BatchUpdatePhotos_Handler,
},
{
MethodName: "DeletePhoto",
Handler: _StreetViewPublishService_DeletePhoto_Handler,
},
{
MethodName: "BatchDeletePhotos",
Handler: _StreetViewPublishService_BatchDeletePhotos_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/streetview/publish/v1/streetview_publish.proto",
}