You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

707 lines
33 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/streetview/publish/v1/streetview_publish.proto
  3. package publish // import "google.golang.org/genproto/googleapis/streetview/publish/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import (
  10. context "golang.org/x/net/context"
  11. grpc "google.golang.org/grpc"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  22. // Reference imports to suppress errors if they are not otherwise used.
  23. var _ context.Context
  24. var _ grpc.ClientConn
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the grpc package it is being compiled against.
  27. const _ = grpc.SupportPackageIsVersion4
  28. // StreetViewPublishServiceClient is the client API for StreetViewPublishService service.
  29. //
  30. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  31. type StreetViewPublishServiceClient interface {
  32. // Creates an upload session to start uploading photo bytes. The method uses
  33. // the upload URL of the returned
  34. // [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
  35. // the [Photo][google.streetview.publish.v1.Photo].
  36. //
  37. // In addition to the photo requirements shown in
  38. // https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
  39. // the photo must meet the following requirements:
  40. //
  41. // * Photo Sphere XMP metadata must be included in the photo medadata. See
  42. // https://developers.google.com/streetview/spherical-metadata for the
  43. // required fields.
  44. // * The pixel size of the photo must meet the size requirements listed in
  45. // https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
  46. // the photo must be a full 360 horizontally.
  47. //
  48. // After the upload completes, the method uses
  49. // [UploadRef][google.streetview.publish.v1.UploadRef] with
  50. // [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
  51. // to create the [Photo][google.streetview.publish.v1.Photo] object entry.
  52. StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error)
  53. // After the client finishes uploading the photo with the returned
  54. // [UploadRef][google.streetview.publish.v1.UploadRef],
  55. // [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
  56. // publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
  57. // Street View on Google Maps.
  58. //
  59. // Currently, the only way to set heading, pitch, and roll in CreatePhoto is
  60. // through the [Photo Sphere XMP
  61. // metadata](https://developers.google.com/streetview/spherical-metadata) in
  62. // the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
  63. // `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
  64. //
  65. // This method returns the following error codes:
  66. //
  67. // * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
  68. // the request is malformed or if the uploaded photo is not a 360 photo.
  69. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
  70. // reference does not exist.
  71. // * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
  72. // if the account has reached the storage limit.
  73. CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
  74. // Gets the metadata of the specified
  75. // [Photo][google.streetview.publish.v1.Photo].
  76. //
  77. // This method returns the following error codes:
  78. //
  79. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  80. // the requesting user did not create the requested
  81. // [Photo][google.streetview.publish.v1.Photo].
  82. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
  83. // [Photo][google.streetview.publish.v1.Photo] does not exist.
  84. // * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
  85. // requested [Photo][google.streetview.publish.v1.Photo] is still being
  86. // indexed.
  87. GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error)
  88. // Gets the metadata of the specified
  89. // [Photo][google.streetview.publish.v1.Photo] batch.
  90. //
  91. // Note that if
  92. // [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
  93. // fails, either critical fields are missing or there is an authentication
  94. // error. Even if
  95. // [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
  96. // succeeds, individual photos in the batch may have failures.
  97. // These failures are specified in each
  98. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  99. // in
  100. // [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
  101. // See
  102. // [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
  103. // for specific failures that can occur per photo.
  104. BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error)
  105. // Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
  106. // the user.
  107. //
  108. // <aside class="note"><b>Note:</b> Recently created photos that are still
  109. // being indexed are not returned in the response.</aside>
  110. ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error)
  111. // Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
  112. // as pose, place association, connections, etc. Changing the pixels of a
  113. // photo is not supported.
  114. //
  115. // Only the fields specified in the
  116. // [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
  117. // field are used. If `updateMask` is not present, the update applies to all
  118. // fields.
  119. //
  120. // This method returns the following error codes:
  121. //
  122. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  123. // the requesting user did not create the requested photo.
  124. // * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
  125. // the request is malformed.
  126. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
  127. // photo does not exist.
  128. // * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
  129. // requested [Photo][google.streetview.publish.v1.Photo] is still being
  130. // indexed.
  131. UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error)
  132. // Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
  133. // as pose, place association, connections, etc. Changing the pixels of photos
  134. // is not supported.
  135. //
  136. // Note that if
  137. // [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
  138. // fails, either critical fields are missing or there is an authentication
  139. // error. Even if
  140. // [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
  141. // succeeds, individual photos in the batch may have failures.
  142. // These failures are specified in each
  143. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  144. // in
  145. // [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
  146. // See
  147. // [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
  148. // for specific failures that can occur per photo.
  149. //
  150. // Only the fields specified in
  151. // [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
  152. // field are used. If `updateMask` is not present, the update applies to all
  153. // fields.
  154. //
  155. // The number of
  156. // [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
  157. // messages in a
  158. // [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
  159. // must not exceed 20.
  160. //
  161. // <aside class="note"><b>Note:</b> To update
  162. // [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
  163. // [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
  164. // filled as well. Otherwise, the request will fail.</aside>
  165. BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error)
  166. // Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
  167. //
  168. // This method returns the following error codes:
  169. //
  170. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  171. // the requesting user did not create the requested photo.
  172. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
  173. // does not exist.
  174. DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  175. // Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
  176. // metadata.
  177. //
  178. // Note that if
  179. // [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
  180. // fails, either critical fields are missing or there was an authentication
  181. // error. Even if
  182. // [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
  183. // succeeds, individual photos in the batch may have failures.
  184. // These failures are specified in each
  185. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  186. // in
  187. // [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
  188. // See
  189. // [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
  190. // for specific failures that can occur per photo.
  191. BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error)
  192. }
  193. type streetViewPublishServiceClient struct {
  194. cc *grpc.ClientConn
  195. }
  196. func NewStreetViewPublishServiceClient(cc *grpc.ClientConn) StreetViewPublishServiceClient {
  197. return &streetViewPublishServiceClient{cc}
  198. }
  199. func (c *streetViewPublishServiceClient) StartUpload(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UploadRef, error) {
  200. out := new(UploadRef)
  201. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/StartUpload", in, out, opts...)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return out, nil
  206. }
  207. func (c *streetViewPublishServiceClient) CreatePhoto(ctx context.Context, in *CreatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
  208. out := new(Photo)
  209. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto", in, out, opts...)
  210. if err != nil {
  211. return nil, err
  212. }
  213. return out, nil
  214. }
  215. func (c *streetViewPublishServiceClient) GetPhoto(ctx context.Context, in *GetPhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
  216. out := new(Photo)
  217. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto", in, out, opts...)
  218. if err != nil {
  219. return nil, err
  220. }
  221. return out, nil
  222. }
  223. func (c *streetViewPublishServiceClient) BatchGetPhotos(ctx context.Context, in *BatchGetPhotosRequest, opts ...grpc.CallOption) (*BatchGetPhotosResponse, error) {
  224. out := new(BatchGetPhotosResponse)
  225. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos", in, out, opts...)
  226. if err != nil {
  227. return nil, err
  228. }
  229. return out, nil
  230. }
  231. func (c *streetViewPublishServiceClient) ListPhotos(ctx context.Context, in *ListPhotosRequest, opts ...grpc.CallOption) (*ListPhotosResponse, error) {
  232. out := new(ListPhotosResponse)
  233. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos", in, out, opts...)
  234. if err != nil {
  235. return nil, err
  236. }
  237. return out, nil
  238. }
  239. func (c *streetViewPublishServiceClient) UpdatePhoto(ctx context.Context, in *UpdatePhotoRequest, opts ...grpc.CallOption) (*Photo, error) {
  240. out := new(Photo)
  241. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto", in, out, opts...)
  242. if err != nil {
  243. return nil, err
  244. }
  245. return out, nil
  246. }
  247. func (c *streetViewPublishServiceClient) BatchUpdatePhotos(ctx context.Context, in *BatchUpdatePhotosRequest, opts ...grpc.CallOption) (*BatchUpdatePhotosResponse, error) {
  248. out := new(BatchUpdatePhotosResponse)
  249. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos", in, out, opts...)
  250. if err != nil {
  251. return nil, err
  252. }
  253. return out, nil
  254. }
  255. func (c *streetViewPublishServiceClient) DeletePhoto(ctx context.Context, in *DeletePhotoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  256. out := new(empty.Empty)
  257. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto", in, out, opts...)
  258. if err != nil {
  259. return nil, err
  260. }
  261. return out, nil
  262. }
  263. func (c *streetViewPublishServiceClient) BatchDeletePhotos(ctx context.Context, in *BatchDeletePhotosRequest, opts ...grpc.CallOption) (*BatchDeletePhotosResponse, error) {
  264. out := new(BatchDeletePhotosResponse)
  265. err := c.cc.Invoke(ctx, "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos", in, out, opts...)
  266. if err != nil {
  267. return nil, err
  268. }
  269. return out, nil
  270. }
  271. // StreetViewPublishServiceServer is the server API for StreetViewPublishService service.
  272. type StreetViewPublishServiceServer interface {
  273. // Creates an upload session to start uploading photo bytes. The method uses
  274. // the upload URL of the returned
  275. // [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
  276. // the [Photo][google.streetview.publish.v1.Photo].
  277. //
  278. // In addition to the photo requirements shown in
  279. // https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604,
  280. // the photo must meet the following requirements:
  281. //
  282. // * Photo Sphere XMP metadata must be included in the photo medadata. See
  283. // https://developers.google.com/streetview/spherical-metadata for the
  284. // required fields.
  285. // * The pixel size of the photo must meet the size requirements listed in
  286. // https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and
  287. // the photo must be a full 360 horizontally.
  288. //
  289. // After the upload completes, the method uses
  290. // [UploadRef][google.streetview.publish.v1.UploadRef] with
  291. // [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
  292. // to create the [Photo][google.streetview.publish.v1.Photo] object entry.
  293. StartUpload(context.Context, *empty.Empty) (*UploadRef, error)
  294. // After the client finishes uploading the photo with the returned
  295. // [UploadRef][google.streetview.publish.v1.UploadRef],
  296. // [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto]
  297. // publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to
  298. // Street View on Google Maps.
  299. //
  300. // Currently, the only way to set heading, pitch, and roll in CreatePhoto is
  301. // through the [Photo Sphere XMP
  302. // metadata](https://developers.google.com/streetview/spherical-metadata) in
  303. // the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`,
  304. // `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose.
  305. //
  306. // This method returns the following error codes:
  307. //
  308. // * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
  309. // the request is malformed or if the uploaded photo is not a 360 photo.
  310. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload
  311. // reference does not exist.
  312. // * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
  313. // if the account has reached the storage limit.
  314. CreatePhoto(context.Context, *CreatePhotoRequest) (*Photo, error)
  315. // Gets the metadata of the specified
  316. // [Photo][google.streetview.publish.v1.Photo].
  317. //
  318. // This method returns the following error codes:
  319. //
  320. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  321. // the requesting user did not create the requested
  322. // [Photo][google.streetview.publish.v1.Photo].
  323. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
  324. // [Photo][google.streetview.publish.v1.Photo] does not exist.
  325. // * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
  326. // requested [Photo][google.streetview.publish.v1.Photo] is still being
  327. // indexed.
  328. GetPhoto(context.Context, *GetPhotoRequest) (*Photo, error)
  329. // Gets the metadata of the specified
  330. // [Photo][google.streetview.publish.v1.Photo] batch.
  331. //
  332. // Note that if
  333. // [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
  334. // fails, either critical fields are missing or there is an authentication
  335. // error. Even if
  336. // [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos]
  337. // succeeds, individual photos in the batch may have failures.
  338. // These failures are specified in each
  339. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  340. // in
  341. // [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results].
  342. // See
  343. // [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto]
  344. // for specific failures that can occur per photo.
  345. BatchGetPhotos(context.Context, *BatchGetPhotosRequest) (*BatchGetPhotosResponse, error)
  346. // Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to
  347. // the user.
  348. //
  349. // <aside class="note"><b>Note:</b> Recently created photos that are still
  350. // being indexed are not returned in the response.</aside>
  351. ListPhotos(context.Context, *ListPhotosRequest) (*ListPhotosResponse, error)
  352. // Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such
  353. // as pose, place association, connections, etc. Changing the pixels of a
  354. // photo is not supported.
  355. //
  356. // Only the fields specified in the
  357. // [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
  358. // field are used. If `updateMask` is not present, the update applies to all
  359. // fields.
  360. //
  361. // This method returns the following error codes:
  362. //
  363. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  364. // the requesting user did not create the requested photo.
  365. // * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if
  366. // the request is malformed.
  367. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested
  368. // photo does not exist.
  369. // * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the
  370. // requested [Photo][google.streetview.publish.v1.Photo] is still being
  371. // indexed.
  372. UpdatePhoto(context.Context, *UpdatePhotoRequest) (*Photo, error)
  373. // Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such
  374. // as pose, place association, connections, etc. Changing the pixels of photos
  375. // is not supported.
  376. //
  377. // Note that if
  378. // [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
  379. // fails, either critical fields are missing or there is an authentication
  380. // error. Even if
  381. // [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos]
  382. // succeeds, individual photos in the batch may have failures.
  383. // These failures are specified in each
  384. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  385. // in
  386. // [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results].
  387. // See
  388. // [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto]
  389. // for specific failures that can occur per photo.
  390. //
  391. // Only the fields specified in
  392. // [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask]
  393. // field are used. If `updateMask` is not present, the update applies to all
  394. // fields.
  395. //
  396. // The number of
  397. // [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest]
  398. // messages in a
  399. // [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest]
  400. // must not exceed 20.
  401. //
  402. // <aside class="note"><b>Note:</b> To update
  403. // [Pose.altitude][google.streetview.publish.v1.Pose.altitude],
  404. // [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be
  405. // filled as well. Otherwise, the request will fail.</aside>
  406. BatchUpdatePhotos(context.Context, *BatchUpdatePhotosRequest) (*BatchUpdatePhotosResponse, error)
  407. // Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata.
  408. //
  409. // This method returns the following error codes:
  410. //
  411. // * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if
  412. // the requesting user did not create the requested photo.
  413. // * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID
  414. // does not exist.
  415. DeletePhoto(context.Context, *DeletePhotoRequest) (*empty.Empty, error)
  416. // Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their
  417. // metadata.
  418. //
  419. // Note that if
  420. // [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
  421. // fails, either critical fields are missing or there was an authentication
  422. // error. Even if
  423. // [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos]
  424. // succeeds, individual photos in the batch may have failures.
  425. // These failures are specified in each
  426. // [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status]
  427. // in
  428. // [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status].
  429. // See
  430. // [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto]
  431. // for specific failures that can occur per photo.
  432. BatchDeletePhotos(context.Context, *BatchDeletePhotosRequest) (*BatchDeletePhotosResponse, error)
  433. }
  434. func RegisterStreetViewPublishServiceServer(s *grpc.Server, srv StreetViewPublishServiceServer) {
  435. s.RegisterService(&_StreetViewPublishService_serviceDesc, srv)
  436. }
  437. func _StreetViewPublishService_StartUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  438. in := new(empty.Empty)
  439. if err := dec(in); err != nil {
  440. return nil, err
  441. }
  442. if interceptor == nil {
  443. return srv.(StreetViewPublishServiceServer).StartUpload(ctx, in)
  444. }
  445. info := &grpc.UnaryServerInfo{
  446. Server: srv,
  447. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/StartUpload",
  448. }
  449. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  450. return srv.(StreetViewPublishServiceServer).StartUpload(ctx, req.(*empty.Empty))
  451. }
  452. return interceptor(ctx, in, info, handler)
  453. }
  454. func _StreetViewPublishService_CreatePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  455. in := new(CreatePhotoRequest)
  456. if err := dec(in); err != nil {
  457. return nil, err
  458. }
  459. if interceptor == nil {
  460. return srv.(StreetViewPublishServiceServer).CreatePhoto(ctx, in)
  461. }
  462. info := &grpc.UnaryServerInfo{
  463. Server: srv,
  464. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/CreatePhoto",
  465. }
  466. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  467. return srv.(StreetViewPublishServiceServer).CreatePhoto(ctx, req.(*CreatePhotoRequest))
  468. }
  469. return interceptor(ctx, in, info, handler)
  470. }
  471. func _StreetViewPublishService_GetPhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  472. in := new(GetPhotoRequest)
  473. if err := dec(in); err != nil {
  474. return nil, err
  475. }
  476. if interceptor == nil {
  477. return srv.(StreetViewPublishServiceServer).GetPhoto(ctx, in)
  478. }
  479. info := &grpc.UnaryServerInfo{
  480. Server: srv,
  481. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/GetPhoto",
  482. }
  483. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  484. return srv.(StreetViewPublishServiceServer).GetPhoto(ctx, req.(*GetPhotoRequest))
  485. }
  486. return interceptor(ctx, in, info, handler)
  487. }
  488. func _StreetViewPublishService_BatchGetPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  489. in := new(BatchGetPhotosRequest)
  490. if err := dec(in); err != nil {
  491. return nil, err
  492. }
  493. if interceptor == nil {
  494. return srv.(StreetViewPublishServiceServer).BatchGetPhotos(ctx, in)
  495. }
  496. info := &grpc.UnaryServerInfo{
  497. Server: srv,
  498. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchGetPhotos",
  499. }
  500. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  501. return srv.(StreetViewPublishServiceServer).BatchGetPhotos(ctx, req.(*BatchGetPhotosRequest))
  502. }
  503. return interceptor(ctx, in, info, handler)
  504. }
  505. func _StreetViewPublishService_ListPhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  506. in := new(ListPhotosRequest)
  507. if err := dec(in); err != nil {
  508. return nil, err
  509. }
  510. if interceptor == nil {
  511. return srv.(StreetViewPublishServiceServer).ListPhotos(ctx, in)
  512. }
  513. info := &grpc.UnaryServerInfo{
  514. Server: srv,
  515. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/ListPhotos",
  516. }
  517. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  518. return srv.(StreetViewPublishServiceServer).ListPhotos(ctx, req.(*ListPhotosRequest))
  519. }
  520. return interceptor(ctx, in, info, handler)
  521. }
  522. func _StreetViewPublishService_UpdatePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  523. in := new(UpdatePhotoRequest)
  524. if err := dec(in); err != nil {
  525. return nil, err
  526. }
  527. if interceptor == nil {
  528. return srv.(StreetViewPublishServiceServer).UpdatePhoto(ctx, in)
  529. }
  530. info := &grpc.UnaryServerInfo{
  531. Server: srv,
  532. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/UpdatePhoto",
  533. }
  534. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  535. return srv.(StreetViewPublishServiceServer).UpdatePhoto(ctx, req.(*UpdatePhotoRequest))
  536. }
  537. return interceptor(ctx, in, info, handler)
  538. }
  539. func _StreetViewPublishService_BatchUpdatePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  540. in := new(BatchUpdatePhotosRequest)
  541. if err := dec(in); err != nil {
  542. return nil, err
  543. }
  544. if interceptor == nil {
  545. return srv.(StreetViewPublishServiceServer).BatchUpdatePhotos(ctx, in)
  546. }
  547. info := &grpc.UnaryServerInfo{
  548. Server: srv,
  549. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchUpdatePhotos",
  550. }
  551. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  552. return srv.(StreetViewPublishServiceServer).BatchUpdatePhotos(ctx, req.(*BatchUpdatePhotosRequest))
  553. }
  554. return interceptor(ctx, in, info, handler)
  555. }
  556. func _StreetViewPublishService_DeletePhoto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  557. in := new(DeletePhotoRequest)
  558. if err := dec(in); err != nil {
  559. return nil, err
  560. }
  561. if interceptor == nil {
  562. return srv.(StreetViewPublishServiceServer).DeletePhoto(ctx, in)
  563. }
  564. info := &grpc.UnaryServerInfo{
  565. Server: srv,
  566. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/DeletePhoto",
  567. }
  568. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  569. return srv.(StreetViewPublishServiceServer).DeletePhoto(ctx, req.(*DeletePhotoRequest))
  570. }
  571. return interceptor(ctx, in, info, handler)
  572. }
  573. func _StreetViewPublishService_BatchDeletePhotos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  574. in := new(BatchDeletePhotosRequest)
  575. if err := dec(in); err != nil {
  576. return nil, err
  577. }
  578. if interceptor == nil {
  579. return srv.(StreetViewPublishServiceServer).BatchDeletePhotos(ctx, in)
  580. }
  581. info := &grpc.UnaryServerInfo{
  582. Server: srv,
  583. FullMethod: "/google.streetview.publish.v1.StreetViewPublishService/BatchDeletePhotos",
  584. }
  585. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  586. return srv.(StreetViewPublishServiceServer).BatchDeletePhotos(ctx, req.(*BatchDeletePhotosRequest))
  587. }
  588. return interceptor(ctx, in, info, handler)
  589. }
  590. var _StreetViewPublishService_serviceDesc = grpc.ServiceDesc{
  591. ServiceName: "google.streetview.publish.v1.StreetViewPublishService",
  592. HandlerType: (*StreetViewPublishServiceServer)(nil),
  593. Methods: []grpc.MethodDesc{
  594. {
  595. MethodName: "StartUpload",
  596. Handler: _StreetViewPublishService_StartUpload_Handler,
  597. },
  598. {
  599. MethodName: "CreatePhoto",
  600. Handler: _StreetViewPublishService_CreatePhoto_Handler,
  601. },
  602. {
  603. MethodName: "GetPhoto",
  604. Handler: _StreetViewPublishService_GetPhoto_Handler,
  605. },
  606. {
  607. MethodName: "BatchGetPhotos",
  608. Handler: _StreetViewPublishService_BatchGetPhotos_Handler,
  609. },
  610. {
  611. MethodName: "ListPhotos",
  612. Handler: _StreetViewPublishService_ListPhotos_Handler,
  613. },
  614. {
  615. MethodName: "UpdatePhoto",
  616. Handler: _StreetViewPublishService_UpdatePhoto_Handler,
  617. },
  618. {
  619. MethodName: "BatchUpdatePhotos",
  620. Handler: _StreetViewPublishService_BatchUpdatePhotos_Handler,
  621. },
  622. {
  623. MethodName: "DeletePhoto",
  624. Handler: _StreetViewPublishService_DeletePhoto_Handler,
  625. },
  626. {
  627. MethodName: "BatchDeletePhotos",
  628. Handler: _StreetViewPublishService_BatchDeletePhotos_Handler,
  629. },
  630. },
  631. Streams: []grpc.StreamDesc{},
  632. Metadata: "google/streetview/publish/v1/streetview_publish.proto",
  633. }
  634. func init() {
  635. proto.RegisterFile("google/streetview/publish/v1/streetview_publish.proto", fileDescriptor_streetview_publish_211fc8b089536e0b)
  636. }
  637. var fileDescriptor_streetview_publish_211fc8b089536e0b = []byte{
  638. // 533 bytes of a gzipped FileDescriptorProto
  639. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
  640. 0x18, 0xc6, 0x15, 0x24, 0x10, 0xb8, 0x08, 0x69, 0x86, 0x55, 0x53, 0x3a, 0x24, 0x08, 0x12, 0xa0,
  641. 0x6a, 0xd8, 0x1b, 0xe3, 0x8f, 0x54, 0x6e, 0x1d, 0x88, 0x0b, 0x87, 0x69, 0xd5, 0x38, 0x70, 0x99,
  642. 0xdc, 0xf4, 0x5d, 0x6a, 0x29, 0x8d, 0x4d, 0xec, 0x74, 0x42, 0x30, 0x0e, 0xe3, 0xc8, 0x0d, 0x2e,
  643. 0x7c, 0x03, 0x3e, 0x10, 0x5f, 0x81, 0x0f, 0x82, 0xea, 0xd8, 0x4d, 0x36, 0x8a, 0x49, 0x4e, 0x69,
  644. 0xf3, 0x3e, 0xcf, 0xfb, 0xfc, 0xfa, 0xbe, 0xae, 0xd1, 0xd3, 0x44, 0x88, 0x24, 0x05, 0xaa, 0x74,
  645. 0x0e, 0xa0, 0xe7, 0x1c, 0x4e, 0xa8, 0x2c, 0xc6, 0x29, 0x57, 0x53, 0x3a, 0xdf, 0xa9, 0xbd, 0x3d,
  646. 0xb2, 0x6f, 0x89, 0xcc, 0x85, 0x16, 0x78, 0xb3, 0xb4, 0x91, 0x4a, 0x40, 0x9c, 0x60, 0xbe, 0x13,
  647. 0xda, 0x2a, 0x65, 0x92, 0x53, 0x96, 0x65, 0x42, 0x33, 0xcd, 0x45, 0xa6, 0x4a, 0x6f, 0xd8, 0xb3,
  648. 0x55, 0xf3, 0x6d, 0x5c, 0x1c, 0x53, 0x98, 0x49, 0xfd, 0xc1, 0x16, 0xb7, 0xbc, 0x3c, 0x39, 0x28,
  649. 0x51, 0xe4, 0x31, 0xb8, 0x56, 0xc4, 0xaf, 0x96, 0xf1, 0x0c, 0x94, 0x62, 0x89, 0xd3, 0x3f, 0xfe,
  650. 0x8a, 0xd0, 0xc6, 0xc8, 0x68, 0xdf, 0x72, 0x38, 0xd9, 0x2f, 0xa5, 0x23, 0xc8, 0xe7, 0x3c, 0x06,
  651. 0x2c, 0x51, 0x67, 0xa4, 0x59, 0xae, 0x0f, 0x65, 0x2a, 0xd8, 0x04, 0x77, 0x6d, 0x73, 0xe2, 0x38,
  652. 0xc9, 0xab, 0x05, 0x67, 0xf8, 0x80, 0xf8, 0x7e, 0x3b, 0x29, 0xdd, 0x07, 0x70, 0x1c, 0xdd, 0x39,
  653. 0xfb, 0xf5, 0xfb, 0xfb, 0xa5, 0x30, 0x5a, 0x5f, 0xb0, 0xc8, 0xa9, 0xd0, 0x62, 0xa0, 0xaa, 0xfe,
  654. 0x83, 0xa0, 0x8f, 0x3f, 0xa3, 0xce, 0x5e, 0x0e, 0x4c, 0xc3, 0xfe, 0xa2, 0x8a, 0xb7, 0xfd, 0x9d,
  655. 0x6b, 0xd2, 0x03, 0x78, 0x5f, 0x80, 0xd2, 0xe1, 0x3d, 0xbf, 0xc3, 0x68, 0xa3, 0x0d, 0xc3, 0x81,
  656. 0xa3, 0x6b, 0x15, 0xc7, 0x65, 0xf3, 0xc0, 0x9f, 0xd0, 0xd5, 0xd7, 0xa0, 0xcb, 0xf0, 0x47, 0xfe,
  657. 0x56, 0x4e, 0xd7, 0x2a, 0x79, 0xd3, 0x24, 0x77, 0xf1, 0xad, 0x65, 0x32, 0xfd, 0x68, 0x1e, 0x47,
  658. 0x7c, 0x72, 0x8a, 0x7f, 0x04, 0xe8, 0xc6, 0x90, 0xe9, 0x78, 0xea, 0x7a, 0x2b, 0xbc, 0xeb, 0xef,
  659. 0x7a, 0x5e, 0xed, 0x50, 0x9e, 0xb4, 0x33, 0x29, 0x29, 0x32, 0x05, 0x51, 0xcf, 0xb0, 0xad, 0xe3,
  660. 0x9b, 0x4b, 0x36, 0x35, 0x18, 0x5b, 0x29, 0xfe, 0x12, 0x20, 0xf4, 0x86, 0x2b, 0x87, 0x45, 0xfd,
  661. 0x09, 0x95, 0xd2, 0x21, 0x6d, 0x37, 0x37, 0x58, 0x1c, 0x6c, 0x70, 0xae, 0x63, 0x54, 0xe1, 0xe0,
  662. 0x6f, 0x01, 0xea, 0x1c, 0xca, 0x49, 0xd3, 0xf3, 0x51, 0x93, 0xb6, 0xda, 0xd2, 0x96, 0x89, 0xbe,
  663. 0x1f, 0xde, 0xbe, 0xb8, 0x25, 0xe2, 0x76, 0x45, 0xf8, 0xe4, 0xd4, 0x9d, 0x99, 0x9f, 0x01, 0x5a,
  664. 0x33, 0x23, 0xad, 0xc5, 0x29, 0xfc, 0xac, 0xc1, 0x0e, 0xea, 0x06, 0x07, 0xf8, 0xbc, 0xb5, 0xcf,
  665. 0xce, 0xeb, 0xae, 0x81, 0xee, 0x45, 0xdd, 0x8b, 0xeb, 0x2b, 0xd5, 0x8b, 0x7f, 0x57, 0x81, 0x3a,
  666. 0x2f, 0x21, 0x85, 0x86, 0xd3, 0xab, 0x49, 0x1d, 0xdc, 0x3f, 0x6e, 0x00, 0x77, 0xac, 0xfb, 0xab,
  667. 0x8f, 0xf5, 0x72, 0x40, 0xb5, 0x8e, 0xcd, 0x06, 0x54, 0x37, 0xb4, 0x19, 0xd0, 0x79, 0xdf, 0xff,
  668. 0x06, 0x54, 0xaa, 0x07, 0x41, 0x7f, 0x78, 0x16, 0xa0, 0x87, 0xb1, 0x98, 0xb9, 0x84, 0x04, 0x04,
  669. 0x29, 0x92, 0x78, 0x75, 0xd2, 0x70, 0xed, 0xaf, 0x7b, 0xf3, 0xdd, 0x9e, 0x33, 0x8a, 0x94, 0x65,
  670. 0x09, 0x11, 0x79, 0x42, 0x13, 0xc8, 0xcc, 0xb0, 0x68, 0x59, 0x62, 0x92, 0xab, 0xd5, 0x97, 0xf3,
  671. 0x0b, 0xfb, 0x71, 0x7c, 0xc5, 0xe8, 0x77, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x7d, 0x9d, 0xfe,
  672. 0x1c, 0x89, 0x06, 0x00, 0x00,
  673. }