How to use the google-gax.StreamDescriptor function in google-gax

To help you get started, we’ve selected a few google-gax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github firebase / user-privacy / functions / node_modules / @google-cloud / firestore / src / v1beta1 / firestore_client.js View on Github external
var PAGE_DESCRIPTORS = {
  listDocuments: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'documents'
  ),
  listCollectionIds: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'collectionIds'
  ),
};

var STREAM_DESCRIPTORS = {
  batchGetDocuments: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  runQuery: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  write: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
  listen: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
};

/*!
 * The scopes needed to make gRPC calls to all of the methods defined in
 * this service.
 */
var ALL_SCOPES = [
  'https://www.googleapis.com/auth/cloud-platform',
  'https://www.googleapis.com/auth/datastore',
];

/**
 * The Cloud Firestore service.
 *
github firebase / user-privacy / functions / node_modules / @google-cloud / firestore / src / v1beta1 / firestore_client.js View on Github external
var PAGE_DESCRIPTORS = {
  listDocuments: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'documents'
  ),
  listCollectionIds: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'collectionIds'
  ),
};

var STREAM_DESCRIPTORS = {
  batchGetDocuments: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  runQuery: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  write: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
  listen: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
};

/*!
 * The scopes needed to make gRPC calls to all of the methods defined in
 * this service.
 */
var ALL_SCOPES = [
  'https://www.googleapis.com/auth/cloud-platform',
  'https://www.googleapis.com/auth/datastore',
];

/**
 * The Cloud Firestore service.
github firebase / user-privacy / functions / node_modules / @google-cloud / firestore / src / v1beta1 / firestore_client.js View on Github external
listDocuments: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'documents'
  ),
  listCollectionIds: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'collectionIds'
  ),
};

var STREAM_DESCRIPTORS = {
  batchGetDocuments: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  runQuery: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  write: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
  listen: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
};

/*!
 * The scopes needed to make gRPC calls to all of the methods defined in
 * this service.
 */
var ALL_SCOPES = [
  'https://www.googleapis.com/auth/cloud-platform',
  'https://www.googleapis.com/auth/datastore',
];

/**
 * The Cloud Firestore service.
 *
 * This service exposes several types of comparable timestamps:
github firebase / user-privacy / functions / node_modules / @google-cloud / firestore / src / v1beta1 / firestore_client.js View on Github external
'pageToken',
    'nextPageToken',
    'documents'
  ),
  listCollectionIds: new gax.PageDescriptor(
    'pageToken',
    'nextPageToken',
    'collectionIds'
  ),
};

var STREAM_DESCRIPTORS = {
  batchGetDocuments: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  runQuery: new gax.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
  write: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
  listen: new gax.StreamDescriptor(gax.StreamType.BIDI_STREAMING),
};

/*!
 * The scopes needed to make gRPC calls to all of the methods defined in
 * this service.
 */
var ALL_SCOPES = [
  'https://www.googleapis.com/auth/cloud-platform',
  'https://www.googleapis.com/auth/datastore',
];

/**
 * The Cloud Firestore service.
 *
 * This service exposes several types of comparable timestamps:
 *