diff --git a/Datastore/metadata/V1/Datastore.php b/Datastore/metadata/V1/Datastore.php index 34d3e9713780..240c890ee6b1 100644 --- a/Datastore/metadata/V1/Datastore.php +++ b/Datastore/metadata/V1/Datastore.php @@ -24,7 +24,7 @@ public static function initOnce() { \GPBMetadata\Google\Datastore\V1\QueryProfile::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xD77\x0A#google/datastore/v1/datastore.proto\x12\x13google.datastore.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x18google/api/routing.proto\x1A,google/datastore/v1/aggregation_result.proto\x1A google/datastore/v1/entity.proto\x1A\x1Fgoogle/datastore/v1/query.proto\x1A'google/datastore/v1/query_profile.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xDC\x01\x0A\x0DLookupRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12+\x0A\x04keys\x18\x03 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\x128\x0A\x0Dproperty_mask\x18\x05 \x01(\x0B2!.google.datastore.v1.PropertyMask\"\xE6\x01\x0A\x0ELookupResponse\x120\x0A\x05found\x18\x01 \x03(\x0B2!.google.datastore.v1.EntityResult\x122\x0A\x07missing\x18\x02 \x03(\x0B2!.google.datastore.v1.EntityResult\x12*\x0A\x08deferred\x18\x03 \x03(\x0B2\x18.google.datastore.v1.Key\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12-\x0A\x09read_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\x9B\x03\x0A\x0FRunQueryRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cpartition_id\x18\x02 \x01(\x0B2 .google.datastore.v1.PartitionId\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12+\x0A\x05query\x18\x03 \x01(\x0B2\x1A.google.datastore.v1.QueryH\x00\x122\x0A\x09gql_query\x18\x07 \x01(\x0B2\x1D.google.datastore.v1.GqlQueryH\x00\x128\x0A\x0Dproperty_mask\x18\x0A \x01(\x0B2!.google.datastore.v1.PropertyMask\x12A\x0A\x0Fexplain_options\x18\x0C \x01(\x0B2#.google.datastore.v1.ExplainOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC6\x01\x0A\x10RunQueryResponse\x124\x0A\x05batch\x18\x01 \x01(\x0B2%.google.datastore.v1.QueryResultBatch\x12)\x0A\x05query\x18\x02 \x01(\x0B2\x1A.google.datastore.v1.Query\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12<\x0A\x0Fexplain_metrics\x18\x09 \x01(\x0B2#.google.datastore.v1.ExplainMetrics\"\x83\x03\x0A\x1ARunAggregationQueryRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cpartition_id\x18\x02 \x01(\x0B2 .google.datastore.v1.PartitionId\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12B\x0A\x11aggregation_query\x18\x03 \x01(\x0B2%.google.datastore.v1.AggregationQueryH\x00\x122\x0A\x09gql_query\x18\x07 \x01(\x0B2\x1D.google.datastore.v1.GqlQueryH\x00\x12A\x0A\x0Fexplain_options\x18\x0B \x01(\x0B2#.google.datastore.v1.ExplainOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xE2\x01\x0A\x1BRunAggregationQueryResponse\x12:\x0A\x05batch\x18\x01 \x01(\x0B2+.google.datastore.v1.AggregationResultBatch\x124\x0A\x05query\x18\x02 \x01(\x0B2%.google.datastore.v1.AggregationQuery\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12<\x0A\x0Fexplain_metrics\x18\x09 \x01(\x0B2#.google.datastore.v1.ExplainMetrics\"\x8D\x01\x0A\x17BeginTransactionRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12D\x0A\x13transaction_options\x18\x0A \x01(\x0B2'.google.datastore.v1.TransactionOptions\"/\x0A\x18BeginTransactionResponse\x12\x13\x0A\x0Btransaction\x18\x01 \x01(\x0C\"Y\x0A\x0FRollbackRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12\x18\x0A\x0Btransaction\x18\x01 \x01(\x0CB\x03\xE0A\x02\"\x12\x0A\x10RollbackResponse\"\xE8\x02\x0A\x0DCommitRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x125\x0A\x04mode\x18\x05 \x01(\x0E2'.google.datastore.v1.CommitRequest.Mode\x12\x15\x0A\x0Btransaction\x18\x01 \x01(\x0CH\x00\x12I\x0A\x16single_use_transaction\x18\x0A \x01(\x0B2'.google.datastore.v1.TransactionOptionsH\x00\x120\x0A\x09mutations\x18\x06 \x03(\x0B2\x1D.google.datastore.v1.Mutation\"F\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTRANSACTIONAL\x10\x01\x12\x15\x0A\x11NON_TRANSACTIONAL\x10\x02B\x16\x0A\x14transaction_selector\"\x97\x01\x0A\x0ECommitResponse\x12=\x0A\x10mutation_results\x18\x03 \x03(\x0B2#.google.datastore.v1.MutationResult\x12\x15\x0A\x0Dindex_updates\x18\x04 \x01(\x05\x12/\x0A\x0Bcommit_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\"o\x0A\x12AllocateIdsRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12+\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\"=\x0A\x13AllocateIdsResponse\x12&\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.Key\"n\x0A\x11ReserveIdsRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12+\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\"\x14\x0A\x12ReserveIdsResponse\"\xF2\x04\x0A\x08Mutation\x12-\x0A\x06insert\x18\x04 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12-\x0A\x06update\x18\x05 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12-\x0A\x06upsert\x18\x06 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12*\x0A\x06delete\x18\x07 \x01(\x0B2\x18.google.datastore.v1.KeyH\x00\x12\x16\x0A\x0Cbase_version\x18\x08 \x01(\x03H\x01\x121\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12^\x0A\x1Cconflict_resolution_strategy\x18\x0A \x01(\x0E28.google.datastore.v1.Mutation.ConflictResolutionStrategy\x128\x0A\x0Dproperty_mask\x18\x09 \x01(\x0B2!.google.datastore.v1.PropertyMask\x12H\x0A\x13property_transforms\x18\x0C \x03(\x0B2&.google.datastore.v1.PropertyTransformB\x03\xE0A\x01\"R\x0A\x1AConflictResolutionStrategy\x12\x18\x0A\x14STRATEGY_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSERVER_VALUE\x10\x01\x12\x08\x0A\x04FAIL\x10\x03B\x0B\x0A\x09operationB\x1D\x0A\x1Bconflict_detection_strategy\"\xE3\x03\x0A\x11PropertyTransform\x12\x15\x0A\x08property\x18\x01 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x13set_to_server_value\x18\x02 \x01(\x0E22.google.datastore.v1.PropertyTransform.ServerValueH\x00\x12/\x0A\x09increment\x18\x03 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12-\x0A\x07maximum\x18\x04 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12-\x0A\x07minimum\x18\x05 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12B\x0A\x17append_missing_elements\x18\x06 \x01(\x0B2\x1F.google.datastore.v1.ArrayValueH\x00\x12@\x0A\x15remove_all_from_array\x18\x07 \x01(\x0B2\x1F.google.datastore.v1.ArrayValueH\x00\"=\x0A\x0BServerValue\x12\x1C\x0A\x18SERVER_VALUE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CREQUEST_TIME\x10\x01B\x10\x0A\x0Etransform_type\"\xFC\x01\x0A\x0EMutationResult\x12%\x0A\x03key\x18\x03 \x01(\x0B2\x18.google.datastore.v1.Key\x12\x0F\x0A\x07version\x18\x04 \x01(\x03\x12/\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11conflict_detected\x18\x05 \x01(\x08\x125\x0A\x11transform_results\x18\x08 \x03(\x0B2\x1A.google.datastore.v1.Value\"\x1D\x0A\x0CPropertyMask\x12\x0D\x0A\x05paths\x18\x01 \x03(\x09\"\xCA\x02\x0A\x0BReadOptions\x12L\x0A\x10read_consistency\x18\x01 \x01(\x0E20.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\x0A\x0Btransaction\x18\x02 \x01(\x0CH\x00\x12B\x0A\x0Fnew_transaction\x18\x03 \x01(\x0B2'.google.datastore.v1.TransactionOptionsH\x00\x12/\x0A\x09read_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\"M\x0A\x0FReadConsistency\x12 \x0A\x1CREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRONG\x10\x01\x12\x0C\x0A\x08EVENTUAL\x10\x02B\x12\x0A\x10consistency_type\"\x92\x02\x0A\x12TransactionOptions\x12G\x0A\x0Aread_write\x18\x01 \x01(\x0B21.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12E\x0A\x09read_only\x18\x02 \x01(\x0B20.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1A)\x0A\x09ReadWrite\x12\x1C\x0A\x14previous_transaction\x18\x01 \x01(\x0C\x1A9\x0A\x08ReadOnly\x12-\x0A\x09read_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\x0A\x04mode2\xE1\x0D\x0A\x09Datastore\x12\xC0\x01\x0A\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1A#.google.datastore.v1.LookupResponse\"m\xDAA\x1Cproject_id,read_options,keys\x82\xD3\xE4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xA9\x01\x0A\x08RunQuery\x12\$.google.datastore.v1.RunQueryRequest\x1A%.google.datastore.v1.RunQueryResponse\"P\x82\xD3\xE4\x93\x02'\"\"/v1/projects/{project_id}:runQuery:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xD5\x01\x0A\x13RunAggregationQuery\x12/.google.datastore.v1.RunAggregationQueryRequest\x1A0.google.datastore.v1.RunAggregationQueryResponse\"[\x82\xD3\xE4\x93\x022\"-/v1/projects/{project_id}:runAggregationQuery:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xD6\x01\x0A\x10BeginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1A-.google.datastore.v1.BeginTransactionResponse\"e\xDAA\x0Aproject_id\x82\xD3\xE4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xE6\x01\x0A\x06Commit\x12\".google.datastore.v1.CommitRequest\x1A#.google.datastore.v1.CommitResponse\"\x92\x01\xDAA%project_id,mode,transaction,mutations\xDAA\x19project_id,mode,mutations\x82\xD3\xE4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC2\x01\x0A\x08Rollback\x12\$.google.datastore.v1.RollbackRequest\x1A%.google.datastore.v1.RollbackResponse\"i\xDAA\x16project_id,transaction\x82\xD3\xE4\x93\x02'\"\"/v1/projects/{project_id}:rollback:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC7\x01\x0A\x0BAllocateIds\x12'.google.datastore.v1.AllocateIdsRequest\x1A(.google.datastore.v1.AllocateIdsResponse\"e\xDAA\x0Fproject_id,keys\x82\xD3\xE4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC3\x01\x0A\x0AReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1A'.google.datastore.v1.ReserveIdsResponse\"d\xDAA\x0Fproject_id,keys\x82\xD3\xE4\x93\x02)\"\$/v1/projects/{project_id}:reserveIds:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x1Av\xCAA\x18datastore.googleapis.com\xD2AXhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xBF\x01\x0A\x17com.google.datastore.v1B\x0EDatastoreProtoP\x01Z;cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb\xAA\x02\x19Google.Cloud.Datastore.V1\xCA\x02\x19Google\\Cloud\\Datastore\\V1\xEA\x02\x1CGoogle::Cloud::Datastore::V1b\x06proto3" + "\x0A\x9F<\x0A#google/datastore/v1/datastore.proto\x12\x13google.datastore.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x18google/api/routing.proto\x1A,google/datastore/v1/aggregation_result.proto\x1A google/datastore/v1/entity.proto\x1A\x1Fgoogle/datastore/v1/query.proto\x1A'google/datastore/v1/query_profile.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9F\x02\x0A\x0DLookupRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12+\x0A\x04keys\x18\x03 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\x128\x0A\x0Dproperty_mask\x18\x05 \x01(\x0B2!.google.datastore.v1.PropertyMask\x12A\x0A\x0Frequest_options\x18\x0A \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"\xE6\x01\x0A\x0ELookupResponse\x120\x0A\x05found\x18\x01 \x03(\x0B2!.google.datastore.v1.EntityResult\x122\x0A\x07missing\x18\x02 \x03(\x0B2!.google.datastore.v1.EntityResult\x12*\x0A\x08deferred\x18\x03 \x03(\x0B2\x18.google.datastore.v1.Key\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12-\x0A\x09read_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xDE\x03\x0A\x0FRunQueryRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cpartition_id\x18\x02 \x01(\x0B2 .google.datastore.v1.PartitionId\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12+\x0A\x05query\x18\x03 \x01(\x0B2\x1A.google.datastore.v1.QueryH\x00\x122\x0A\x09gql_query\x18\x07 \x01(\x0B2\x1D.google.datastore.v1.GqlQueryH\x00\x128\x0A\x0Dproperty_mask\x18\x0A \x01(\x0B2!.google.datastore.v1.PropertyMask\x12A\x0A\x0Fexplain_options\x18\x0C \x01(\x0B2#.google.datastore.v1.ExplainOptionsB\x03\xE0A\x01\x12A\x0A\x0Frequest_options\x18\x0D \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xC6\x01\x0A\x10RunQueryResponse\x124\x0A\x05batch\x18\x01 \x01(\x0B2%.google.datastore.v1.QueryResultBatch\x12)\x0A\x05query\x18\x02 \x01(\x0B2\x1A.google.datastore.v1.Query\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12<\x0A\x0Fexplain_metrics\x18\x09 \x01(\x0B2#.google.datastore.v1.ExplainMetrics\"\xC6\x03\x0A\x1ARunAggregationQueryRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x126\x0A\x0Cpartition_id\x18\x02 \x01(\x0B2 .google.datastore.v1.PartitionId\x126\x0A\x0Cread_options\x18\x01 \x01(\x0B2 .google.datastore.v1.ReadOptions\x12B\x0A\x11aggregation_query\x18\x03 \x01(\x0B2%.google.datastore.v1.AggregationQueryH\x00\x122\x0A\x09gql_query\x18\x07 \x01(\x0B2\x1D.google.datastore.v1.GqlQueryH\x00\x12A\x0A\x0Fexplain_options\x18\x0B \x01(\x0B2#.google.datastore.v1.ExplainOptionsB\x03\xE0A\x01\x12A\x0A\x0Frequest_options\x18\x0C \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01B\x0C\x0A\x0Aquery_type\"\xE2\x01\x0A\x1BRunAggregationQueryResponse\x12:\x0A\x05batch\x18\x01 \x01(\x0B2+.google.datastore.v1.AggregationResultBatch\x124\x0A\x05query\x18\x02 \x01(\x0B2%.google.datastore.v1.AggregationQuery\x12\x13\x0A\x0Btransaction\x18\x05 \x01(\x0C\x12<\x0A\x0Fexplain_metrics\x18\x09 \x01(\x0B2#.google.datastore.v1.ExplainMetrics\"\xD0\x01\x0A\x17BeginTransactionRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12D\x0A\x13transaction_options\x18\x0A \x01(\x0B2'.google.datastore.v1.TransactionOptions\x12A\x0A\x0Frequest_options\x18\x0B \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"/\x0A\x18BeginTransactionResponse\x12\x13\x0A\x0Btransaction\x18\x01 \x01(\x0C\"\x9C\x01\x0A\x0FRollbackRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12\x18\x0A\x0Btransaction\x18\x01 \x01(\x0CB\x03\xE0A\x02\x12A\x0A\x0Frequest_options\x18\x0A \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"\x12\x0A\x10RollbackResponse\"\xAB\x03\x0A\x0DCommitRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x125\x0A\x04mode\x18\x05 \x01(\x0E2'.google.datastore.v1.CommitRequest.Mode\x12\x15\x0A\x0Btransaction\x18\x01 \x01(\x0CH\x00\x12I\x0A\x16single_use_transaction\x18\x0A \x01(\x0B2'.google.datastore.v1.TransactionOptionsH\x00\x120\x0A\x09mutations\x18\x06 \x03(\x0B2\x1D.google.datastore.v1.Mutation\x12A\x0A\x0Frequest_options\x18\x0B \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"F\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DTRANSACTIONAL\x10\x01\x12\x15\x0A\x11NON_TRANSACTIONAL\x10\x02B\x16\x0A\x14transaction_selector\"\x97\x01\x0A\x0ECommitResponse\x12=\x0A\x10mutation_results\x18\x03 \x03(\x0B2#.google.datastore.v1.MutationResult\x12\x15\x0A\x0Dindex_updates\x18\x04 \x01(\x05\x12/\x0A\x0Bcommit_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\"\xB2\x01\x0A\x12AllocateIdsRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12+\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\x12A\x0A\x0Frequest_options\x18\x0A \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"=\x0A\x13AllocateIdsResponse\x12&\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.Key\"\xB1\x01\x0A\x11ReserveIdsRequest\x12\x17\x0A\x0Aproject_id\x18\x08 \x01(\x09B\x03\xE0A\x02\x12\x13\x0A\x0Bdatabase_id\x18\x09 \x01(\x09\x12+\x0A\x04keys\x18\x01 \x03(\x0B2\x18.google.datastore.v1.KeyB\x03\xE0A\x02\x12A\x0A\x0Frequest_options\x18\x0A \x01(\x0B2#.google.datastore.v1.RequestOptionsB\x03\xE0A\x01\"\x14\x0A\x12ReserveIdsResponse\"\xF2\x04\x0A\x08Mutation\x12-\x0A\x06insert\x18\x04 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12-\x0A\x06update\x18\x05 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12-\x0A\x06upsert\x18\x06 \x01(\x0B2\x1B.google.datastore.v1.EntityH\x00\x12*\x0A\x06delete\x18\x07 \x01(\x0B2\x18.google.datastore.v1.KeyH\x00\x12\x16\x0A\x0Cbase_version\x18\x08 \x01(\x03H\x01\x121\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.TimestampH\x01\x12^\x0A\x1Cconflict_resolution_strategy\x18\x0A \x01(\x0E28.google.datastore.v1.Mutation.ConflictResolutionStrategy\x128\x0A\x0Dproperty_mask\x18\x09 \x01(\x0B2!.google.datastore.v1.PropertyMask\x12H\x0A\x13property_transforms\x18\x0C \x03(\x0B2&.google.datastore.v1.PropertyTransformB\x03\xE0A\x01\"R\x0A\x1AConflictResolutionStrategy\x12\x18\x0A\x14STRATEGY_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CSERVER_VALUE\x10\x01\x12\x08\x0A\x04FAIL\x10\x03B\x0B\x0A\x09operationB\x1D\x0A\x1Bconflict_detection_strategy\"\xE3\x03\x0A\x11PropertyTransform\x12\x15\x0A\x08property\x18\x01 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x13set_to_server_value\x18\x02 \x01(\x0E22.google.datastore.v1.PropertyTransform.ServerValueH\x00\x12/\x0A\x09increment\x18\x03 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12-\x0A\x07maximum\x18\x04 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12-\x0A\x07minimum\x18\x05 \x01(\x0B2\x1A.google.datastore.v1.ValueH\x00\x12B\x0A\x17append_missing_elements\x18\x06 \x01(\x0B2\x1F.google.datastore.v1.ArrayValueH\x00\x12@\x0A\x15remove_all_from_array\x18\x07 \x01(\x0B2\x1F.google.datastore.v1.ArrayValueH\x00\"=\x0A\x0BServerValue\x12\x1C\x0A\x18SERVER_VALUE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CREQUEST_TIME\x10\x01B\x10\x0A\x0Etransform_type\"\xFC\x01\x0A\x0EMutationResult\x12%\x0A\x03key\x18\x03 \x01(\x0B2\x18.google.datastore.v1.Key\x12\x0F\x0A\x07version\x18\x04 \x01(\x03\x12/\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x19\x0A\x11conflict_detected\x18\x05 \x01(\x08\x125\x0A\x11transform_results\x18\x08 \x03(\x0B2\x1A.google.datastore.v1.Value\"\x1D\x0A\x0CPropertyMask\x12\x0D\x0A\x05paths\x18\x01 \x03(\x09\"\xCA\x02\x0A\x0BReadOptions\x12L\x0A\x10read_consistency\x18\x01 \x01(\x0E20.google.datastore.v1.ReadOptions.ReadConsistencyH\x00\x12\x15\x0A\x0Btransaction\x18\x02 \x01(\x0CH\x00\x12B\x0A\x0Fnew_transaction\x18\x03 \x01(\x0B2'.google.datastore.v1.TransactionOptionsH\x00\x12/\x0A\x09read_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampH\x00\"M\x0A\x0FReadConsistency\x12 \x0A\x1CREAD_CONSISTENCY_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06STRONG\x10\x01\x12\x0C\x0A\x08EVENTUAL\x10\x02B\x12\x0A\x10consistency_type\"\x92\x02\x0A\x12TransactionOptions\x12G\x0A\x0Aread_write\x18\x01 \x01(\x0B21.google.datastore.v1.TransactionOptions.ReadWriteH\x00\x12E\x0A\x09read_only\x18\x02 \x01(\x0B20.google.datastore.v1.TransactionOptions.ReadOnlyH\x00\x1A)\x0A\x09ReadWrite\x12\x1C\x0A\x14previous_transaction\x18\x01 \x01(\x0C\x1A9\x0A\x08ReadOnly\x12-\x0A\x09read_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x06\x0A\x04mode\"+\x0A\x0ERequestOptions\x12\x19\x0A\x0Crequest_tags\x18\x03 \x03(\x09B\x03\xE0A\x012\xE1\x0D\x0A\x09Datastore\x12\xC0\x01\x0A\x06Lookup\x12\".google.datastore.v1.LookupRequest\x1A#.google.datastore.v1.LookupResponse\"m\xDAA\x1Cproject_id,read_options,keys\x82\xD3\xE4\x93\x02%\" /v1/projects/{project_id}:lookup:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xA9\x01\x0A\x08RunQuery\x12\$.google.datastore.v1.RunQueryRequest\x1A%.google.datastore.v1.RunQueryResponse\"P\x82\xD3\xE4\x93\x02'\"\"/v1/projects/{project_id}:runQuery:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xD5\x01\x0A\x13RunAggregationQuery\x12/.google.datastore.v1.RunAggregationQueryRequest\x1A0.google.datastore.v1.RunAggregationQueryResponse\"[\x82\xD3\xE4\x93\x022\"-/v1/projects/{project_id}:runAggregationQuery:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xD6\x01\x0A\x10BeginTransaction\x12,.google.datastore.v1.BeginTransactionRequest\x1A-.google.datastore.v1.BeginTransactionResponse\"e\xDAA\x0Aproject_id\x82\xD3\xE4\x93\x02/\"*/v1/projects/{project_id}:beginTransaction:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xE6\x01\x0A\x06Commit\x12\".google.datastore.v1.CommitRequest\x1A#.google.datastore.v1.CommitResponse\"\x92\x01\xDAA%project_id,mode,transaction,mutations\xDAA\x19project_id,mode,mutations\x82\xD3\xE4\x93\x02%\" /v1/projects/{project_id}:commit:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC2\x01\x0A\x08Rollback\x12\$.google.datastore.v1.RollbackRequest\x1A%.google.datastore.v1.RollbackResponse\"i\xDAA\x16project_id,transaction\x82\xD3\xE4\x93\x02'\"\"/v1/projects/{project_id}:rollback:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC7\x01\x0A\x0BAllocateIds\x12'.google.datastore.v1.AllocateIdsRequest\x1A(.google.datastore.v1.AllocateIdsResponse\"e\xDAA\x0Fproject_id,keys\x82\xD3\xE4\x93\x02*\"%/v1/projects/{project_id}:allocateIds:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x12\xC3\x01\x0A\x0AReserveIds\x12&.google.datastore.v1.ReserveIdsRequest\x1A'.google.datastore.v1.ReserveIdsResponse\"d\xDAA\x0Fproject_id,keys\x82\xD3\xE4\x93\x02)\"\$/v1/projects/{project_id}:reserveIds:\x01*\x8A\xD3\xE4\x93\x02\x1D\x12\x0C\x0A\x0Aproject_id\x12\x0D\x0A\x0Bdatabase_id\x1Av\xCAA\x18datastore.googleapis.com\xD2AXhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB\xBF\x01\x0A\x17com.google.datastore.v1B\x0EDatastoreProtoP\x01Z;cloud.google.com/go/datastore/apiv1/datastorepb;datastorepb\xAA\x02\x19Google.Cloud.Datastore.V1\xCA\x02\x19Google\\Cloud\\Datastore\\V1\xEA\x02\x1CGoogle::Cloud::Datastore::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/Datastore/src/V1/AllocateIdsRequest.php b/Datastore/src/V1/AllocateIdsRequest.php index f60596b58314..ac5680d83f3c 100644 --- a/Datastore/src/V1/AllocateIdsRequest.php +++ b/Datastore/src/V1/AllocateIdsRequest.php @@ -37,6 +37,12 @@ class AllocateIdsRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $keys; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; /** * @param string $projectId Required. The ID of the project against which to make the request. @@ -69,6 +75,8 @@ public static function build(string $projectId, array $keys): self * @type \Google\Cloud\Datastore\V1\Key[] $keys * Required. A list of keys with incomplete key paths for which to allocate * IDs. No key may be reserved/read-only. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -160,5 +168,41 @@ public function setKeys($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + } diff --git a/Datastore/src/V1/BeginTransactionRequest.php b/Datastore/src/V1/BeginTransactionRequest.php index 07e8bf9ffa2e..bd9032952746 100644 --- a/Datastore/src/V1/BeginTransactionRequest.php +++ b/Datastore/src/V1/BeginTransactionRequest.php @@ -36,6 +36,12 @@ class BeginTransactionRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.datastore.v1.TransactionOptions transaction_options = 10; */ protected $transaction_options = null; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; /** * @param string $projectId Required. The ID of the project against which to make the request. @@ -64,6 +70,8 @@ public static function build(string $projectId): self * database. * @type \Google\Cloud\Datastore\V1\TransactionOptions $transaction_options * Options for a new transaction. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -163,5 +171,41 @@ public function setTransactionOptions($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + } diff --git a/Datastore/src/V1/CommitRequest.php b/Datastore/src/V1/CommitRequest.php index baa9c56b4f7f..4db8ffca3d34 100644 --- a/Datastore/src/V1/CommitRequest.php +++ b/Datastore/src/V1/CommitRequest.php @@ -50,6 +50,12 @@ class CommitRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.datastore.v1.Mutation mutations = 6; */ private $mutations; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; protected $transaction_selector; /** @@ -150,6 +156,8 @@ public static function buildFromProjectIdModeMutations(string $projectId, int $m * - `delete` followed by `update` * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single * entity. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -355,6 +363,42 @@ public function setMutations($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + /** * @return string */ diff --git a/Datastore/src/V1/FindNearest.php b/Datastore/src/V1/FindNearest.php index b391e73f4dd4..32b30a867436 100644 --- a/Datastore/src/V1/FindNearest.php +++ b/Datastore/src/V1/FindNearest.php @@ -59,8 +59,8 @@ class FindNearest extends \Google\Protobuf\Internal\Message * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -93,8 +93,8 @@ class FindNearest extends \Google\Protobuf\Internal\Message * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * } */ public function __construct($data = NULL) { @@ -308,8 +308,8 @@ public function setDistanceResultProperty($var) * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\DoubleValue|null @@ -336,8 +336,8 @@ public function clearDistanceThreshold() * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return float|null @@ -352,8 +352,8 @@ public function getDistanceThresholdUnwrapped() * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param \Google\Protobuf\DoubleValue $var @@ -374,8 +374,8 @@ public function setDistanceThreshold($var) * will be returned. The behavior of the specified `distance_measure` will * affect the meaning of the distance threshold. Since DOT_PRODUCT distances * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold + * * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold + * * For DOT_PRODUCT: WHERE distance >= distance_threshold * * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param float|null $var diff --git a/Datastore/src/V1/LookupRequest.php b/Datastore/src/V1/LookupRequest.php index 97ba68fcaac1..825a2bdffec3 100644 --- a/Datastore/src/V1/LookupRequest.php +++ b/Datastore/src/V1/LookupRequest.php @@ -50,6 +50,12 @@ class LookupRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 5; */ protected $property_mask = null; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; /** * @param string $projectId Required. The ID of the project against which to make the request. @@ -89,6 +95,8 @@ public static function build(string $projectId, \Google\Cloud\Datastore\V1\ReadO * If this field is set and an entity has a property not referenced in the * mask, it will be absent from [LookupResponse.found.entity.properties][]. * The entity's key is always returned. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -256,5 +264,41 @@ public function setPropertyMask($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + } diff --git a/Datastore/src/V1/RequestOptions.php b/Datastore/src/V1/RequestOptions.php new file mode 100644 index 000000000000..883e63d03f5f --- /dev/null +++ b/Datastore/src/V1/RequestOptions.php @@ -0,0 +1,87 @@ +google.datastore.v1.RequestOptions + */ +class RequestOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The request tags for the request. + * The tags are processed as follows: + * - Truncated to 510 characters. + * - Filtered out if empty. + * - Deduplicated. + * - Limited to 50 tags. + * + * Generated from protobuf field repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $request_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $request_tags + * Optional. The request tags for the request. + * The tags are processed as follows: + * - Truncated to 510 characters. + * - Filtered out if empty. + * - Deduplicated. + * - Limited to 50 tags. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The request tags for the request. + * The tags are processed as follows: + * - Truncated to 510 characters. + * - Filtered out if empty. + * - Deduplicated. + * - Limited to 50 tags. + * + * Generated from protobuf field repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getRequestTags() + { + return $this->request_tags; + } + + /** + * Optional. The request tags for the request. + * The tags are processed as follows: + * - Truncated to 510 characters. + * - Filtered out if empty. + * - Deduplicated. + * - Limited to 50 tags. + * + * Generated from protobuf field repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setRequestTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->request_tags = $arr; + + return $this; + } + +} + diff --git a/Datastore/src/V1/ReserveIdsRequest.php b/Datastore/src/V1/ReserveIdsRequest.php index 5175c281a2b6..5f853b95af5a 100644 --- a/Datastore/src/V1/ReserveIdsRequest.php +++ b/Datastore/src/V1/ReserveIdsRequest.php @@ -37,6 +37,12 @@ class ReserveIdsRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $keys; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; /** * @param string $projectId Required. The ID of the project against which to make the request. @@ -69,6 +75,8 @@ public static function build(string $projectId, array $keys): self * @type \Google\Cloud\Datastore\V1\Key[] $keys * Required. A list of keys with complete key paths whose numeric IDs should * not be auto-allocated. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -160,5 +168,41 @@ public function setKeys($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + } diff --git a/Datastore/src/V1/RollbackRequest.php b/Datastore/src/V1/RollbackRequest.php index 88bf16c828c9..72ca3d715c82 100644 --- a/Datastore/src/V1/RollbackRequest.php +++ b/Datastore/src/V1/RollbackRequest.php @@ -36,6 +36,12 @@ class RollbackRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; */ protected $transaction = ''; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; /** * @param string $projectId Required. The ID of the project against which to make the request. @@ -68,6 +74,8 @@ public static function build(string $projectId, string $transaction): self * @type string $transaction * Required. The transaction identifier, returned by a call to * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -159,5 +167,41 @@ public function setTransaction($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + } diff --git a/Datastore/src/V1/RunAggregationQueryRequest.php b/Datastore/src/V1/RunAggregationQueryRequest.php index 94c52161c3e2..d0014740294f 100644 --- a/Datastore/src/V1/RunAggregationQueryRequest.php +++ b/Datastore/src/V1/RunAggregationQueryRequest.php @@ -52,6 +52,12 @@ class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 11 [(.google.api.field_behavior) = OPTIONAL]; */ protected $explain_options = null; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; protected $query_type; /** @@ -80,6 +86,8 @@ class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Datastore\V1\ExplainOptions $explain_options * Optional. Explain options for the query. If set, additional query * statistics will be returned. If not, only query results will be returned. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -321,6 +329,42 @@ public function setExplainOptions($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + /** * @return string */ diff --git a/Datastore/src/V1/RunQueryRequest.php b/Datastore/src/V1/RunQueryRequest.php index 5e728ca69862..1dfa9fda38a7 100644 --- a/Datastore/src/V1/RunQueryRequest.php +++ b/Datastore/src/V1/RunQueryRequest.php @@ -60,6 +60,12 @@ class RunQueryRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL]; */ protected $explain_options = null; + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_options = null; protected $query_type; /** @@ -93,6 +99,8 @@ class RunQueryRequest extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Datastore\V1\ExplainOptions $explain_options * Optional. Explain options for the query. If set, additional query * statistics will be returned. If not, only query results will be returned. + * @type \Google\Cloud\Datastore\V1\RequestOptions $request_options + * Optional. The options for this request. * } */ public function __construct($data = NULL) { @@ -376,6 +384,42 @@ public function setExplainOptions($var) return $this; } + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Datastore\V1\RequestOptions|null + */ + public function getRequestOptions() + { + return $this->request_options; + } + + public function hasRequestOptions() + { + return isset($this->request_options); + } + + public function clearRequestOptions() + { + unset($this->request_options); + } + + /** + * Optional. The options for this request. + * + * Generated from protobuf field .google.datastore.v1.RequestOptions request_options = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Datastore\V1\RequestOptions $var + * @return $this + */ + public function setRequestOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\RequestOptions::class); + $this->request_options = $var; + + return $this; + } + /** * @return string */ diff --git a/Datastore/src/V1/RunQueryResponse.php b/Datastore/src/V1/RunQueryResponse.php index 68b4de41ea6f..3635f2d3739a 100644 --- a/Datastore/src/V1/RunQueryResponse.php +++ b/Datastore/src/V1/RunQueryResponse.php @@ -17,7 +17,13 @@ class RunQueryResponse extends \Google\Protobuf\Internal\Message { /** - * A batch of query results (always present). + * A batch of query results. This is always present unless running a + * query under explain-only + * mode: + * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + * was provided and + * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] was + * set to false. * * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; */ @@ -55,7 +61,13 @@ class RunQueryResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Cloud\Datastore\V1\QueryResultBatch $batch - * A batch of query results (always present). + * A batch of query results. This is always present unless running a + * query under explain-only + * mode: + * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + * was provided and + * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] was + * set to false. * @type \Google\Cloud\Datastore\V1\Query $query * The parsed form of the `GqlQuery` from the request, if it was set. * @type string $transaction @@ -77,7 +89,13 @@ public function __construct($data = NULL) { } /** - * A batch of query results (always present). + * A batch of query results. This is always present unless running a + * query under explain-only + * mode: + * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + * was provided and + * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] was + * set to false. * * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; * @return \Google\Cloud\Datastore\V1\QueryResultBatch|null @@ -98,7 +116,13 @@ public function clearBatch() } /** - * A batch of query results (always present). + * A batch of query results. This is always present unless running a + * query under explain-only + * mode: + * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] + * was provided and + * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] was + * set to false. * * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; * @param \Google\Cloud\Datastore\V1\QueryResultBatch $var