streams_service.proto 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.visionai.v1alpha1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/visionai/v1alpha1/common.proto";
  21. import "google/cloud/visionai/v1alpha1/streams_resources.proto";
  22. import "google/longrunning/operations.proto";
  23. import "google/protobuf/field_mask.proto";
  24. import "google/protobuf/timestamp.proto";
  25. option csharp_namespace = "Google.Cloud.VisionAI.V1Alpha1";
  26. option go_package = "google.golang.org/genproto/googleapis/cloud/visionai/v1alpha1;visionai";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "StreamsServiceProto";
  29. option java_package = "com.google.cloud.visionai.v1alpha1";
  30. option php_namespace = "Google\\Cloud\\VisionAI\\V1alpha1";
  31. option ruby_package = "Google::Cloud::VisionAI::V1alpha1";
  32. // Service describing handlers for resources.
  33. // Vision API and Vision AI API are two independent APIs developed by the same
  34. // team. Vision API is for people to annotate their image while Vision AI is an
  35. // e2e solution for customer to build their own computer vision application.
  36. service StreamsService {
  37. option (google.api.default_host) = "visionai.googleapis.com";
  38. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  39. // Lists Clusters in a given project and location.
  40. rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
  41. option (google.api.http) = {
  42. get: "/v1alpha1/{parent=projects/*/locations/*}/clusters"
  43. };
  44. option (google.api.method_signature) = "parent";
  45. }
  46. // Gets details of a single Cluster.
  47. rpc GetCluster(GetClusterRequest) returns (Cluster) {
  48. option (google.api.http) = {
  49. get: "/v1alpha1/{name=projects/*/locations/*/clusters/*}"
  50. };
  51. option (google.api.method_signature) = "name";
  52. }
  53. // Creates a new Cluster in a given project and location.
  54. rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) {
  55. option (google.api.http) = {
  56. post: "/v1alpha1/{parent=projects/*/locations/*}/clusters"
  57. body: "cluster"
  58. };
  59. option (google.api.method_signature) = "parent,cluster,cluster_id";
  60. option (google.longrunning.operation_info) = {
  61. response_type: "Cluster"
  62. metadata_type: "OperationMetadata"
  63. };
  64. }
  65. // Updates the parameters of a single Cluster.
  66. rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) {
  67. option (google.api.http) = {
  68. patch: "/v1alpha1/{cluster.name=projects/*/locations/*/clusters/*}"
  69. body: "cluster"
  70. };
  71. option (google.api.method_signature) = "cluster,update_mask";
  72. option (google.longrunning.operation_info) = {
  73. response_type: "Cluster"
  74. metadata_type: "OperationMetadata"
  75. };
  76. }
  77. // Deletes a single Cluster.
  78. rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) {
  79. option (google.api.http) = {
  80. delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*}"
  81. };
  82. option (google.api.method_signature) = "name";
  83. option (google.longrunning.operation_info) = {
  84. response_type: "google.protobuf.Empty"
  85. metadata_type: "OperationMetadata"
  86. };
  87. }
  88. // Lists Streams in a given project and location.
  89. rpc ListStreams(ListStreamsRequest) returns (ListStreamsResponse) {
  90. option (google.api.http) = {
  91. get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/streams"
  92. };
  93. option (google.api.method_signature) = "parent";
  94. }
  95. // Gets details of a single Stream.
  96. rpc GetStream(GetStreamRequest) returns (Stream) {
  97. option (google.api.http) = {
  98. get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/streams/*}"
  99. };
  100. option (google.api.method_signature) = "name";
  101. }
  102. // Creates a new Stream in a given project and location.
  103. rpc CreateStream(CreateStreamRequest) returns (google.longrunning.Operation) {
  104. option (google.api.http) = {
  105. post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/streams"
  106. body: "stream"
  107. };
  108. option (google.api.method_signature) = "parent,stream,stream_id";
  109. option (google.longrunning.operation_info) = {
  110. response_type: "Stream"
  111. metadata_type: "OperationMetadata"
  112. };
  113. }
  114. // Updates the parameters of a single Stream.
  115. rpc UpdateStream(UpdateStreamRequest) returns (google.longrunning.Operation) {
  116. option (google.api.http) = {
  117. patch: "/v1alpha1/{stream.name=projects/*/locations/*/clusters/*/streams/*}"
  118. body: "stream"
  119. };
  120. option (google.api.method_signature) = "stream,update_mask";
  121. option (google.longrunning.operation_info) = {
  122. response_type: "Stream"
  123. metadata_type: "OperationMetadata"
  124. };
  125. }
  126. // Deletes a single Stream.
  127. rpc DeleteStream(DeleteStreamRequest) returns (google.longrunning.Operation) {
  128. option (google.api.http) = {
  129. delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/streams/*}"
  130. };
  131. option (google.api.method_signature) = "name";
  132. option (google.longrunning.operation_info) = {
  133. response_type: "google.protobuf.Empty"
  134. metadata_type: "OperationMetadata"
  135. };
  136. }
  137. // Generate the JWT auth token required to get the stream HLS contents.
  138. rpc GenerateStreamHlsToken(GenerateStreamHlsTokenRequest) returns (GenerateStreamHlsTokenResponse) {
  139. option (google.api.http) = {
  140. post: "/v1alpha1/{stream=projects/*/locations/*/clusters/*/streams/*}:generateStreamHlsToken"
  141. body: "*"
  142. };
  143. option (google.api.method_signature) = "stream";
  144. }
  145. // Lists Events in a given project and location.
  146. rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {
  147. option (google.api.http) = {
  148. get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/events"
  149. };
  150. option (google.api.method_signature) = "parent";
  151. }
  152. // Gets details of a single Event.
  153. rpc GetEvent(GetEventRequest) returns (Event) {
  154. option (google.api.http) = {
  155. get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/events/*}"
  156. };
  157. option (google.api.method_signature) = "name";
  158. }
  159. // Creates a new Event in a given project and location.
  160. rpc CreateEvent(CreateEventRequest) returns (google.longrunning.Operation) {
  161. option (google.api.http) = {
  162. post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/events"
  163. body: "event"
  164. };
  165. option (google.api.method_signature) = "parent,event,event_id";
  166. option (google.longrunning.operation_info) = {
  167. response_type: "Event"
  168. metadata_type: "OperationMetadata"
  169. };
  170. }
  171. // Updates the parameters of a single Event.
  172. rpc UpdateEvent(UpdateEventRequest) returns (google.longrunning.Operation) {
  173. option (google.api.http) = {
  174. patch: "/v1alpha1/{event.name=projects/*/locations/*/clusters/*/events/*}"
  175. body: "event"
  176. };
  177. option (google.api.method_signature) = "event,update_mask";
  178. option (google.longrunning.operation_info) = {
  179. response_type: "Event"
  180. metadata_type: "OperationMetadata"
  181. };
  182. }
  183. // Deletes a single Event.
  184. rpc DeleteEvent(DeleteEventRequest) returns (google.longrunning.Operation) {
  185. option (google.api.http) = {
  186. delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/events/*}"
  187. };
  188. option (google.api.method_signature) = "name";
  189. option (google.longrunning.operation_info) = {
  190. response_type: "google.protobuf.Empty"
  191. metadata_type: "OperationMetadata"
  192. };
  193. }
  194. // Lists Series in a given project and location.
  195. rpc ListSeries(ListSeriesRequest) returns (ListSeriesResponse) {
  196. option (google.api.http) = {
  197. get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/series"
  198. };
  199. option (google.api.method_signature) = "parent";
  200. }
  201. // Gets details of a single Series.
  202. rpc GetSeries(GetSeriesRequest) returns (Series) {
  203. option (google.api.http) = {
  204. get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/series/*}"
  205. };
  206. option (google.api.method_signature) = "name";
  207. }
  208. // Creates a new Series in a given project and location.
  209. rpc CreateSeries(CreateSeriesRequest) returns (google.longrunning.Operation) {
  210. option (google.api.http) = {
  211. post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/series"
  212. body: "series"
  213. };
  214. option (google.api.method_signature) = "parent,series,series_id";
  215. option (google.longrunning.operation_info) = {
  216. response_type: "Series"
  217. metadata_type: "OperationMetadata"
  218. };
  219. }
  220. // Updates the parameters of a single Event.
  221. rpc UpdateSeries(UpdateSeriesRequest) returns (google.longrunning.Operation) {
  222. option (google.api.http) = {
  223. patch: "/v1alpha1/{series.name=projects/*/locations/*/clusters/*/series/*}"
  224. body: "series"
  225. };
  226. option (google.api.method_signature) = "series,update_mask";
  227. option (google.longrunning.operation_info) = {
  228. response_type: "Series"
  229. metadata_type: "OperationMetadata"
  230. };
  231. }
  232. // Deletes a single Series.
  233. rpc DeleteSeries(DeleteSeriesRequest) returns (google.longrunning.Operation) {
  234. option (google.api.http) = {
  235. delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/series/*}"
  236. };
  237. option (google.api.method_signature) = "name";
  238. option (google.longrunning.operation_info) = {
  239. response_type: "google.protobuf.Empty"
  240. metadata_type: "OperationMetadata"
  241. };
  242. }
  243. // Materialize a channel.
  244. rpc MaterializeChannel(MaterializeChannelRequest) returns (google.longrunning.Operation) {
  245. option (google.api.http) = {
  246. post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/channels"
  247. body: "channel"
  248. };
  249. option (google.api.method_signature) = "parent,channel,channel_id";
  250. option (google.longrunning.operation_info) = {
  251. response_type: "Channel"
  252. metadata_type: "OperationMetadata"
  253. };
  254. }
  255. }
  256. // Message for requesting list of Clusters.
  257. message ListClustersRequest {
  258. // Required. Parent value for ListClustersRequest.
  259. string parent = 1 [
  260. (google.api.field_behavior) = REQUIRED,
  261. (google.api.resource_reference) = {
  262. type: "locations.googleapis.com/Location"
  263. }
  264. ];
  265. // Requested page size. Server may return fewer items than requested.
  266. // If unspecified, server will pick an appropriate default.
  267. int32 page_size = 2;
  268. // A token identifying a page of results the server should return.
  269. string page_token = 3;
  270. // Filtering results.
  271. string filter = 4;
  272. // Hint for how to order the results.
  273. string order_by = 5;
  274. }
  275. // Message for response to listing Clusters.
  276. message ListClustersResponse {
  277. // The list of Cluster.
  278. repeated Cluster clusters = 1;
  279. // A token identifying a page of results the server should return.
  280. string next_page_token = 2;
  281. // Locations that could not be reached.
  282. repeated string unreachable = 3;
  283. }
  284. // Message for getting a Cluster.
  285. message GetClusterRequest {
  286. // Required. Name of the resource.
  287. string name = 1 [
  288. (google.api.field_behavior) = REQUIRED,
  289. (google.api.resource_reference) = {
  290. type: "visionai.googleapis.com/Cluster"
  291. }
  292. ];
  293. }
  294. // Message for creating a Cluster.
  295. message CreateClusterRequest {
  296. // Required. Value for parent.
  297. string parent = 1 [
  298. (google.api.field_behavior) = REQUIRED,
  299. (google.api.resource_reference) = {
  300. child_type: "visionai.googleapis.com/Cluster"
  301. }
  302. ];
  303. // Required. Id of the requesting object.
  304. string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
  305. // Required. The resource being created.
  306. Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
  307. // Optional. An optional request ID to identify requests. Specify a unique request ID
  308. // so that if you must retry your request, the server will know to ignore
  309. // the request if it has already been completed. The server will guarantee
  310. // that for at least 60 minutes since the first request.
  311. //
  312. // For example, consider a situation where you make an initial request and the
  313. // request times out. If you make the request again with the same request ID,
  314. // the server can check if original operation with the same request ID was
  315. // received, and if so, will ignore the second request. This prevents clients
  316. // from accidentally creating duplicate commitments.
  317. //
  318. // The request ID must be a valid UUID with the exception that zero UUID is
  319. // not supported (00000000-0000-0000-0000-000000000000).
  320. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  321. }
  322. // Message for updating a Cluster.
  323. message UpdateClusterRequest {
  324. // Required. Field mask is used to specify the fields to be overwritten in the
  325. // Cluster resource by the update.
  326. // The fields specified in the update_mask are relative to the resource, not
  327. // the full request. A field will be overwritten if it is in the mask. If the
  328. // user does not provide a mask then all fields will be overwritten.
  329. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
  330. // Required. The resource being updated
  331. Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
  332. // Optional. An optional request ID to identify requests. Specify a unique request ID
  333. // so that if you must retry your request, the server will know to ignore
  334. // the request if it has already been completed. The server will guarantee
  335. // that for at least 60 minutes since the first request.
  336. //
  337. // For example, consider a situation where you make an initial request and the
  338. // request times out. If you make the request again with the same request ID,
  339. // the server can check if original operation with the same request ID was
  340. // received, and if so, will ignore the second request. This prevents clients
  341. // from accidentally creating duplicate commitments.
  342. //
  343. // The request ID must be a valid UUID with the exception that zero UUID is
  344. // not supported (00000000-0000-0000-0000-000000000000).
  345. string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
  346. }
  347. // Message for deleting a Cluster.
  348. message DeleteClusterRequest {
  349. // Required. Name of the resource
  350. string name = 1 [
  351. (google.api.field_behavior) = REQUIRED,
  352. (google.api.resource_reference) = {
  353. type: "visionai.googleapis.com/Cluster"
  354. }
  355. ];
  356. // Optional. An optional request ID to identify requests. Specify a unique request ID
  357. // so that if you must retry your request, the server will know to ignore
  358. // the request if it has already been completed. The server will guarantee
  359. // that for at least 60 minutes after the first request.
  360. //
  361. // For example, consider a situation where you make an initial request and the
  362. // request times out. If you make the request again with the same request ID,
  363. // the server can check if original operation with the same request ID was
  364. // received, and if so, will ignore the second request. This prevents clients
  365. // from accidentally creating duplicate commitments.
  366. //
  367. // The request ID must be a valid UUID with the exception that zero UUID is
  368. // not supported (00000000-0000-0000-0000-000000000000).
  369. string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
  370. }
  371. // Message for requesting list of Streams.
  372. message ListStreamsRequest {
  373. // Required. Parent value for ListStreamsRequest.
  374. string parent = 1 [
  375. (google.api.field_behavior) = REQUIRED,
  376. (google.api.resource_reference) = {
  377. type: "visionai.googleapis.com/Cluster"
  378. }
  379. ];
  380. // Requested page size. Server may return fewer items than requested.
  381. // If unspecified, server will pick an appropriate default.
  382. int32 page_size = 2;
  383. // A token identifying a page of results the server should return.
  384. string page_token = 3;
  385. // Filtering results.
  386. string filter = 4;
  387. // Hint for how to order the results.
  388. string order_by = 5;
  389. }
  390. // Message for response to listing Streams.
  391. message ListStreamsResponse {
  392. // The list of Stream.
  393. repeated Stream streams = 1;
  394. // A token identifying a page of results the server should return.
  395. string next_page_token = 2;
  396. // Locations that could not be reached.
  397. repeated string unreachable = 3;
  398. }
  399. // Message for getting a Stream.
  400. message GetStreamRequest {
  401. // Required. Name of the resource.
  402. string name = 1 [
  403. (google.api.field_behavior) = REQUIRED,
  404. (google.api.resource_reference) = {
  405. type: "visionai.googleapis.com/Stream"
  406. }
  407. ];
  408. }
  409. // Message for creating a Stream.
  410. message CreateStreamRequest {
  411. // Required. Value for parent.
  412. string parent = 1 [
  413. (google.api.field_behavior) = REQUIRED,
  414. (google.api.resource_reference) = {
  415. type: "visionai.googleapis.com/Cluster"
  416. }
  417. ];
  418. // Required. Id of the requesting object.
  419. string stream_id = 2 [(google.api.field_behavior) = REQUIRED];
  420. // Required. The resource being created.
  421. Stream stream = 3 [(google.api.field_behavior) = REQUIRED];
  422. // Optional. An optional request ID to identify requests. Specify a unique request ID
  423. // so that if you must retry your request, the server will know to ignore
  424. // the request if it has already been completed. The server will guarantee
  425. // that for at least 60 minutes since the first request.
  426. //
  427. // For example, consider a situation where you make an initial request and the
  428. // request times out. If you make the request again with the same request ID,
  429. // the server can check if original operation with the same request ID was
  430. // received, and if so, will ignore the second request. This prevents clients
  431. // from accidentally creating duplicate commitments.
  432. //
  433. // The request ID must be a valid UUID with the exception that zero UUID is
  434. // not supported (00000000-0000-0000-0000-000000000000).
  435. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  436. }
  437. // Message for updating a Stream.
  438. message UpdateStreamRequest {
  439. // Required. Field mask is used to specify the fields to be overwritten in the
  440. // Stream resource by the update.
  441. // The fields specified in the update_mask are relative to the resource, not
  442. // the full request. A field will be overwritten if it is in the mask. If the
  443. // user does not provide a mask then all fields will be overwritten.
  444. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
  445. // Required. The resource being updated.
  446. Stream stream = 2 [(google.api.field_behavior) = REQUIRED];
  447. // Optional. An optional request ID to identify requests. Specify a unique request ID
  448. // so that if you must retry your request, the server will know to ignore
  449. // the request if it has already been completed. The server will guarantee
  450. // that for at least 60 minutes since the first request.
  451. //
  452. // For example, consider a situation where you make an initial request and the
  453. // request times out. If you make the request again with the same request ID,
  454. // the server can check if original operation with the same request ID was
  455. // received, and if so, will ignore the second request. This prevents clients
  456. // from accidentally creating duplicate commitments.
  457. //
  458. // The request ID must be a valid UUID with the exception that zero UUID is
  459. // not supported (00000000-0000-0000-0000-000000000000).
  460. string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
  461. }
  462. // Message for deleting a Stream.
  463. message DeleteStreamRequest {
  464. // Required. Name of the resource.
  465. string name = 1 [
  466. (google.api.field_behavior) = REQUIRED,
  467. (google.api.resource_reference) = {
  468. type: "visionai.googleapis.com/Stream"
  469. }
  470. ];
  471. // Optional. An optional request ID to identify requests. Specify a unique request ID
  472. // so that if you must retry your request, the server will know to ignore
  473. // the request if it has already been completed. The server will guarantee
  474. // that for at least 60 minutes after the first request.
  475. //
  476. // For example, consider a situation where you make an initial request and the
  477. // request times out. If you make the request again with the same request ID,
  478. // the server can check if original operation with the same request ID was
  479. // received, and if so, will ignore the second request. This prevents clients
  480. // from accidentally creating duplicate commitments.
  481. //
  482. // The request ID must be a valid UUID with the exception that zero UUID is
  483. // not supported (00000000-0000-0000-0000-000000000000).
  484. string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
  485. }
  486. // Message for the response of GetStreamThumbnail. The empty response message
  487. // indicates the thumbnail image has been uploaded to GCS successfully.
  488. message GetStreamThumbnailResponse {
  489. }
  490. // Request message for getting the auth token to access the stream HLS contents.
  491. message GenerateStreamHlsTokenRequest {
  492. // Required. The name of the stream.
  493. string stream = 1 [(google.api.field_behavior) = REQUIRED];
  494. }
  495. // Response message for GenerateStreamHlsToken.
  496. message GenerateStreamHlsTokenResponse {
  497. // The generated JWT token.
  498. //
  499. // The caller should insert this token to the authorization header of the HTTP
  500. // requests to get the HLS playlist manifest and the video chunks.
  501. // eg: curl -H "Authorization: Bearer $TOKEN"
  502. // https://domain.com/test-stream.playback/master.m3u8
  503. string token = 1;
  504. // The expiration time of the token.
  505. google.protobuf.Timestamp expiration_time = 2;
  506. }
  507. // Message for requesting list of Events.
  508. message ListEventsRequest {
  509. // Required. Parent value for ListEventsRequest.
  510. string parent = 1 [
  511. (google.api.field_behavior) = REQUIRED,
  512. (google.api.resource_reference) = {
  513. type: "visionai.googleapis.com/Cluster"
  514. }
  515. ];
  516. // Requested page size. Server may return fewer items than requested.
  517. // If unspecified, server will pick an appropriate default.
  518. int32 page_size = 2;
  519. // A token identifying a page of results the server should return.
  520. string page_token = 3;
  521. // Filtering results.
  522. string filter = 4;
  523. // Hint for how to order the results.
  524. string order_by = 5;
  525. }
  526. // Message for response to listing Events.
  527. message ListEventsResponse {
  528. // The list of Event.
  529. repeated Event events = 1;
  530. // A token identifying a page of results the server should return.
  531. string next_page_token = 2;
  532. // Locations that could not be reached.
  533. repeated string unreachable = 3;
  534. }
  535. // Message for getting a Event.
  536. message GetEventRequest {
  537. // Required. Name of the resource.
  538. string name = 1 [
  539. (google.api.field_behavior) = REQUIRED,
  540. (google.api.resource_reference) = {
  541. type: "visionai.googleapis.com/Event"
  542. }
  543. ];
  544. }
  545. // Message for creating a Event.
  546. message CreateEventRequest {
  547. // Required. Value for parent.
  548. string parent = 1 [
  549. (google.api.field_behavior) = REQUIRED,
  550. (google.api.resource_reference) = {
  551. type: "visionai.googleapis.com/Cluster"
  552. }
  553. ];
  554. // Required. Id of the requesting object.
  555. string event_id = 2 [(google.api.field_behavior) = REQUIRED];
  556. // Required. The resource being created.
  557. Event event = 3 [(google.api.field_behavior) = REQUIRED];
  558. // Optional. An optional request ID to identify requests. Specify a unique request ID
  559. // so that if you must retry your request, the server will know to ignore
  560. // the request if it has already been completed. The server will guarantee
  561. // that for at least 60 minutes since the first request.
  562. //
  563. // For example, consider a situation where you make an initial request and the
  564. // request times out. If you make the request again with the same request ID,
  565. // the server can check if original operation with the same request ID was
  566. // received, and if so, will ignore the second request. This prevents clients
  567. // from accidentally creating duplicate commitments.
  568. //
  569. // The request ID must be a valid UUID with the exception that zero UUID is
  570. // not supported (00000000-0000-0000-0000-000000000000).
  571. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  572. }
  573. // Message for updating a Event.
  574. message UpdateEventRequest {
  575. // Required. Field mask is used to specify the fields to be overwritten in the
  576. // Event resource by the update.
  577. // The fields specified in the update_mask are relative to the resource, not
  578. // the full request. A field will be overwritten if it is in the mask. If the
  579. // user does not provide a mask then all fields will be overwritten.
  580. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
  581. // Required. The resource being updated.
  582. Event event = 2 [(google.api.field_behavior) = REQUIRED];
  583. // Optional. An optional request ID to identify requests. Specify a unique request ID
  584. // so that if you must retry your request, the server will know to ignore
  585. // the request if it has already been completed. The server will guarantee
  586. // that for at least 60 minutes since the first request.
  587. //
  588. // For example, consider a situation where you make an initial request and the
  589. // request times out. If you make the request again with the same request ID,
  590. // the server can check if original operation with the same request ID was
  591. // received, and if so, will ignore the second request. This prevents clients
  592. // from accidentally creating duplicate commitments.
  593. //
  594. // The request ID must be a valid UUID with the exception that zero UUID is
  595. // not supported (00000000-0000-0000-0000-000000000000).
  596. string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
  597. }
  598. // Message for deleting a Event.
  599. message DeleteEventRequest {
  600. // Required. Name of the resource.
  601. string name = 1 [
  602. (google.api.field_behavior) = REQUIRED,
  603. (google.api.resource_reference) = {
  604. type: "visionai.googleapis.com/Event"
  605. }
  606. ];
  607. // Optional. An optional request ID to identify requests. Specify a unique request ID
  608. // so that if you must retry your request, the server will know to ignore
  609. // the request if it has already been completed. The server will guarantee
  610. // that for at least 60 minutes after the first request.
  611. //
  612. // For example, consider a situation where you make an initial request and the
  613. // request times out. If you make the request again with the same request ID,
  614. // the server can check if original operation with the same request ID was
  615. // received, and if so, will ignore the second request. This prevents clients
  616. // from accidentally creating duplicate commitments.
  617. //
  618. // The request ID must be a valid UUID with the exception that zero UUID is
  619. // not supported (00000000-0000-0000-0000-000000000000).
  620. string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
  621. }
  622. // Message for requesting list of Series.
  623. message ListSeriesRequest {
  624. // Required. Parent value for ListSeriesRequest.
  625. string parent = 1 [
  626. (google.api.field_behavior) = REQUIRED,
  627. (google.api.resource_reference) = {
  628. type: "visionai.googleapis.com/Cluster"
  629. }
  630. ];
  631. // Requested page size. Server may return fewer items than requested.
  632. // If unspecified, server will pick an appropriate default.
  633. int32 page_size = 2;
  634. // A token identifying a page of results the server should return.
  635. string page_token = 3;
  636. // Filtering results.
  637. string filter = 4;
  638. // Hint for how to order the results.
  639. string order_by = 5;
  640. }
  641. // Message for response to listing Series.
  642. message ListSeriesResponse {
  643. // The list of Series.
  644. repeated Series series = 1;
  645. // A token identifying a page of results the server should return.
  646. string next_page_token = 2;
  647. // Locations that could not be reached.
  648. repeated string unreachable = 3;
  649. }
  650. // Message for getting a Series.
  651. message GetSeriesRequest {
  652. // Required. Name of the resource.
  653. string name = 1 [
  654. (google.api.field_behavior) = REQUIRED,
  655. (google.api.resource_reference) = {
  656. type: "visionai.googleapis.com/Series"
  657. }
  658. ];
  659. }
  660. // Message for creating a Series.
  661. message CreateSeriesRequest {
  662. // Required. Value for parent.
  663. string parent = 1 [
  664. (google.api.field_behavior) = REQUIRED,
  665. (google.api.resource_reference) = {
  666. type: "visionai.googleapis.com/Cluster"
  667. }
  668. ];
  669. // Required. Id of the requesting object.
  670. string series_id = 2 [(google.api.field_behavior) = REQUIRED];
  671. // Required. The resource being created.
  672. Series series = 3 [(google.api.field_behavior) = REQUIRED];
  673. // Optional. An optional request ID to identify requests. Specify a unique request ID
  674. // so that if you must retry your request, the server will know to ignore
  675. // the request if it has already been completed. The server will guarantee
  676. // that for at least 60 minutes since the first request.
  677. //
  678. // For example, consider a situation where you make an initial request and the
  679. // request times out. If you make the request again with the same request ID,
  680. // the server can check if original operation with the same request ID was
  681. // received, and if so, will ignore the second request. This prevents clients
  682. // from accidentally creating duplicate commitments.
  683. //
  684. // The request ID must be a valid UUID with the exception that zero UUID is
  685. // not supported (00000000-0000-0000-0000-000000000000).
  686. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  687. }
  688. // Message for updating a Series.
  689. message UpdateSeriesRequest {
  690. // Required. Field mask is used to specify the fields to be overwritten in the Series
  691. // resource by the update. The fields specified in the update_mask are
  692. // relative to the resource, not the full request. A field will be overwritten
  693. // if it is in the mask. If the user does not provide a mask then all fields
  694. // will be overwritten.
  695. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
  696. // Required. The resource being updated
  697. Series series = 2 [(google.api.field_behavior) = REQUIRED];
  698. // Optional. An optional request ID to identify requests. Specify a unique request ID
  699. // so that if you must retry your request, the server will know to ignore
  700. // the request if it has already been completed. The server will guarantee
  701. // that for at least 60 minutes since the first request.
  702. //
  703. // For example, consider a situation where you make an initial request and the
  704. // request times out. If you make the request again with the same request ID,
  705. // the server can check if original operation with the same request ID was
  706. // received, and if so, will ignore the second request. This prevents clients
  707. // from accidentally creating duplicate commitments.
  708. //
  709. // The request ID must be a valid UUID with the exception that zero UUID is
  710. // not supported (00000000-0000-0000-0000-000000000000).
  711. string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
  712. }
  713. // Message for deleting a Series.
  714. message DeleteSeriesRequest {
  715. // Required. Name of the resource.
  716. string name = 1 [
  717. (google.api.field_behavior) = REQUIRED,
  718. (google.api.resource_reference) = {
  719. type: "visionai.googleapis.com/Series"
  720. }
  721. ];
  722. // Optional. An optional request ID to identify requests. Specify a unique request ID
  723. // so that if you must retry your request, the server will know to ignore
  724. // the request if it has already been completed. The server will guarantee
  725. // that for at least 60 minutes after the first request.
  726. //
  727. // For example, consider a situation where you make an initial request and the
  728. // request times out. If you make the request again with the same request ID,
  729. // the server can check if original operation with the same request ID was
  730. // received, and if so, will ignore the second request. This prevents clients
  731. // from accidentally creating duplicate commitments.
  732. //
  733. // The request ID must be a valid UUID with the exception that zero UUID is
  734. // not supported (00000000-0000-0000-0000-000000000000).
  735. string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
  736. }
  737. // Message for materializing a channel.
  738. message MaterializeChannelRequest {
  739. // Required. Value for parent.
  740. string parent = 1 [
  741. (google.api.field_behavior) = REQUIRED,
  742. (google.api.resource_reference) = {
  743. type: "visionai.googleapis.com/Cluster"
  744. }
  745. ];
  746. // Required. Id of the channel.
  747. string channel_id = 2 [(google.api.field_behavior) = REQUIRED];
  748. // Required. The resource being created.
  749. Channel channel = 3 [(google.api.field_behavior) = REQUIRED];
  750. // Optional. An optional request ID to identify requests. Specify a unique request ID
  751. // so that if you must retry your request, the server will know to ignore
  752. // the request if it has already been completed. The server will guarantee
  753. // that for at least 60 minutes since the first request.
  754. //
  755. // For example, consider a situation where you make an initial request and the
  756. // request times out. If you make the request again with the same request ID,
  757. // the server can check if original operation with the same request ID was
  758. // received, and if so, will ignore the second request. This prevents clients
  759. // from accidentally creating duplicate commitments.
  760. //
  761. // The request ID must be a valid UUID with the exception that zero UUID is
  762. // not supported (00000000-0000-0000-0000-000000000000).
  763. string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
  764. }