123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692 |
- 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/longrunning/operations.proto";
- import "google/protobuf/any.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/struct.proto";
- import "google/protobuf/timestamp.proto";
- import "google/rpc/status.proto";
- import "google/type/datetime.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 = "WarehouseProto";
- option java_package = "com.google.cloud.visionai.v1alpha1";
- option php_namespace = "Google\\Cloud\\VisionAI\\V1alpha1";
- option ruby_package = "Google::Cloud::VisionAI::V1alpha1";
- service Warehouse {
- option (google.api.default_host) = "visionai.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc CreateAsset(CreateAssetRequest) returns (Asset) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/assets"
- body: "asset"
- };
- option (google.api.method_signature) = "parent,asset,asset_id";
- }
-
- rpc UpdateAsset(UpdateAssetRequest) returns (Asset) {
- option (google.api.http) = {
- patch: "/v1alpha1/{asset.name=projects/*/locations/*/corpora/*/assets/*}"
- body: "asset"
- };
- option (google.api.method_signature) = "asset,update_mask";
- }
-
- rpc GetAsset(GetAssetRequest) returns (Asset) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListAssets(ListAssetsRequest) returns (ListAssetsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/assets"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc DeleteAsset(DeleteAssetRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "DeleteAssetMetadata"
- };
- }
-
- rpc CreateCorpus(CreateCorpusRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/corpora"
- body: "corpus"
- };
- option (google.api.method_signature) = "parent,corpus";
- option (google.longrunning.operation_info) = {
- response_type: "Corpus"
- metadata_type: "CreateCorpusMetadata"
- };
- }
-
- rpc GetCorpus(GetCorpusRequest) returns (Corpus) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/corpora/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc UpdateCorpus(UpdateCorpusRequest) returns (Corpus) {
- option (google.api.http) = {
- patch: "/v1alpha1/{corpus.name=projects/*/locations/*/corpora/*}"
- body: "corpus"
- };
- option (google.api.method_signature) = "corpus,update_mask";
- }
-
- rpc ListCorpora(ListCorporaRequest) returns (ListCorporaResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*}/corpora"
- };
- option (google.api.method_signature) = "parent";
- }
-
-
- rpc DeleteCorpus(DeleteCorpusRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/corpora/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateDataSchema(CreateDataSchemaRequest) returns (DataSchema) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/dataSchemas"
- body: "data_schema"
- };
- option (google.api.method_signature) = "parent,data_schema";
- }
-
- rpc UpdateDataSchema(UpdateDataSchemaRequest) returns (DataSchema) {
- option (google.api.http) = {
- patch: "/v1alpha1/{data_schema.name=projects/*/locations/*/corpora/*/dataSchemas/*}"
- body: "data_schema"
- };
- option (google.api.method_signature) = "data_schema,update_mask";
- }
-
- rpc GetDataSchema(GetDataSchemaRequest) returns (DataSchema) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/corpora/*/dataSchemas/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc DeleteDataSchema(DeleteDataSchemaRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/corpora/*/dataSchemas/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListDataSchemas(ListDataSchemasRequest) returns (ListDataSchemasResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/dataSchemas"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc CreateAnnotation(CreateAnnotationRequest) returns (Annotation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/corpora/*/assets/*}/annotations"
- body: "annotation"
- };
- option (google.api.method_signature) = "parent,annotation,annotation_id";
- }
-
- rpc GetAnnotation(GetAnnotationRequest) returns (Annotation) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*/annotations/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/corpora/*/assets/*}/annotations"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc UpdateAnnotation(UpdateAnnotationRequest) returns (Annotation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{annotation.name=projects/*/locations/*/corpora/*/assets/*/annotations/*}"
- body: "annotation"
- };
- option (google.api.method_signature) = "annotation,update_mask";
- }
-
- rpc DeleteAnnotation(DeleteAnnotationRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*/annotations/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
- rpc IngestAsset(stream IngestAssetRequest) returns (stream IngestAssetResponse) {
- }
- // Generates clips for downloading. The api takes in a time range, and
- // generates a clip of the first content available after start_time and
- // before end_time, which may overflow beyond these bounds.
- // Returned clips are truncated if the total size of the clips are larger
- // than 100MB.
- rpc ClipAsset(ClipAssetRequest) returns (ClipAssetResponse) {
- option (google.api.http) = {
- post: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*}:clip"
- body: "*"
- };
- }
-
-
-
- rpc GenerateHlsUri(GenerateHlsUriRequest) returns (GenerateHlsUriResponse) {
- option (google.api.http) = {
- post: "/v1alpha1/{name=projects/*/locations/*/corpora/*/assets/*}:generateHlsUri"
- body: "*"
- };
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc CreateSearchConfig(CreateSearchConfigRequest) returns (SearchConfig) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/searchConfigs"
- body: "search_config"
- };
- option (google.api.method_signature) = "parent,search_config,search_config_id";
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc UpdateSearchConfig(UpdateSearchConfigRequest) returns (SearchConfig) {
- option (google.api.http) = {
- patch: "/v1alpha1/{search_config.name=projects/*/locations/*/corpora/*/searchConfigs/*}"
- body: "search_config"
- };
- option (google.api.method_signature) = "search_config,update_mask";
- }
-
- rpc GetSearchConfig(GetSearchConfigRequest) returns (SearchConfig) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/corpora/*/searchConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
- rpc DeleteSearchConfig(DeleteSearchConfigRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/corpora/*/searchConfigs/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc ListSearchConfigs(ListSearchConfigsRequest) returns (ListSearchConfigsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/corpora/*}/searchConfigs"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc SearchAssets(SearchAssetsRequest) returns (SearchAssetsResponse) {
- option (google.api.http) = {
- post: "/v1alpha1/{corpus=projects/*/locations/*/corpora/*}:searchAssets"
- body: "*"
- };
- }
- }
- enum FacetBucketType {
-
- FACET_BUCKET_TYPE_UNSPECIFIED = 0;
-
- FACET_BUCKET_TYPE_VALUE = 1;
-
- FACET_BUCKET_TYPE_DATETIME = 2;
-
- FACET_BUCKET_TYPE_FIXED_RANGE = 3;
-
- FACET_BUCKET_TYPE_CUSTOM_RANGE = 4;
- }
- message CreateAssetRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Corpus"
- }
- ];
-
- Asset asset = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- optional string asset_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message GetAssetRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
- }
- message ListAssetsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "visionai.googleapis.com/Asset"
- }
- ];
-
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
- }
- message ListAssetsResponse {
-
- repeated Asset assets = 1;
-
-
- string next_page_token = 2;
- }
- message UpdateAssetRequest {
-
-
-
-
-
- Asset asset = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteAssetRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
- }
- message Asset {
- option (google.api.resource) = {
- type: "visionai.googleapis.com/Asset"
- pattern: "projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}"
- };
-
-
-
- string name = 1;
-
-
-
- google.protobuf.Duration ttl = 2;
- }
- message CreateCorpusRequest {
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- Corpus corpus = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message Corpus {
- option (google.api.resource) = {
- type: "visionai.googleapis.com/Corpus"
- pattern: "projects/{project_number}/locations/{location}/corpora/{corpus}"
- };
-
-
-
- string name = 1;
-
-
- string display_name = 2 [(google.api.field_behavior) = REQUIRED];
-
- string description = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- google.protobuf.Duration default_ttl = 5 [(google.api.field_behavior) = REQUIRED];
- }
- message GetCorpusRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Corpus"
- }
- ];
- }
- message UpdateCorpusRequest {
-
- Corpus corpus = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message ListCorporaRequest {
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
- }
- message ListCorporaResponse {
-
- repeated Corpus corpora = 1;
-
-
- string next_page_token = 2;
- }
- message DeleteCorpusRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Corpus"
- }
- ];
- }
- message CreateDataSchemaRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Corpus"
- }
- ];
-
- DataSchema data_schema = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DataSchema {
- option (google.api.resource) = {
- type: "visionai.googleapis.com/DataSchema"
- pattern: "projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema}"
- };
-
-
-
- string name = 1;
-
-
-
-
- string key = 2 [(google.api.field_behavior) = REQUIRED];
-
- DataSchemaDetails schema_details = 3;
- }
- message DataSchemaDetails {
-
- message ProtoAnyConfig {
-
- string type_uri = 1;
- }
-
- message SearchStrategy {
-
- enum SearchStrategyType {
-
- NO_SEARCH = 0;
-
-
- EXACT_SEARCH = 1;
-
-
- SMART_SEARCH = 2;
- }
-
-
-
-
-
- SearchStrategyType search_strategy_type = 1;
- }
-
- enum DataType {
-
- DATA_TYPE_UNSPECIFIED = 0;
-
-
-
-
-
- INTEGER = 1;
-
-
-
-
-
- FLOAT = 2;
-
-
-
-
-
- STRING = 3;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DATETIME = 5;
-
-
-
-
-
- GEO_COORDINATE = 7;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PROTO_ANY = 8;
-
-
-
-
- BOOLEAN = 9;
- }
-
- enum Granularity {
-
- GRANULARITY_UNSPECIFIED = 0;
-
- GRANULARITY_ASSET_LEVEL = 1;
-
- GRANULARITY_PARTITION_LEVEL = 2;
- }
-
- DataType type = 1;
-
- ProtoAnyConfig proto_any_config = 6;
-
- Granularity granularity = 5;
-
- SearchStrategy search_strategy = 7;
- }
- message UpdateDataSchemaRequest {
-
-
-
- DataSchema data_schema = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message GetDataSchemaRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/DataSchema"
- }
- ];
- }
- message DeleteDataSchemaRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/DataSchema"
- }
- ];
- }
- message ListDataSchemasRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "visionai.googleapis.com/DataSchema"
- }
- ];
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
- }
- message ListDataSchemasResponse {
-
- repeated DataSchema data_schemas = 1;
-
-
- string next_page_token = 2;
- }
- message CreateAnnotationRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
-
- Annotation annotation = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- optional string annotation_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message Annotation {
- option (google.api.resource) = {
- type: "visionai.googleapis.com/Annotation"
- pattern: "projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}"
- };
-
-
-
- string name = 1;
-
- UserSpecifiedAnnotation user_specified_annotation = 2;
- }
- message UserSpecifiedAnnotation {
-
- string key = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- AnnotationValue value = 2;
-
- Partition partition = 3;
- }
- message GeoCoordinate {
-
- double latitude = 1;
-
- double longitude = 2;
- }
- message AnnotationValue {
- oneof value {
-
- int64 int_value = 1;
-
- float float_value = 2;
-
- string str_value = 3;
-
- string datetime_value = 5;
-
- GeoCoordinate geo_coordinate = 7;
-
- google.protobuf.Any proto_any_value = 8;
-
- bool bool_value = 9;
-
- google.protobuf.Struct customized_struct_data_value = 10;
- }
- }
- message ListAnnotationsRequest {
-
-
-
- string parent = 1 [(google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }];
-
-
-
- int32 page_size = 2;
-
-
-
-
-
- string page_token = 3;
-
-
-
-
-
-
-
-
-
-
- string filter = 4;
- }
- message ListAnnotationsResponse {
-
- repeated Annotation annotations = 1;
-
-
- string next_page_token = 2;
- }
- message GetAnnotationRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Annotation"
- }
- ];
- }
- message UpdateAnnotationRequest {
-
-
-
-
- Annotation annotation = 1 [(google.api.field_behavior) = REQUIRED];
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message DeleteAnnotationRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Annotation"
- }
- ];
- }
- message CreateSearchConfigRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "visionai.googleapis.com/SearchConfig"
- }
- ];
-
- SearchConfig search_config = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- string search_config_id = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateSearchConfigRequest {
-
-
-
-
-
- SearchConfig search_config = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message GetSearchConfigRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/SearchConfig"
- }
- ];
- }
- message DeleteSearchConfigRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/SearchConfig"
- }
- ];
- }
- message ListSearchConfigsRequest {
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "visionai.googleapis.com/SearchConfig"
- }
- ];
-
-
-
- int32 page_size = 2;
-
-
-
-
-
-
- string page_token = 3;
- }
- message ListSearchConfigsResponse {
-
- repeated SearchConfig search_configs = 1;
-
-
- string next_page_token = 2;
- }
- message SearchConfig {
- option (google.api.resource) = {
- type: "visionai.googleapis.com/SearchConfig"
- pattern: "projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}"
- };
-
-
-
-
-
-
- string name = 1;
-
- FacetProperty facet_property = 2;
-
- SearchCriteriaProperty search_criteria_property = 3;
- }
- message FacetProperty {
-
-
-
-
-
-
-
- message FixedRangeBucketSpec {
-
-
- FacetValue bucket_start = 1;
-
-
- FacetValue bucket_granularity = 2;
-
- int32 bucket_count = 3;
- }
-
-
-
-
-
-
-
-
- message CustomRangeBucketSpec {
-
- repeated FacetValue endpoints = 1;
- }
-
- message DateTimeBucketSpec {
-
- enum Granularity {
-
- GRANULARITY_UNSPECIFIED = 0;
-
- YEAR = 1;
-
- MONTH = 2;
-
- DAY = 3;
- }
-
- Granularity granularity = 1;
- }
- oneof range_facet_config {
-
- FixedRangeBucketSpec fixed_range_bucket_spec = 5;
-
- CustomRangeBucketSpec custom_range_bucket_spec = 6;
-
- DateTimeBucketSpec datetime_bucket_spec = 7;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string mapped_fields = 1;
-
- string display_name = 2;
-
-
-
-
- int64 result_size = 3;
-
- FacetBucketType bucket_type = 4;
- }
- message SearchCriteriaProperty {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string mapped_fields = 1;
- }
- message FacetValue {
- oneof value {
-
- string string_value = 1;
-
- int64 integer_value = 2;
-
- google.type.DateTime datetime_value = 3;
- }
- }
- message FacetBucket {
-
- message Range {
-
- FacetValue start = 1;
-
- FacetValue end = 2;
- }
-
-
-
- oneof bucket_value {
-
- FacetValue value = 2;
-
- Range range = 4;
- }
-
-
- bool selected = 3;
- }
- message FacetGroup {
-
- string facet_id = 1;
-
- string display_name = 2;
-
-
- repeated FacetBucket buckets = 3;
-
- FacetBucketType bucket_type = 4;
-
-
-
-
-
- bool fetch_matched_annotations = 5;
- }
- message IngestAssetRequest {
-
- message Config {
-
- message VideoType {
-
- enum ContainerFormat {
-
- CONTAINER_FORMAT_UNSPECIFIED = 0;
-
- CONTAINER_FORMAT_MP4 = 1;
- }
-
- ContainerFormat container_format = 1;
- }
- oneof data_type {
-
- VideoType video_type = 2;
- }
-
- string asset = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
- }
-
- message TimeIndexedData {
-
- bytes data = 1;
-
- Partition.TemporalPartition temporal_partition = 2;
- }
- oneof streaming_request {
-
-
-
- Config config = 1;
-
- TimeIndexedData time_indexed_data = 2;
- }
- }
- message IngestAssetResponse {
-
- Partition.TemporalPartition successfully_ingested_partition = 1;
- }
- message ClipAssetRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
-
- Partition.TemporalPartition temporal_partition = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ClipAssetResponse {
-
- message TimeIndexedUri {
-
- Partition.TemporalPartition temporal_partition = 1;
-
- string uri = 2;
- }
-
-
- repeated TimeIndexedUri time_indexed_uris = 1;
- }
- message GenerateHlsUriRequest {
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Asset"
- }
- ];
-
- repeated Partition.TemporalPartition temporal_partitions = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message GenerateHlsUriResponse {
-
-
- string uri = 1;
-
-
- repeated Partition.TemporalPartition temporal_partitions = 2;
- }
- message SearchAssetsRequest {
-
-
- oneof sort_spec {
-
- SchemaKeySortingStrategy schema_key_sorting_strategy = 9;
- }
-
-
- string corpus = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "visionai.googleapis.com/Corpus"
- }
- ];
-
-
- int32 page_size = 2;
-
-
- string page_token = 3;
-
-
-
-
-
- DateTimeRangeArray content_time_ranges = 5;
-
- repeated Criteria criteria = 4;
-
-
-
- repeated FacetGroup facet_selections = 6;
-
-
-
-
- repeated string result_annotation_keys = 8;
- }
- message SchemaKeySortingStrategy {
-
- message Option {
-
-
-
-
-
- enum AggregateMethod {
-
-
- AGGREGATE_METHOD_UNSPECIFIED = 0;
-
- AGGREGATE_METHOD_LARGEST = 1;
-
- AGGREGATE_METHOD_SMALLEST = 2;
- }
-
- string data_schema_key = 1;
-
-
- bool sort_decreasing = 2;
-
- optional AggregateMethod aggregate_method = 3;
- }
-
- repeated Option options = 1;
- }
- message AnnotationMatchingResult {
-
-
- Criteria criteria = 1;
-
- repeated Annotation matched_annotations = 2;
-
-
-
- google.rpc.Status status = 3;
- }
- message SearchResultItem {
-
-
-
- string asset = 1;
-
-
- repeated Partition.TemporalPartition segments = 2 [deprecated = true];
-
- Partition.TemporalPartition segment = 5;
-
-
- repeated Annotation requested_annotations = 3;
-
-
-
- repeated AnnotationMatchingResult annotation_matching_results = 4;
- }
- message SearchAssetsResponse {
-
- repeated SearchResultItem search_result_items = 1;
-
- string next_page_token = 2;
-
-
- repeated FacetGroup facet_results = 3;
- }
- message IntRange {
-
- optional int64 start = 1;
-
- optional int64 end = 2;
- }
- message FloatRange {
-
- optional float start = 1;
-
- optional float end = 2;
- }
- message StringArray {
-
- repeated string txt_values = 1;
- }
- message IntRangeArray {
-
- repeated IntRange int_ranges = 1;
- }
- message FloatRangeArray {
-
- repeated FloatRange float_ranges = 1;
- }
- message DateTimeRange {
-
- google.type.DateTime start = 1;
-
- google.type.DateTime end = 2;
- }
- message DateTimeRangeArray {
-
- repeated DateTimeRange date_time_ranges = 1;
- }
- message CircleArea {
-
- double latitude = 1;
-
- double longitude = 2;
-
- double radius_meter = 3;
- }
- message GeoLocationArray {
-
- repeated CircleArea circle_areas = 1;
- }
- message BoolValue {
- bool value = 1;
- }
- message Criteria {
- oneof value {
-
- StringArray text_array = 2;
-
- IntRangeArray int_range_array = 3;
-
- FloatRangeArray float_range_array = 4;
-
- DateTimeRangeArray date_time_range_array = 5;
-
- GeoLocationArray geo_location_array = 6;
-
- BoolValue bool_value = 7;
- }
-
- string field = 1;
-
-
-
-
-
-
-
- bool fetch_matched_annotations = 8;
- }
- message Partition {
-
- message TemporalPartition {
-
- google.protobuf.Timestamp start_time = 1;
-
- google.protobuf.Timestamp end_time = 2;
- }
-
- message SpatialPartition {
-
- optional int64 x_min = 1;
-
- optional int64 y_min = 2;
-
- optional int64 x_max = 3;
-
- optional int64 y_max = 4;
- }
-
- TemporalPartition temporal_partition = 1;
-
- SpatialPartition spatial_partition = 2;
- }
- message DeleteAssetMetadata {}
- message CreateCorpusMetadata {}
|