123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872 |
- // Copyright 2022 Google LLC
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- syntax = "proto3";
- package google.cloud.visionai.v1alpha1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/visionai/v1alpha1/common.proto";
- import "google/cloud/visionai/v1alpha1/streams_resources.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.VisionAI.V1Alpha1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/visionai/v1alpha1;visionai";
- option java_multiple_files = true;
- option java_outer_classname = "StreamsServiceProto";
- option java_package = "com.google.cloud.visionai.v1alpha1";
- option php_namespace = "Google\\Cloud\\VisionAI\\V1alpha1";
- option ruby_package = "Google::Cloud::VisionAI::V1alpha1";
- // Service describing handlers for resources.
- // Vision API and Vision AI API are two independent APIs developed by the same
- // team. Vision API is for people to annotate their image while Vision AI is an
- // e2e solution for customer to build their own computer vision application.
- service StreamsService {
- option (google.api.default_host) = "visionai.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
- // Lists Clusters in a given project and location.
- rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*}/clusters"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Cluster.
- rpc GetCluster(GetClusterRequest) returns (Cluster) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/clusters/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Cluster in a given project and location.
- rpc CreateCluster(CreateClusterRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/clusters"
- body: "cluster"
- };
- option (google.api.method_signature) = "parent,cluster,cluster_id";
- option (google.longrunning.operation_info) = {
- response_type: "Cluster"
- metadata_type: "OperationMetadata"
- };
- }
- // Updates the parameters of a single Cluster.
- rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{cluster.name=projects/*/locations/*/clusters/*}"
- body: "cluster"
- };
- option (google.api.method_signature) = "cluster,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Cluster"
- metadata_type: "OperationMetadata"
- };
- }
- // Deletes a single Cluster.
- rpc DeleteCluster(DeleteClusterRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Lists Streams in a given project and location.
- rpc ListStreams(ListStreamsRequest) returns (ListStreamsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/streams"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Stream.
- rpc GetStream(GetStreamRequest) returns (Stream) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/streams/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Stream in a given project and location.
- rpc CreateStream(CreateStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/streams"
- body: "stream"
- };
- option (google.api.method_signature) = "parent,stream,stream_id";
- option (google.longrunning.operation_info) = {
- response_type: "Stream"
- metadata_type: "OperationMetadata"
- };
- }
- // Updates the parameters of a single Stream.
- rpc UpdateStream(UpdateStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{stream.name=projects/*/locations/*/clusters/*/streams/*}"
- body: "stream"
- };
- option (google.api.method_signature) = "stream,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Stream"
- metadata_type: "OperationMetadata"
- };
- }
- // Deletes a single Stream.
- rpc DeleteStream(DeleteStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/streams/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Generate the JWT auth token required to get the stream HLS contents.
- rpc GenerateStreamHlsToken(GenerateStreamHlsTokenRequest) returns (GenerateStreamHlsTokenResponse) {
- option (google.api.http) = {
- post: "/v1alpha1/{stream=projects/*/locations/*/clusters/*/streams/*}:generateStreamHlsToken"
- body: "*"
- };
- option (google.api.method_signature) = "stream";
- }
- // Lists Events in a given project and location.
- rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/events"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Event.
- rpc GetEvent(GetEventRequest) returns (Event) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/events/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Event in a given project and location.
- rpc CreateEvent(CreateEventRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/events"
- body: "event"
- };
- option (google.api.method_signature) = "parent,event,event_id";
- option (google.longrunning.operation_info) = {
- response_type: "Event"
- metadata_type: "OperationMetadata"
- };
- }
- // Updates the parameters of a single Event.
- rpc UpdateEvent(UpdateEventRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{event.name=projects/*/locations/*/clusters/*/events/*}"
- body: "event"
- };
- option (google.api.method_signature) = "event,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Event"
- metadata_type: "OperationMetadata"
- };
- }
- // Deletes a single Event.
- rpc DeleteEvent(DeleteEventRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/events/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Lists Series in a given project and location.
- rpc ListSeries(ListSeriesRequest) returns (ListSeriesResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/series"
- };
- option (google.api.method_signature) = "parent";
- }
- // Gets details of a single Series.
- rpc GetSeries(GetSeriesRequest) returns (Series) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/clusters/*/series/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Creates a new Series in a given project and location.
- rpc CreateSeries(CreateSeriesRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/series"
- body: "series"
- };
- option (google.api.method_signature) = "parent,series,series_id";
- option (google.longrunning.operation_info) = {
- response_type: "Series"
- metadata_type: "OperationMetadata"
- };
- }
- // Updates the parameters of a single Event.
- rpc UpdateSeries(UpdateSeriesRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{series.name=projects/*/locations/*/clusters/*/series/*}"
- body: "series"
- };
- option (google.api.method_signature) = "series,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Series"
- metadata_type: "OperationMetadata"
- };
- }
- // Deletes a single Series.
- rpc DeleteSeries(DeleteSeriesRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/clusters/*/series/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Materialize a channel.
- rpc MaterializeChannel(MaterializeChannelRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/clusters/*}/channels"
- body: "channel"
- };
- option (google.api.method_signature) = "parent,channel,channel_id";
- option (google.longrunning.operation_info) = {
- response_type: "Channel"
- metadata_type: "OperationMetadata"
- };
- }
- }
- // Message for requesting list of Clusters.
- message ListClustersRequest {
- // Required. Parent value for ListClustersRequest.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
- // Requested page size. Server may return fewer items than requested.
- // If unspecified, server will pick an appropriate default.
- int32 page_size = 2;
- // A token identifying a page of results the server should return.
- string page_token = 3;
- // Filtering results.
- string filter = 4;
- // Hint for how to order the results.
- string order_by = 5;
- }
- // Message for response to listing Clusters.
- message ListClustersResponse {
- // The list of Cluster.
- repeated Cluster clusters = 1;
- // A token identifying a page of results the server should return.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- // Message for getting a Cluster.
- message GetClusterRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- }
- // Message for creating a Cluster.
- message CreateClusterRequest {
- // Required. Value for parent.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Required. Id of the requesting object.
- string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being created.
- Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for updating a Cluster.
- message UpdateClusterRequest {
- // Required. Field mask is used to specify the fields to be overwritten in the
- // Cluster resource by the update.
- // The fields specified in the update_mask are relative to the resource, not
- // the full request. A field will be overwritten if it is in the mask. If the
- // user does not provide a mask then all fields will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being updated
- Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for deleting a Cluster.
- message DeleteClusterRequest {
- // Required. Name of the resource
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for requesting list of Streams.
- message ListStreamsRequest {
- // Required. Parent value for ListStreamsRequest.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Requested page size. Server may return fewer items than requested.
- // If unspecified, server will pick an appropriate default.
- int32 page_size = 2;
- // A token identifying a page of results the server should return.
- string page_token = 3;
- // Filtering results.
- string filter = 4;
- // Hint for how to order the results.
- string order_by = 5;
- }
- // Message for response to listing Streams.
- message ListStreamsResponse {
- // The list of Stream.
- repeated Stream streams = 1;
- // A token identifying a page of results the server should return.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- // Message for getting a Stream.
- message GetStreamRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Stream"
- }
- ];
- }
- // Message for creating a Stream.
- message CreateStreamRequest {
- // Required. Value for parent.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Required. Id of the requesting object.
- string stream_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being created.
- Stream stream = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for updating a Stream.
- message UpdateStreamRequest {
- // Required. Field mask is used to specify the fields to be overwritten in the
- // Stream resource by the update.
- // The fields specified in the update_mask are relative to the resource, not
- // the full request. A field will be overwritten if it is in the mask. If the
- // user does not provide a mask then all fields will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being updated.
- Stream stream = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for deleting a Stream.
- message DeleteStreamRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Stream"
- }
- ];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for the response of GetStreamThumbnail. The empty response message
- // indicates the thumbnail image has been uploaded to GCS successfully.
- message GetStreamThumbnailResponse {
- }
- // Request message for getting the auth token to access the stream HLS contents.
- message GenerateStreamHlsTokenRequest {
- // Required. The name of the stream.
- string stream = 1 [(google.api.field_behavior) = REQUIRED];
- }
- // Response message for GenerateStreamHlsToken.
- message GenerateStreamHlsTokenResponse {
- // The generated JWT token.
- //
- // The caller should insert this token to the authorization header of the HTTP
- // requests to get the HLS playlist manifest and the video chunks.
- // eg: curl -H "Authorization: Bearer $TOKEN"
- // https://domain.com/test-stream.playback/master.m3u8
- string token = 1;
- // The expiration time of the token.
- google.protobuf.Timestamp expiration_time = 2;
- }
- // Message for requesting list of Events.
- message ListEventsRequest {
- // Required. Parent value for ListEventsRequest.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Requested page size. Server may return fewer items than requested.
- // If unspecified, server will pick an appropriate default.
- int32 page_size = 2;
- // A token identifying a page of results the server should return.
- string page_token = 3;
- // Filtering results.
- string filter = 4;
- // Hint for how to order the results.
- string order_by = 5;
- }
- // Message for response to listing Events.
- message ListEventsResponse {
- // The list of Event.
- repeated Event events = 1;
- // A token identifying a page of results the server should return.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- // Message for getting a Event.
- message GetEventRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Event"
- }
- ];
- }
- // Message for creating a Event.
- message CreateEventRequest {
- // Required. Value for parent.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Required. Id of the requesting object.
- string event_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being created.
- Event event = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for updating a Event.
- message UpdateEventRequest {
- // Required. Field mask is used to specify the fields to be overwritten in the
- // Event resource by the update.
- // The fields specified in the update_mask are relative to the resource, not
- // the full request. A field will be overwritten if it is in the mask. If the
- // user does not provide a mask then all fields will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being updated.
- Event event = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for deleting a Event.
- message DeleteEventRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Event"
- }
- ];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for requesting list of Series.
- message ListSeriesRequest {
- // Required. Parent value for ListSeriesRequest.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Requested page size. Server may return fewer items than requested.
- // If unspecified, server will pick an appropriate default.
- int32 page_size = 2;
- // A token identifying a page of results the server should return.
- string page_token = 3;
- // Filtering results.
- string filter = 4;
- // Hint for how to order the results.
- string order_by = 5;
- }
- // Message for response to listing Series.
- message ListSeriesResponse {
- // The list of Series.
- repeated Series series = 1;
- // A token identifying a page of results the server should return.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- // Message for getting a Series.
- message GetSeriesRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Series"
- }
- ];
- }
- // Message for creating a Series.
- message CreateSeriesRequest {
- // Required. Value for parent.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Required. Id of the requesting object.
- string series_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being created.
- Series series = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for updating a Series.
- message UpdateSeriesRequest {
- // Required. Field mask is used to specify the fields to be overwritten in the Series
- // resource by the update. The fields specified in the update_mask are
- // relative to the resource, not the full request. A field will be overwritten
- // if it is in the mask. If the user does not provide a mask then all fields
- // will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being updated
- Series series = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for deleting a Series.
- message DeleteSeriesRequest {
- // Required. Name of the resource.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Series"
- }
- ];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // Message for materializing a channel.
- message MaterializeChannelRequest {
- // Required. Value for parent.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Cluster"
- }
- ];
- // Required. Id of the channel.
- string channel_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The resource being created.
- Channel channel = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. An optional request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
|