Skip to content

Commit

Permalink
fix(docs): removed unused gRPC message types
Browse files Browse the repository at this point in the history
fix(docs): removed unused gRPC message types
  • Loading branch information
yoshi-automation authored and jkwlui committed Jan 4, 2019
1 parent 6d7194a commit 40e473d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 107 deletions.
56 changes: 0 additions & 56 deletions src/v2/doc/google/api/doc_distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,6 @@
const Distribution = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
* The range of the population values.
*
* @property {number} min
* The minimum of the population values.
*
* @property {number} max
* The maximum of the population values.
*
* @typedef Range
* @memberof google.api
* @see [google.api.Distribution.Range definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/api/distribution.proto}
*/
Range: {
// This is for documentation. Actual contents will be loaded by gRPC.
},

/**
* `BucketOptions` describes the bucket boundaries used to create a histogram
* for the distribution. The buckets can be in a linear sequence, an
Expand Down Expand Up @@ -227,44 +210,5 @@ const Distribution = {
Explicit: {
// This is for documentation. Actual contents will be loaded by gRPC.
}
},

/**
* Exemplars are example points that may be used to annotate aggregated
* distribution values. They are metadata that gives information about a
* particular value added to a Distribution bucket, such as a trace ID that
* was active when a value was added. They may contain further information,
* such as a example values and timestamps, origin, etc.
*
* @property {number} value
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
*
* @property {Object} timestamp
* The observation (sampling) time of the above value.
*
* This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp}
*
* @property {Object[]} attachments
* Contextual information about the example value. Examples are:
*
* Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
*
* Literal string: type.googleapis.com/google.protobuf.StringValue
*
* Labels dropped during aggregation:
* type.googleapis.com/google.monitoring.v3.DroppedLabels
*
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* This object should have the same structure as [Any]{@link google.protobuf.Any}
*
* @typedef Exemplar
* @memberof google.api
* @see [google.api.Distribution.Exemplar definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/api/distribution.proto}
*/
Exemplar: {
// This is for documentation. Actual contents will be loaded by gRPC.
}
};
20 changes: 0 additions & 20 deletions src/v2/doc/google/api/doc_metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,24 +252,4 @@ const MetricDescriptor = {
*/
MONEY: 6
}
};

/**
* A specific metric, identified by specifying values for all of the
* labels of a `MetricDescriptor`.
*
* @property {string} type
* An existing metric type, see google.api.MetricDescriptor.
* For example, `custom.googleapis.com/invoice/paid/amount`.
*
* @property {Object.<string, string>} labels
* The set of label values that uniquely identify this metric. All
* labels listed in the `MetricDescriptor` must be assigned values.
*
* @typedef Metric
* @memberof google.api
* @see [google.api.Metric definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/api/metric.proto}
*/
const Metric = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
19 changes: 0 additions & 19 deletions src/v2/doc/google/logging/v2/doc_logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,6 @@ const WriteLogEntriesResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

/**
* Error details for WriteLogEntries with partial success.
*
* @property {Object.<number, Object>} logEntryErrors
* When `WriteLogEntriesRequest.partial_success` is true, records the error
* status for entries that were not written due to a permanent error, keyed
* by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
*
* Failed requests for which no entries are written will not include
* per-entry errors.
*
* @typedef WriteLogEntriesPartialErrors
* @memberof google.logging.v2
* @see [google.logging.v2.WriteLogEntriesPartialErrors definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/logging/v2/logging.proto}
*/
const WriteLogEntriesPartialErrors = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

/**
* The parameters to `ListLogEntries`.
*
Expand Down
36 changes: 24 additions & 12 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
{
"updateTime": "2019-01-03T17:50:33.539672Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.4",
"dockerImage": "googleapis/artman@sha256:8b45fae963557c3299921037ecbb86f0689f41b1b4aea73408ebc50562cb2857"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f",
"internalRef": "221837528"
"sha": "2a5caab4315cb5ab3d5c97c90c6d4e9441052b16",
"internalRef": "227195651"
}
},
{
"git": {
"name": "googleapis-private",
"remote": "https://github.com/googleapis/googleapis-private.git",
"sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641",
"internalRef": "221340946"
"template": {
"name": "node_library",
"origin": "synthtool.gcp",
"version": "2018.12.6"
}
},
}
],
"destinations": [
{
"generator": {
"name": "artman",
"version": "0.16.0",
"dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b"
"client": {
"source": "googleapis",
"apiName": "logging",
"apiVersion": "v2",
"language": "nodejs",
"generator": "gapic",
"config": "google/logging/artman_logging.yaml"
}
}
]
Expand Down

0 comments on commit 40e473d

Please sign in to comment.