@@ -52,19 +52,11 @@ var Transaction = require('./transaction.js');
5252var PKG = require ( '../package.json' ) ;
5353
5454/**
55- * Interact with the
56- * [Google Cloud Datastore](https://developers.google.com/datastore/).
57- *
5855 * @constructor
5956 * @alias module:datastore
6057 * @mixes module:datastore/request
6158 *
62- * @classdesc
63- * The `gcloud.datastore` object allows you to interact with Google Cloud
64- * Datastore.
65- *
66- * To learn more about Datastore, read the
67- * [Google Cloud Datastore Concepts Overview](https://cloud.google.com/datastore/docs/concepts/overview)
59+ * @resource [Google Cloud Datastore Concepts Overview]{@link https://cloud.google.com/datastore/docs/concepts/overview}
6860 *
6961 * @param {object= } options - [Configuration object](#/docs).
7062 * @param {string= } options.apiEndpoint - Override the default API endpoint used
@@ -73,13 +65,6 @@ var PKG = require('../package.json');
7365 * @param {string } options.namespace - Namespace to isolate transactions to.
7466 *
7567 * @example
76- * var gcloud = require('google-cloud')({
77- * projectId: 'grape-spaceship-123',
78- * keyFilename: '/path/to/keyfile.json'
79- * });
80- *
81- * var datastore = gcloud.datastore();
82- *
8368 * //-
8469 * // <h3>The Datastore Emulator</h3>
8570 * //
@@ -107,12 +92,7 @@ var PKG = require('../package.json');
10792 * // Set that environment variable and your localhost Datastore will
10893 * // automatically be used. You can also pass this address in manually with
10994 * // `apiEndpoint`.
110- * //-
111- * var datastore = gcloud.datastore({
112- * apiEndpoint: 'http://localhost:8080'
113- * });
114- *
115- * //-
95+ * //
11696 * // Additionally, `DATASTORE_PROJECT_ID` is recognized. If you have this set,
11797 * // you don't need to provide a `projectId`.
11898 * //-
@@ -213,7 +193,7 @@ var PKG = require('../package.json');
213193 * };
214194 *
215195 * // Check if more results may exist.
216- * if (info.moreResults !== gcloud. datastore.NO_MORE_RESULTS) {
196+ * if (info.moreResults !== datastore.NO_MORE_RESULTS) {
217197 * frontEndResponse.nextPageCursor = info.endCursor;
218198 * }
219199 *
@@ -360,9 +340,9 @@ modelo.inherits(Datastore, DatastoreRequest, common.GrpcService);
360340 * @return {object }
361341 *
362342 * @example
363- * var threeDouble = gcloud. datastore.double(3.0);
343+ * var threeDouble = datastore.double(3.0);
364344 */
365- Datastore . double = function ( value ) {
345+ Datastore . prototype . double = Datastore . double = function ( value ) {
366346 return new entity . Double ( value ) ;
367347} ;
368348
@@ -380,9 +360,9 @@ Datastore.double = function(value) {
380360 * longitude: -74.0447
381361 * };
382362 *
383- * var geoPoint = gcloud. datastore.geoPoint(coordinates);
363+ * var geoPoint = datastore.geoPoint(coordinates);
384364 */
385- Datastore . geoPoint = function ( coordindates ) {
365+ Datastore . prototype . geoPoint = Datastore . geoPoint = function ( coordindates ) {
386366 return new entity . GeoPoint ( coordindates ) ;
387367} ;
388368
@@ -393,9 +373,9 @@ Datastore.geoPoint = function(coordindates) {
393373 * @return {object }
394374 *
395375 * @example
396- * var sevenInteger = gcloud. datastore.int(7);
376+ * var sevenInteger = datastore.int(7);
397377 */
398- Datastore . int = function ( value ) {
378+ Datastore . prototype . int = Datastore . int = function ( value ) {
399379 return new entity . Int ( value ) ;
400380} ;
401381
@@ -408,6 +388,7 @@ Datastore.int = function(value) {
408388 *
409389 * @type {string }
410390 */
391+ Datastore . prototype . MORE_RESULTS_AFTER_CURSOR =
411392Datastore . MORE_RESULTS_AFTER_CURSOR = 'MORE_RESULTS_AFTER_CURSOR' ;
412393
413394/**
@@ -419,6 +400,7 @@ Datastore.MORE_RESULTS_AFTER_CURSOR = 'MORE_RESULTS_AFTER_CURSOR';
419400 *
420401 * @type {string }
421402 */
403+ Datastore . prototype . MORE_RESULTS_AFTER_LIMIT =
422404Datastore . MORE_RESULTS_AFTER_LIMIT = 'MORE_RESULTS_AFTER_LIMIT' ;
423405
424406/**
@@ -430,6 +412,7 @@ Datastore.MORE_RESULTS_AFTER_LIMIT = 'MORE_RESULTS_AFTER_LIMIT';
430412 *
431413 * @type {string }
432414 */
415+ Datastore . prototype . NO_MORE_RESULTS =
433416Datastore . NO_MORE_RESULTS = 'NO_MORE_RESULTS' ;
434417
435418/**
0 commit comments