UNPKG

@google-cloud/datastore

Version:
1,326 lines (1,325 loc) 143 kB
{ "nested": { "google": { "nested": { "datastore": { "nested": { "admin": { "nested": { "v1": { "options": { "csharp_namespace": "Google.Cloud.Datastore.Admin.V1", "go_package": "cloud.google.com/go/datastore/admin/apiv1/adminpb;adminpb", "java_multiple_files": true, "java_outer_classname": "MigrationProto", "java_package": "com.google.datastore.admin.v1", "php_namespace": "Google\\Cloud\\Datastore\\Admin\\V1", "ruby_package": "Google::Cloud::Datastore::Admin::V1" }, "nested": { "DatastoreAdmin": { "options": { "(google.api.default_host)": "datastore.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastore" }, "methods": { "ExportEntities": { "requestType": "ExportEntitiesRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/projects/{project_id}:export", "(google.api.http).body": "*", "(google.api.method_signature)": "project_id,labels,entity_filter,output_url_prefix", "(google.longrunning.operation_info).response_type": "ExportEntitiesResponse", "(google.longrunning.operation_info).metadata_type": "ExportEntitiesMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}:export", "body": "*" } }, { "(google.api.method_signature)": "project_id,labels,entity_filter,output_url_prefix" }, { "(google.longrunning.operation_info)": { "response_type": "ExportEntitiesResponse", "metadata_type": "ExportEntitiesMetadata" } } ] }, "ImportEntities": { "requestType": "ImportEntitiesRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/projects/{project_id}:import", "(google.api.http).body": "*", "(google.api.method_signature)": "project_id,labels,input_url,entity_filter", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "ImportEntitiesMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}:import", "body": "*" } }, { "(google.api.method_signature)": "project_id,labels,input_url,entity_filter" }, { "(google.longrunning.operation_info)": { "response_type": "google.protobuf.Empty", "metadata_type": "ImportEntitiesMetadata" } } ] }, "CreateIndex": { "requestType": "CreateIndexRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/projects/{project_id}/indexes", "(google.api.http).body": "index", "(google.longrunning.operation_info).response_type": "Index", "(google.longrunning.operation_info).metadata_type": "IndexOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}/indexes", "body": "index" } }, { "(google.longrunning.operation_info)": { "response_type": "Index", "metadata_type": "IndexOperationMetadata" } } ] }, "DeleteIndex": { "requestType": "DeleteIndexRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1/projects/{project_id}/indexes/{index_id}", "(google.longrunning.operation_info).response_type": "Index", "(google.longrunning.operation_info).metadata_type": "IndexOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v1/projects/{project_id}/indexes/{index_id}" } }, { "(google.longrunning.operation_info)": { "response_type": "Index", "metadata_type": "IndexOperationMetadata" } } ] }, "GetIndex": { "requestType": "GetIndexRequest", "responseType": "Index", "options": { "(google.api.http).get": "/v1/projects/{project_id}/indexes/{index_id}" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/projects/{project_id}/indexes/{index_id}" } } ] }, "ListIndexes": { "requestType": "ListIndexesRequest", "responseType": "ListIndexesResponse", "options": { "(google.api.http).get": "/v1/projects/{project_id}/indexes" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/projects/{project_id}/indexes" } } ] } } }, "CommonMetadata": { "fields": { "startTime": { "type": "google.protobuf.Timestamp", "id": 1 }, "endTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "operationType": { "type": "OperationType", "id": 3 }, "labels": { "keyType": "string", "type": "string", "id": 4 }, "state": { "type": "State", "id": 5 } }, "nested": { "State": { "values": { "STATE_UNSPECIFIED": 0, "INITIALIZING": 1, "PROCESSING": 2, "CANCELLING": 3, "FINALIZING": 4, "SUCCESSFUL": 5, "FAILED": 6, "CANCELLED": 7 } } } }, "Progress": { "fields": { "workCompleted": { "type": "int64", "id": 1 }, "workEstimated": { "type": "int64", "id": 2 } } }, "ExportEntitiesRequest": { "fields": { "projectId": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "labels": { "keyType": "string", "type": "string", "id": 2 }, "entityFilter": { "type": "EntityFilter", "id": 3 }, "outputUrlPrefix": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "ImportEntitiesRequest": { "fields": { "projectId": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "labels": { "keyType": "string", "type": "string", "id": 2 }, "inputUrl": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "entityFilter": { "type": "EntityFilter", "id": 4 } } }, "ExportEntitiesResponse": { "fields": { "outputUrl": { "type": "string", "id": 1 } } }, "ExportEntitiesMetadata": { "fields": { "common": { "type": "CommonMetadata", "id": 1 }, "progressEntities": { "type": "Progress", "id": 2 }, "progressBytes": { "type": "Progress", "id": 3 }, "entityFilter": { "type": "EntityFilter", "id": 4 }, "outputUrlPrefix": { "type": "string", "id": 5 } } }, "ImportEntitiesMetadata": { "fields": { "common": { "type": "CommonMetadata", "id": 1 }, "progressEntities": { "type": "Progress", "id": 2 }, "progressBytes": { "type": "Progress", "id": 3 }, "entityFilter": { "type": "EntityFilter", "id": 4 }, "inputUrl": { "type": "string", "id": 5 } } }, "EntityFilter": { "fields": { "kinds": { "rule": "repeated", "type": "string", "id": 1 }, "namespaceIds": { "rule": "repeated", "type": "string", "id": 2 } } }, "CreateIndexRequest": { "fields": { "projectId": { "type": "string", "id": 1 }, "index": { "type": "Index", "id": 3 } } }, "DeleteIndexRequest": { "fields": { "projectId": { "type": "string", "id": 1 }, "indexId": { "type": "string", "id": 3 } } }, "GetIndexRequest": { "fields": { "projectId": { "type": "string", "id": 1 }, "indexId": { "type": "string", "id": 3 } } }, "ListIndexesRequest": { "fields": { "projectId": { "type": "string", "id": 1 }, "filter": { "type": "string", "id": 3 }, "pageSize": { "type": "int32", "id": 4 }, "pageToken": { "type": "string", "id": 5 } } }, "ListIndexesResponse": { "fields": { "indexes": { "rule": "repeated", "type": "Index", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "IndexOperationMetadata": { "fields": { "common": { "type": "CommonMetadata", "id": 1 }, "progressEntities": { "type": "Progress", "id": 2 }, "indexId": { "type": "string", "id": 3 } } }, "DatastoreFirestoreMigrationMetadata": { "fields": { "migrationState": { "type": "MigrationState", "id": 1 }, "migrationStep": { "type": "MigrationStep", "id": 2 } } }, "OperationType": { "values": { "OPERATION_TYPE_UNSPECIFIED": 0, "EXPORT_ENTITIES": 1, "IMPORT_ENTITIES": 2, "CREATE_INDEX": 3, "DELETE_INDEX": 4 } }, "Index": { "fields": { "projectId": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "indexId": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "kind": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "ancestor": { "type": "AncestorMode", "id": 5, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "properties": { "rule": "repeated", "type": "IndexedProperty", "id": 6, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "state": { "type": "State", "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { "AncestorMode": { "values": { "ANCESTOR_MODE_UNSPECIFIED": 0, "NONE": 1, "ALL_ANCESTORS": 2 } }, "Direction": { "values": { "DIRECTION_UNSPECIFIED": 0, "ASCENDING": 1, "DESCENDING": 2 } }, "IndexedProperty": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "direction": { "type": "Direction", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "State": { "values": { "STATE_UNSPECIFIED": 0, "CREATING": 1, "READY": 2, "DELETING": 3, "ERROR": 4 } } } }, "MigrationStateEvent": { "fields": { "state": { "type": "MigrationState", "id": 1 } } }, "MigrationProgressEvent": { "oneofs": { "stepDetails": { "oneof": [ "prepareStepDetails", "redirectWritesStepDetails" ] } }, "fields": { "step": { "type": "MigrationStep", "id": 1 }, "prepareStepDetails": { "type": "PrepareStepDetails", "id": 2 }, "redirectWritesStepDetails": { "type": "RedirectWritesStepDetails", "id": 3 } }, "nested": { "ConcurrencyMode": { "values": { "CONCURRENCY_MODE_UNSPECIFIED": 0, "PESSIMISTIC": 1, "OPTIMISTIC": 2, "OPTIMISTIC_WITH_ENTITY_GROUPS": 3 } }, "PrepareStepDetails": { "fields": { "concurrencyMode": { "type": "ConcurrencyMode", "id": 1 } } }, "RedirectWritesStepDetails": { "fields": { "concurrencyMode": { "type": "ConcurrencyMode", "id": 1 } } } } }, "MigrationState": { "values": { "MIGRATION_STATE_UNSPECIFIED": 0, "RUNNING": 1, "PAUSED": 2, "COMPLETE": 3 } }, "MigrationStep": { "values": { "MIGRATION_STEP_UNSPECIFIED": 0, "PREPARE": 6, "START": 1, "APPLY_WRITES_SYNCHRONOUSLY": 7, "COPY_AND_VERIFY": 2, "REDIRECT_EVENTUALLY_CONSISTENT_READS": 3, "REDIRECT_STRONGLY_CONSISTENT_READS": 4, "REDIRECT_WRITES": 5 } } } } } }, "v1": { "options": { "csharp_namespace": "Google.Cloud.Datastore.V1", "go_package": "cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb", "java_multiple_files": true, "java_outer_classname": "QueryProfileProto", "java_package": "com.google.datastore.v1", "php_namespace": "Google\\Cloud\\Datastore\\V1", "ruby_package": "Google::Cloud::Datastore::V1" }, "nested": { "AggregationResult": { "fields": { "aggregateProperties": { "keyType": "string", "type": "Value", "id": 2 } } }, "AggregationResultBatch": { "fields": { "aggregationResults": { "rule": "repeated", "type": "AggregationResult", "id": 1 }, "moreResults": { "type": "QueryResultBatch.MoreResultsType", "id": 2 }, "readTime": { "type": "google.protobuf.Timestamp", "id": 3 } } }, "PartitionId": { "fields": { "projectId": { "type": "string", "id": 2 }, "databaseId": { "type": "string", "id": 3 }, "namespaceId": { "type": "string", "id": 4 } } }, "Key": { "fields": { "partitionId": { "type": "PartitionId", "id": 1 }, "path": { "rule": "repeated", "type": "PathElement", "id": 2 } }, "nested": { "PathElement": { "oneofs": { "idType": { "oneof": [ "id", "name" ] } }, "fields": { "kind": { "type": "string", "id": 1 }, "id": { "type": "int64", "id": 2 }, "name": { "type": "string", "id": 3 } } } } }, "ArrayValue": { "fields": { "values": { "rule": "repeated", "type": "Value", "id": 1 } } }, "Value": { "oneofs": { "valueType": { "oneof": [ "nullValue", "booleanValue", "integerValue", "doubleValue", "timestampValue", "keyValue", "stringValue", "blobValue", "geoPointValue", "entityValue", "arrayValue" ] } }, "fields": { "nullValue": { "type": "google.protobuf.NullValue", "id": 11 }, "booleanValue": { "type": "bool", "id": 1 }, "integerValue": { "type": "int64", "id": 2 }, "doubleValue": { "type": "double", "id": 3 }, "timestampValue": { "type": "google.protobuf.Timestamp", "id": 10 }, "keyValue": { "type": "Key", "id": 5 }, "stringValue": { "type": "string", "id": 17 }, "blobValue": { "type": "bytes", "id": 18 }, "geoPointValue": { "type": "google.type.LatLng", "id": 8 }, "entityValue": { "type": "Entity", "id": 6 }, "arrayValue": { "type": "ArrayValue", "id": 9 }, "meaning": { "type": "int32", "id": 14 }, "excludeFromIndexes": { "type": "bool", "id": 19 } } }, "Entity": { "fields": { "key": { "type": "Key", "id": 1 }, "properties": { "keyType": "string", "type": "Value", "id": 3 } } }, "EntityResult": { "fields": { "entity": { "type": "Entity", "id": 1 }, "version": { "type": "int64", "id": 4 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 6 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 5 }, "cursor": { "type": "bytes", "id": 3 } }, "nested": { "ResultType": { "values": { "RESULT_TYPE_UNSPECIFIED": 0, "FULL": 1, "PROJECTION": 2, "KEY_ONLY": 3 } } } }, "Query": { "fields": { "projection": { "rule": "repeated", "type": "Projection", "id": 2 }, "kind": { "rule": "repeated", "type": "KindExpression", "id": 3 }, "filter": { "type": "Filter", "id": 4 }, "order": { "rule": "repeated", "type": "PropertyOrder", "id": 5 }, "distinctOn": { "rule": "repeated", "type": "PropertyReference", "id": 6 }, "startCursor": { "type": "bytes", "id": 7 }, "endCursor": { "type": "bytes", "id": 8 }, "offset": { "type": "int32", "id": 10 }, "limit": { "type": "google.protobuf.Int32Value", "id": 12 }, "findNearest": { "type": "FindNearest", "id": 13, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "AggregationQuery": { "oneofs": { "queryType": { "oneof": [ "nestedQuery" ] } }, "fields": { "nestedQuery": { "type": "Query", "id": 1 }, "aggregations": { "rule": "repeated", "type": "Aggregation", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "Aggregation": { "oneofs": { "operator": { "oneof": [ "count", "sum", "avg" ] } }, "fields": { "count": { "type": "Count", "id": 1 }, "sum": { "type": "Sum", "id": 2 }, "avg": { "type": "Avg", "id": 3 }, "alias": { "type": "string", "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "Count": { "fields": { "upTo": { "type": "google.protobuf.Int64Value", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "Sum": { "fields": { "property": { "type": "PropertyReference", "id": 1 } } }, "Avg": { "fields": { "property": { "type": "PropertyReference", "id": 1 } } } } } } }, "KindExpression": { "fields": { "name": { "type": "string", "id": 1 } } }, "PropertyReference": { "fields": { "name": { "type": "string", "id": 2 } } }, "Projection": { "fields": { "property": { "type": "PropertyReference", "id": 1 } } }, "PropertyOrder": { "fields": { "property": { "type": "PropertyReference", "id": 1 }, "direction": { "type": "Direction", "id": 2 } }, "nested": { "Direction": { "values": { "DIRECTION_UNSPECIFIED": 0, "ASCENDING": 1, "DESCENDING": 2 } } } }, "Filter": { "oneofs": { "filterType": { "oneof": [ "compositeFilter", "propertyFilter" ] } }, "fields": { "compositeFilter": { "type": "CompositeFilter", "id": 1 }, "propertyFilter": { "type": "PropertyFilter", "id": 2 } } }, "CompositeFilter": { "fields": { "op": { "type": "Operator", "id": 1 }, "filters": { "rule": "repeated", "type": "Filter", "id": 2 } }, "nested": { "Operator": { "values": { "OPERATOR_UNSPECIFIED": 0, "AND": 1, "OR": 2 } } } }, "PropertyFilter": { "fields": { "property": { "type": "PropertyReference", "id": 1 }, "op": { "type": "Operator", "id": 2 }, "value": { "type": "Value", "id": 3 } }, "nested": { "Operator": { "values": { "OPERATOR_UNSPECIFIED": 0, "LESS_THAN": 1, "LESS_THAN_OR_EQUAL": 2, "GREATER_THAN": 3, "GREATER_THAN_OR_EQUAL": 4, "EQUAL": 5, "IN": 6, "NOT_EQUAL": 9, "HAS_ANCESTOR": 11, "NOT_IN": 13 } } } }, "FindNearest": { "fields": { "vectorProperty": { "type": "PropertyReference", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "queryVector": { "type": "Value", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "distanceMeasure": { "type": "DistanceMeasure", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "limit": { "type": "google.protobuf.Int32Value", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "distanceResultProperty": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "distanceThreshold": { "type": "google.protobuf.DoubleValue", "id": 6, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "DistanceMeasure": { "values": { "DISTANCE_MEASURE_UNSPECIFIED": 0, "EUCLIDEAN": 1, "COSINE": 2, "DOT_PRODUCT": 3 } } } }, "GqlQuery": { "fields": { "queryString": { "type": "string", "id": 1 }, "allowLiterals": { "type": "bool", "id": 2 }, "namedBindings": { "keyType": "string", "type": "GqlQueryParameter", "id": 5 }, "positionalBindings": { "rule": "repeated", "type": "GqlQueryParameter", "id": 4 } } }, "GqlQueryParameter": { "oneofs": { "parameterType": { "oneof": [ "value", "cursor" ] } }, "fields": { "value": { "type": "Value", "id": 2 }, "cursor": { "type": "bytes", "id": 3 } } }, "QueryResultBatch": { "fields": { "skippedResults": { "type": "int32", "id": 6 }, "skippedCursor": { "type": "bytes", "id": 3 }, "entityResultType": { "type": "EntityResult.ResultType", "id": 1 }, "entityResults": { "rule": "repeated", "type": "EntityResult", "id": 2 }, "endCursor": { "type": "bytes", "id": 4 }, "moreResults": { "type": "MoreResultsType", "id": 5 }, "snapshotVersion": { "type": "int64", "id": 7 }, "readTime": { "type": "google.protobuf.Timestamp", "id": 8 } }, "nested": { "MoreResultsType": { "values": { "MORE_RESULTS_TYPE_UNSPECIFIED": 0, "NOT_FINISHED": 1, "MORE_RESULTS_AFTER_LIMIT": 2, "MORE_RESULTS_AFTER_CURSOR": 4, "NO_MORE_RESULTS": 3 } } } }, "Datastore": { "options": { "(google.api.default_host)": "datastore.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastore" }, "methods": { "Lookup": { "requestType": "LookupRequest", "responseType": "LookupResponse", "options": { "(google.api.http).post": "/v1/projects/{project_id}:lookup", "(google.api.http).body": "*", "(google.api.routing).routing_parameters.field": "database_id", "(google.api.method_signature)": "project_id,read_options,keys" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}:lookup", "body": "*" } }, { "(google.api.routing)": { "routing_parameters": [ { "field": "project_id" }, { "field": "database_id" } ] } }, { "(google.api.method_signature)": "project_id,read_options,keys" } ] }, "RunQuery": { "requestType": "RunQueryRequest", "responseType": "RunQueryResponse", "options": { "(google.api.http).post": "/v1/projects/{project_id}:runQuery", "(google.api.http).body": "*", "(google.api.routing).routing_parameters.field": "database_id" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}:runQuery", "body": "*" } }, { "(google.api.routing)": { "routing_parameters": [ { "field": "project_id" }, { "field": "database_id" } ] } } ] }, "RunAggregationQuery": { "requestType": "RunAggregationQueryRequest", "responseType": "RunAggregationQueryResponse", "options": { "(google.api.http).post": "/v1/projects/{project_id}:runAggregationQuery", "(google.api.http).body": "*", "(google.api.routing).routing_parameters.field": "database_id" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/projects/{project_id}:runAggregationQuery", "body": "*" } }, { "(google.api.routing)": { "routing_parameters": [ { "field": "project_id" }, { "field": "database_id" }