@@ -97,7 +97,7 @@ instance ToJSON LatLng where
9797--
9898-- /See:/ 'rollbackRequest' smart constructor.
9999newtype RollbackRequest = RollbackRequest'
100− { _rrTransaction :: Maybe (Textual Word8)
100+ { _rrTransaction :: Maybe Base64
101101 } deriving (Eq,Show,Data,Typeable,Generic)
102102
103103-- | Creates a value of 'RollbackRequest' with the minimum fields required to make a request.
@@ -114,11 +114,11 @@ rollbackRequest =
114114
115115-- | The transaction identifier, returned by a call to
116116-- google.datastore.v1beta3.Datastore.BeginTransaction.
117−rrTransaction :: Lens' RollbackRequest (Maybe Word8)
117+rrTransaction :: Lens' RollbackRequest (Maybe ByteString)
118118rrTransaction
119119 = lens _rrTransaction
120120 (\ s a -> s{_rrTransaction = a})
121− . mapping _Coerce
121+ . mapping _Base64
122122
123123instance FromJSON RollbackRequest where
124124 parseJSON
@@ -193,11 +193,11 @@ instance ToJSON PartitionId where
193193-- /See:/ 'queryResultBatch' smart constructor.
194194data QueryResultBatch = QueryResultBatch'
195195 { _qrbSkippedResults :: !(Maybe (Textual Int32))
196− , _qrbSkippedCursor :: !(Maybe (Textual Word8))
196+ , _qrbSkippedCursor :: !(Maybe Base64)
197197 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
198198 , _qrbEntityResults :: !(Maybe [EntityResult])
199199 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
200− , _qrbEndCursor :: !(Maybe (Textual Word8))
200+ , _qrbEndCursor :: !(Maybe Base64)
201201 } deriving (Eq,Show,Data,Typeable,Generic)
202202
203203-- | Creates a value of 'QueryResultBatch' with the minimum fields required to make a request.
@@ -236,11 +236,11 @@ qrbSkippedResults
236236
237237-- | A cursor that points to the position after the last skipped result. Will
238238-- be set when \`skipped_results\` != 0.
239−qrbSkippedCursor :: Lens' QueryResultBatch (Maybe Word8)
239+qrbSkippedCursor :: Lens' QueryResultBatch (Maybe ByteString)
240240qrbSkippedCursor
241241 = lens _qrbSkippedCursor
242242 (\ s a -> s{_qrbSkippedCursor = a})
243− . mapping _Coerce
243+ . mapping _Base64
244244
245245-- | The result type for every entity in \`entity_results\`.
246246qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType)
@@ -263,10 +263,10 @@ qrbMoreResults
263263 (\ s a -> s{_qrbMoreResults = a})
264264
265265-- | A cursor that points to the position after the last result in the batch.
266−qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8)
266+qrbEndCursor :: Lens' QueryResultBatch (Maybe ByteString)
267267qrbEndCursor
268268 = lens _qrbEndCursor (\ s a -> s{_qrbEndCursor = a})
269− . mapping _Coerce
269+ . mapping _Base64
270270
271271instance FromJSON QueryResultBatch where
272272 parseJSON
@@ -506,7 +506,7 @@ instance ToJSON CompositeFilter where
506506--
507507-- /See:/ 'beginTransactionResponse' smart constructor.
508508newtype BeginTransactionResponse = BeginTransactionResponse'
509− { _btrTransaction :: Maybe (Textual Word8)
509+ { _btrTransaction :: Maybe Base64
510510 } deriving (Eq,Show,Data,Typeable,Generic)
511511
512512-- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.
@@ -522,11 +522,11 @@ beginTransactionResponse =
522522 }
523523
524524-- | The transaction identifier (always present).
525−btrTransaction :: Lens' BeginTransactionResponse (Maybe Word8)
525+btrTransaction :: Lens' BeginTransactionResponse (Maybe ByteString)
526526btrTransaction
527527 = lens _btrTransaction
528528 (\ s a -> s{_btrTransaction = a})
529− . mapping _Coerce
529+ . mapping _Base64
530530
531531instance FromJSON BeginTransactionResponse where
532532 parseJSON
@@ -756,7 +756,7 @@ data Value = Value'
756756 , _vMeaning :: !(Maybe (Textual Int32))
757757 , _vArrayValue :: !(Maybe ArrayValue)
758758 , _vNullValue :: !(Maybe ValueNullValue)
759− , _vBlobValue :: !(Maybe (Textual Word8))
759+ , _vBlobValue :: !(Maybe Base64)
760760 } deriving (Eq,Show,Data,Typeable,Generic)
761761
762762-- | Creates a value of 'Value' with the minimum fields required to make a request.
@@ -887,10 +887,10 @@ vNullValue
887887-- | A blob value. May have at most 1,000,000 bytes. When
888888-- \`exclude_from_indexes\` is false, may have at most 1500 bytes. In JSON
889889-- requests, must be base64-encoded.
890−vBlobValue :: Lens' Value (Maybe Word8)
890+vBlobValue :: Lens' Value (Maybe ByteString)
891891vBlobValue
892892 = lens _vBlobValue (\ s a -> s{_vBlobValue = a}) .
893− mapping _Coerce
893+ mapping _Base64
894894
895895instance FromJSON Value where
896896 parseJSON
@@ -1241,11 +1241,11 @@ instance ToJSON PropertyFilter where
12411241--
12421242-- /See:/ 'query' smart constructor.
12431243data Query = Query'
1244− { _qStartCursor :: !(Maybe (Textual Word8))
1244+ { _qStartCursor :: !(Maybe Base64)
12451245 , _qOffSet :: !(Maybe (Textual Int32))
12461246 , _qKind :: !(Maybe [KindExpression])
12471247 , _qDistinctOn :: !(Maybe [PropertyReference])
1248− , _qEndCursor :: !(Maybe (Textual Word8))
1248+ , _qEndCursor :: !(Maybe Base64)
12491249 , _qLimit :: !(Maybe (Textual Int32))
12501250 , _qProjection :: !(Maybe [Projection])
12511251 , _qFilter :: !(Maybe Filter)
@@ -1290,10 +1290,10 @@ query =
12901290
12911291-- | A starting point for the query results. Query cursors are returned in
12921292-- query result batches.
1293−qStartCursor :: Lens' Query (Maybe Word8)
1293+qStartCursor :: Lens' Query (Maybe ByteString)
12941294qStartCursor
12951295 = lens _qStartCursor (\ s a -> s{_qStartCursor = a})
1296− . mapping _Coerce
1296+ . mapping _Base64
12971297
12981298-- | The number of results to skip. Applies before limit, but after all other
12991299-- constraints. Optional. Must be >= 0 if specified.
@@ -1320,10 +1320,10 @@ qDistinctOn
13201320
13211321-- | An ending point for the query results. Query cursors are returned in
13221322-- query result batches.
1323−qEndCursor :: Lens' Query (Maybe Word8)
1323+qEndCursor :: Lens' Query (Maybe ByteString)
13241324qEndCursor
13251325 = lens _qEndCursor (\ s a -> s{_qEndCursor = a}) .
1326− mapping _Coerce
1326+ mapping _Base64
13271327
13281328-- | The maximum number of results to return. Applies after all other
13291329-- constraints. Optional. Unspecified is interpreted as no limit. Must be
@@ -1418,7 +1418,7 @@ instance ToJSON ArrayValue where
14181418--
14191419-- /See:/ 'entityResult' smart constructor.
14201420data EntityResult = EntityResult'
1421− { _erCursor :: !(Maybe (Textual Word8))
1421+ { _erCursor :: !(Maybe Base64)
14221422 , _erEntity :: !(Maybe Entity)
14231423 } deriving (Eq,Show,Data,Typeable,Generic)
14241424
@@ -1439,10 +1439,10 @@ entityResult =
14391439
14401440-- | A cursor that points to the position after the result entity. Set only
14411441-- when the \`EntityResult\` is part of a \`QueryResultBatch\` message.
1442−erCursor :: Lens' EntityResult (Maybe Word8)
1442+erCursor :: Lens' EntityResult (Maybe ByteString)
14431443erCursor
14441444 = lens _erCursor (\ s a -> s{_erCursor = a}) .
1445− mapping _Coerce
1445+ mapping _Base64
14461446
14471447-- | The resulting entity.
14481448erEntity :: Lens' EntityResult (Maybe Entity)
@@ -1554,7 +1554,7 @@ instance ToJSON KindExpression where
15541554-- /See:/ 'readOptions' smart constructor.
15551555data ReadOptions = ReadOptions'
15561556 { _roReadConsistency :: !(Maybe ReadOptionsReadConsistency)
1557− , _roTransaction :: !(Maybe (Textual Word8))
1557+ , _roTransaction :: !(Maybe Base64)
15581558 } deriving (Eq,Show,Data,Typeable,Generic)
15591559
15601560-- | Creates a value of 'ReadOptions' with the minimum fields required to make a request.
@@ -1580,11 +1580,11 @@ roReadConsistency
15801580 (\ s a -> s{_roReadConsistency = a})
15811581
15821582-- | The transaction in which to read.
1583−roTransaction :: Lens' ReadOptions (Maybe Word8)
1583+roTransaction :: Lens' ReadOptions (Maybe ByteString)
15841584roTransaction
15851585 = lens _roTransaction
15861586 (\ s a -> s{_roTransaction = a})
1587− . mapping _Coerce
1587+ . mapping _Base64
15881588
15891589instance FromJSON ReadOptions where
15901590 parseJSON
@@ -1711,7 +1711,7 @@ instance ToJSON Filter where
17111711data CommitRequest = CommitRequest'
17121712 { _crMutations :: !(Maybe [Mutation])
17131713 , _crMode :: !(Maybe CommitRequestMode)
1714− , _crTransaction :: !(Maybe (Textual Word8))
1714+ , _crTransaction :: !(Maybe Base64)
17151715 } deriving (Eq,Show,Data,Typeable,Generic)
17161716
17171717-- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.
@@ -1751,11 +1751,11 @@ crMode = lens _crMode (\ s a -> s{_crMode = a})
17511751
17521752-- | The identifier of the transaction associated with the commit. A
17531753-- transaction identifier is returned by a call to BeginTransaction.
1754−crTransaction :: Lens' CommitRequest (Maybe Word8)
1754+crTransaction :: Lens' CommitRequest (Maybe ByteString)
17551755crTransaction
17561756 = lens _crTransaction
17571757 (\ s a -> s{_crTransaction = a})
1758− . mapping _Coerce
1758+ . mapping _Base64
17591759
17601760instance FromJSON CommitRequest where
17611761 parseJSON
@@ -2009,7 +2009,7 @@ instance ToJSON PropertyOrder where
20092009--
20102010-- /See:/ 'gqlQueryParameter' smart constructor.
20112011data GqlQueryParameter = GqlQueryParameter'
2012− { _gqpCursor :: !(Maybe (Textual Word8))
2012+ { _gqpCursor :: !(Maybe Base64)
20132013 , _gqpValue :: !(Maybe Value)
20142014 } deriving (Eq,Show,Data,Typeable,Generic)
20152015
@@ -2029,10 +2029,10 @@ gqlQueryParameter =
20292029 }
20302030
20312031-- | A query cursor. Query cursors are returned in query result batches.
2032−gqpCursor :: Lens' GqlQueryParameter (Maybe Word8)
2032+gqpCursor :: Lens' GqlQueryParameter (Maybe ByteString)
20332033gqpCursor
20342034 = lens _gqpCursor (\ s a -> s{_gqpCursor = a}) .
2035− mapping _Coerce
2035+ mapping _Base64
20362036
20372037-- | A value parameter.
20382038gqpValue :: Lens' GqlQueryParameter (Maybe Value)