@google-cloud/logging
- Version 11.2.0
- Published
- 5.13 MB
- 16 dependencies
- Apache-2.0 license
Install
npm i @google-cloud/logging
yarn add @google-cloud/logging
pnpm add @google-cloud/logging
Overview
Cloud Logging Client Library for Node.js
Index
Variables
Functions
Classes
Interfaces
Enums
Type Aliases
Namespaces
protos.google.api
- ClientLibraryDestination
- ClientLibraryOrganization
- ClientLibrarySettings
- CommonLanguageSettings
- CppSettings
- CustomHttpPattern
- Distribution
- DotnetSettings
- FieldBehavior
- GoSettings
- Http
- HttpRule
- IClientLibrarySettings
- ICommonLanguageSettings
- ICppSettings
- ICustomHttpPattern
- IDistribution
- IDotnetSettings
- IGoSettings
- IHttp
- IHttpRule
- IJavaSettings
- ILabelDescriptor
- IMethodSettings
- IMetric
- IMetricDescriptor
- IMonitoredResource
- IMonitoredResourceDescriptor
- IMonitoredResourceMetadata
- INodeSettings
- IPhpSettings
- IPublishing
- IPythonSettings
- IResourceDescriptor
- IResourceReference
- IRubySettings
- JavaSettings
- LabelDescriptor
- LaunchStage
- MethodSettings
- Metric
- MetricDescriptor
- MonitoredResource
- MonitoredResourceDescriptor
- MonitoredResourceMetadata
- NodeSettings
- PhpSettings
- Publishing
- PythonSettings
- ResourceDescriptor
- ResourceReference
- RubySettings
protos.google.logging.v2
- BigQueryDataset
- BigQueryOptions
- BucketMetadata
- CmekSettings
- ConfigServiceV2
- CopyLogEntriesMetadata
- CopyLogEntriesRequest
- CopyLogEntriesResponse
- CreateBucketRequest
- CreateExclusionRequest
- CreateLinkRequest
- CreateLogMetricRequest
- CreateSinkRequest
- CreateViewRequest
- DeleteBucketRequest
- DeleteExclusionRequest
- DeleteLinkRequest
- DeleteLogMetricRequest
- DeleteLogRequest
- DeleteSinkRequest
- DeleteViewRequest
- GetBucketRequest
- GetCmekSettingsRequest
- GetExclusionRequest
- GetLinkRequest
- GetLogMetricRequest
- GetSettingsRequest
- GetSinkRequest
- GetViewRequest
- IBigQueryDataset
- IBigQueryOptions
- IBucketMetadata
- ICmekSettings
- ICopyLogEntriesMetadata
- ICopyLogEntriesRequest
- ICopyLogEntriesResponse
- ICreateBucketRequest
- ICreateExclusionRequest
- ICreateLinkRequest
- ICreateLogMetricRequest
- ICreateSinkRequest
- ICreateViewRequest
- IDeleteBucketRequest
- IDeleteExclusionRequest
- IDeleteLinkRequest
- IDeleteLogMetricRequest
- IDeleteLogRequest
- IDeleteSinkRequest
- IDeleteViewRequest
- IGetBucketRequest
- IGetCmekSettingsRequest
- IGetExclusionRequest
- IGetLinkRequest
- IGetLogMetricRequest
- IGetSettingsRequest
- IGetSinkRequest
- IGetViewRequest
- IIndexConfig
- ILink
- ILinkMetadata
- IListBucketsRequest
- IListBucketsResponse
- IListExclusionsRequest
- IListExclusionsResponse
- IListLinksRequest
- IListLinksResponse
- IListLogEntriesRequest
- IListLogEntriesResponse
- IListLogMetricsRequest
- IListLogMetricsResponse
- IListLogsRequest
- IListLogsResponse
- IListMonitoredResourceDescriptorsRequest
- IListMonitoredResourceDescriptorsResponse
- IListSinksRequest
- IListSinksResponse
- IListViewsRequest
- IListViewsResponse
- ILocationMetadata
- ILogBucket
- ILogEntry
- ILogEntryOperation
- ILogEntrySourceLocation
- ILogExclusion
- ILogMetric
- ILogSink
- ILogSplit
- ILogView
- IndexConfig
- IndexType
- ISettings
- ITailLogEntriesRequest
- ITailLogEntriesResponse
- IUndeleteBucketRequest
- IUpdateBucketRequest
- IUpdateCmekSettingsRequest
- IUpdateExclusionRequest
- IUpdateLogMetricRequest
- IUpdateSettingsRequest
- IUpdateSinkRequest
- IUpdateViewRequest
- IWriteLogEntriesPartialErrors
- IWriteLogEntriesRequest
- IWriteLogEntriesResponse
- LifecycleState
- Link
- LinkMetadata
- ListBucketsRequest
- ListBucketsResponse
- ListExclusionsRequest
- ListExclusionsResponse
- ListLinksRequest
- ListLinksResponse
- ListLogEntriesRequest
- ListLogEntriesResponse
- ListLogMetricsRequest
- ListLogMetricsResponse
- ListLogsRequest
- ListLogsResponse
- ListMonitoredResourceDescriptorsRequest
- ListMonitoredResourceDescriptorsResponse
- ListSinksRequest
- ListSinksResponse
- ListViewsRequest
- ListViewsResponse
- LocationMetadata
- LogBucket
- LogEntry
- LogEntryOperation
- LogEntrySourceLocation
- LogExclusion
- LoggingServiceV2
- LogMetric
- LogSink
- LogSplit
- LogView
- MetricsServiceV2
- OperationState
- Settings
- TailLogEntriesRequest
- TailLogEntriesResponse
- UndeleteBucketRequest
- UpdateBucketRequest
- UpdateCmekSettingsRequest
- UpdateExclusionRequest
- UpdateLogMetricRequest
- UpdateSettingsRequest
- UpdateSinkRequest
- UpdateViewRequest
- WriteLogEntriesPartialErrors
- WriteLogEntriesRequest
- WriteLogEntriesResponse
protos.google.logging.v2.ConfigServiceV2
- CopyLogEntriesCallback
- CreateBucketAsyncCallback
- CreateBucketCallback
- CreateExclusionCallback
- CreateLinkCallback
- CreateSinkCallback
- CreateViewCallback
- DeleteBucketCallback
- DeleteExclusionCallback
- DeleteLinkCallback
- DeleteSinkCallback
- DeleteViewCallback
- GetBucketCallback
- GetCmekSettingsCallback
- GetExclusionCallback
- GetLinkCallback
- GetSettingsCallback
- GetSinkCallback
- GetViewCallback
- ListBucketsCallback
- ListExclusionsCallback
- ListLinksCallback
- ListSinksCallback
- ListViewsCallback
- UndeleteBucketCallback
- UpdateBucketAsyncCallback
- UpdateBucketCallback
- UpdateCmekSettingsCallback
- UpdateExclusionCallback
- UpdateSettingsCallback
- UpdateSinkCallback
- UpdateViewCallback
protos.google.longrunning
- CancelOperationRequest
- DeleteOperationRequest
- GetOperationRequest
- ICancelOperationRequest
- IDeleteOperationRequest
- IGetOperationRequest
- IListOperationsRequest
- IListOperationsResponse
- IOperation
- IOperationInfo
- IWaitOperationRequest
- ListOperationsRequest
- ListOperationsResponse
- Operation
- OperationInfo
- Operations
- WaitOperationRequest
protos.google.protobuf
- Any
- DescriptorProto
- Duration
- Edition
- Empty
- EnumDescriptorProto
- EnumOptions
- EnumValueDescriptorProto
- EnumValueOptions
- ExtensionRangeOptions
- FeatureSet
- FeatureSetDefaults
- FieldDescriptorProto
- FieldMask
- FieldOptions
- FileDescriptorProto
- FileDescriptorSet
- FileOptions
- GeneratedCodeInfo
- IAny
- IDescriptorProto
- IDuration
- IEmpty
- IEnumDescriptorProto
- IEnumOptions
- IEnumValueDescriptorProto
- IEnumValueOptions
- IExtensionRangeOptions
- IFeatureSet
- IFeatureSetDefaults
- IFieldDescriptorProto
- IFieldMask
- IFieldOptions
- IFileDescriptorProto
- IFileDescriptorSet
- IFileOptions
- IGeneratedCodeInfo
- IListValue
- IMessageOptions
- IMethodDescriptorProto
- IMethodOptions
- IOneofDescriptorProto
- IOneofOptions
- IServiceDescriptorProto
- IServiceOptions
- ISourceCodeInfo
- IStruct
- ITimestamp
- IUninterpretedOption
- IValue
- ListValue
- MessageOptions
- MethodDescriptorProto
- MethodOptions
- NullValue
- OneofDescriptorProto
- OneofOptions
- ServiceDescriptorProto
- ServiceOptions
- SourceCodeInfo
- Struct
- Timestamp
- UninterpretedOption
- Value
Variables
variable v2
const v2: any;
Functions
function assignSeverityToEntries
assignSeverityToEntries: (entries: Entry | Entry[], severity: string) => Entry[];
Return an array of log entries with the desired severity assigned.
Parameter entries
Log entries.
Parameter severity
The desired severity level.
function detectServiceContext
detectServiceContext: (auth: GoogleAuth) => Promise<ServiceContext | null>;
For logged errors, users can provide a service context. This enables errors to be picked up Cloud Error Reporting. For more information see [this guide]https://cloud.google.com/error-reporting/docs/formatting-error-messages and the [official documentation]https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext.
function formatLogName
formatLogName: (projectId: string, name: string) => string;
Format the name of a log. A log's full name is in the format of 'projects/{projectId}/logs/{logName}'.
Parameter projectId
Parameter name
Classes
class Entry
class Entry {}
Create an entry object to define new data to insert into a meta.
Note, Cloud Logging Quotas and limits dictates that the maximum log entry size, including all LogEntry Resource properties, cannot exceed approximately 256 KB.
Parameter metadata
See a [LogEntry Resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
Parameter data
The data to use as the value for this log entry.
If providing an object, these value types are supported: -
String
-Number
-Boolean
-Buffer
-Object
-Array
Any other types are stringified with
String(value)
.Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const syslog = logging.log('syslog');const metadata = {resource: {type: 'gce_instance',labels: {zone: 'global',instance_id: '3'}}};const entry = syslog.entry(metadata, {delegate: 'my_username'});syslog.alert(entry, (err, apiResponse) => {if (!err) {// Log entry inserted successfully.}});//-// You will also receive `Entry` objects when using// Logging#getEntries() and Log#getEntries().//-logging.getEntries((err, entries) => {if (!err) {// entries[0].data = The data value from the log entry.}});
constructor
constructor(metadata?: LogEntry, data?: any);
property data
data: any;
property metadata
metadata: LogEntry;
method fromApiResponse_
static fromApiResponse_: (entry: google.logging.v2.LogEntry) => Entry;
Create an Entry object from an API response, such as
entries:list
.Parameter entry
An API representation of an entry. See a LogEntry.
Returns
{Entry}
method toJSON
toJSON: (options?: ToJsonOptions, projectId?: string) => EntryJson;
Serialize an entry to the format the API expects. Read more: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
Parameter options
Configuration object.
Parameter
{boolean} [options.removeCircular] Replace circular references in an object with a string value,
[Circular]
.Parameter projectId
GCP Project ID.
method toStructuredJSON
toStructuredJSON: ( projectId?: string, useMessageField?: boolean) => StructuredJson;
Serialize an entry to a standard format for any transports, e.g. agents. Read more: https://cloud.google.com/logging/docs/structured-logging
class Log
class Log implements LogSeverityFunctions {}
A log is a named collection of entries, each entry representing a timestamped event. Logs can be produced by Google Cloud Platform services, by third-party services, or by your applications. For example, the log
apache-access
is produced by the Apache Web Server, but the logcompute.googleapis.com/activity_log
is produced by Google Compute Engine.Parameter logging
Logging instance.
Parameter name
Name of the log.
Parameter options
Configuration object.
Parameter
{boolean} [options.removeCircular] Replace circular references in logged objects with a string value,
[Circular]
. (Default: false)Parameter
{number} [options.maxEntrySize] A max entry size
Parameter
{string[]} [options.jsonFieldsToTruncate] A list of JSON properties at the given full path to be truncated. Received values will be prepended to predefined list in the order received and duplicates discarded.
Parameter
{ApiResponseCallback} [options.defaultWriteDeleteCallback] A default global callback to be used for Log#write and Log#delete APIs when ApiResponseCallback callback was not supplied by caller in function parameters. Note that LogOptions#defaultWriteDeleteCallback is useful when Log#write and Log#delete APIs are called without
await
and without callback added explicitly to every call - this way LogOptions#defaultWriteDeleteCallback can serve as global callback handler, which for example could be used to catch all errors and eliminate crashes.Parameter
{boolean} [options.partialSuccess] Global flag indicating Whether a batch's valid entries should be written even if some other entry failed due to errors. Default is true. See partialSuccess for more info.
Example 1
import {Logging} from '@google-cloud/logging';import {LogOptions} from '@google-cloud/logging/build/src/log';const options: LogOptions = {maxEntrySize: 256,jsonFieldsToTruncate: ['jsonPayload.fields.metadata.structValue.fields.custom.stringValue',],defaultWriteDeleteCallback: (err: any) => {if (err) {console.log('Error: ' + err);}},};const logging = new Logging();const log = logging.log('syslog', options);
constructor
constructor(logging: Logging, name: string, options?: LogOptions);
property defaultWriteDeleteCallback
defaultWriteDeleteCallback?: ApiResponseCallback;
property formattedName_
formattedName_: string;
property jsonFieldsToTruncate
jsonFieldsToTruncate: string[];
property logging
logging: Logging;
property maxEntrySize
maxEntrySize?: number;
property name
name: string;
property partialSuccess
partialSuccess: boolean;
property removeCircular_
removeCircular_: boolean;
method alert
alert: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "ALERT".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.alert(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.alert(entry).then(data => {const apiResponse = data[0];});
method assignSeverityToEntries_
static assignSeverityToEntries_: ( entries: Entry | Entry[], severity: string) => Entry[];
Return an array of log entries with the desired severity assigned.
Parameter entries
Log entries.
Parameter severity
The desired severity level.
method critical
critical: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "CRITICAL".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.critical(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.critical(entry).then(data => {const apiResponse = data[0];});
method debug
debug: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "DEBUG".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.debug(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.debug(entry).then(data => {const apiResponse = data[0];});
method delete
delete: { (gaxOptions?: CallOptions): Promise<ApiResponse>; (gaxOptions: CallOptions, callback: ApiResponseCallback): void; (callback: ApiResponseCallback): void;};
Delete the log.
Parameter gaxOptions
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/global.html#CallOptions.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');log.delete((err, apiResponse) => {if (!err) {// The log was deleted.}});//-// If the callback is omitted, we'll return a Promise.//-log.delete().then(data => {const apiResponse = data[0];});Example 2
include:samples/logs.js region_tag:logging_delete_log Another example:
method emergency
emergency: { ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "EMERGENCY".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.emergency(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.emergency(entry).then(data => {const apiResponse = data[0];});
method entry
entry: { (metadata?: LogEntry): Entry; (data?: string | {}): Entry; (metadata?: LogEntry, data?: string | {}): Entry;};
Create an entry object for this log.
Using this method will not itself make any API requests. You will use the object returned in other API calls, such as Log#write.
Note, Cloud Logging Quotas and limits dictates that the maximum log entry size, including all [LogEntry Resource properties]https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry, cannot exceed _approximately_ 256 KB.
Parameter metadata
See a [LogEntry Resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
Parameter data
The data to use as the value for this log entry.
Returns
{Entry}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const metadata = {resource: {type: 'gce_instance',labels: {zone: 'global',instance_id: '3'}}};const entry = log.entry(metadata, {delegate: 'my_username'});entry.toJSON();// {// logName: 'projects/grape-spaceship-123/logs/syslog',// resource: {// type: 'gce_instance',// labels: {// zone: 'global',// instance_id: '3'// }// },// jsonPayload: {// delegate: 'my_username'// }// }
method error
error: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "ERROR".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.error(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.error(entry).then(data => {const apiResponse = data[0];});
method formatName_
static formatName_: (projectId: string, name: string) => string;
Format the name of a log. A log's full name is in the format of 'projects/{projectId}/logs/{logName}'.
Returns
{string}
method getEntries
getEntries: { (options?: GetEntriesRequest): Promise<GetEntriesResponse>; (callback: GetEntriesCallback): void; (options: GetEntriesRequest, callback: GetEntriesCallback): void;};
This method is a wrapper around {module:logging#getEntries}, but with a filter specified to only return entries from this log.
Parameter query
Query object for listing entries.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');log.getEntries((err, entries) => {// `entries` is an array of Cloud Logging entry objects.// See the `data` property to read the data from the entry.});//-// To control how many API requests are made and page through the results// manually, set `autoPaginate` to `false`.//-function callback(err, entries, nextQuery, apiResponse) {if (nextQuery) {// More results exist.log.getEntries(nextQuery, callback);}}log.getEntries({autoPaginate: false}, callback);//-// If the callback is omitted, we'll return a Promise.//-log.getEntries().then(data => {const entries = data[0];});
method getEntriesStream
getEntriesStream: (options: GetEntriesRequest) => any;
This method is a wrapper around {module:logging#getEntriesStream}, but with a filter specified to only return {module:logging/entry} objects from this log.
Log#getEntriesStream
Parameter query
Query object for listing entries.
Returns
{ReadableStream} A readable stream that emits Entry instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');log.getEntriesStream().on('error', console.error).on('data', entry => {// `entry` is a Cloud Logging entry object.// See the `data` property to read the data from the entry.}).on('end', function() {// All entries retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-log.getEntriesStream().on('data', function(entry) {this.end();});
method info
info: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "INFO".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.info(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.info(entry).then(data => {const apiResponse = data[0];});
method notice
notice: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "NOTICE".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.notice(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.notice(entry).then(data => {const apiResponse = data[0];});
method tailEntries
tailEntries: (options?: TailEntriesRequest) => any;
This method is a wrapper around {module:logging#tailEntries}, but with a filter specified to only return {module:logging/entry} objects from this log.
Log#tailEntries
Parameter query
Query object for tailing entries.
Returns
{DuplexStream} A duplex stream that emits TailEntriesResponses containing an array of Entry instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');log.tailEntries().on('error', console.error).on('data', resp => {console.log(resp.entries);console.log(resp.suppressionInfo);}).on('end', function() {// All entries retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-log.tailEntries().on('data', function(entry) {this.end();});
method warning
warning: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write a log entry with a severity of "WARNING".
This is a simple wrapper around Log.write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.warning(entry, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.warning(entry).then(data => {const apiResponse = data[0];});
method write
write: { (entry: Entry | Entry[], options?: WriteOptions): Promise<ApiResponse>; ( entry: Entry | Entry[], options: WriteOptions, callback: ApiResponseCallback ): void; (entry: Entry | Entry[], callback: ApiResponseCallback): void;};
Write log entries to Cloud Logging.
Note, Cloud Logging Quotas and limits dictates that the maximum cumulative size of all entries per write, including all [LogEntry Resource properties]https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry, cannot exceed _approximately_ 10 MB.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const entry = log.entry('gce_instance', {instance: 'my_instance'});log.write(entry, (err, apiResponse) => {if (!err) {// The log entry was written.}});//-// You may also pass multiple log entries to write.//-const secondEntry = log.entry('compute.googleapis.com', {user: 'my_username'});log.write([entry,secondEntry], (err, apiResponse) => {if (!err) {// The log entries were written.}});//-// To save some steps, you can also pass in plain values as your entries.// Note, however, that you must provide a configuration object to specify// the resource.//-const entries = [{user: 'my_username'},{home: process.env.HOME}];const options = {resource: 'compute.googleapis.com'};log.write(entries, options, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-log.write(entries).then(data => {const apiResponse = data[0];});Example 2
include:samples/logs.js region_tag:logging_write_log_entry Another example:
Example 3
include:samples/logs.js region_tag:logging_write_log_entry_advanced Another example:
class Logging
class Logging {}
Cloud Logging allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services (AWS).
See Introduction to the Cloud Logging API
Parameter options
Configuration options.
Example 1
Import the client library
const {Logging} = require('@google-cloud/logging');Example 2
Create a client that uses Application Default Credentials (ADC):
const logging = new Logging();Example 3
Create a client with explicitcredentials:
const logging = new Logging({ projectId:'your-project-id', keyFilename: '/path/to/keyfile.json'});Example 4
include:samples/quickstart.js region_tag:logging_quickstart Full quickstart example:
constructor
constructor(options?: LoggingOptions, gaxInstance?: any);
property api
api: { [key: string]: gax.ClientStub };
property auth
auth: gax.GoogleAuth;
property configService
configService?: any;
property detectedResource
detectedResource?: {};
property loggingService
loggingService?: any;
property options
options: LoggingOptions;
property projectId
projectId: string;
method createSink
createSink: { (name: string, config: CreateSinkRequest): Promise<[Sink, LogSink]>; ( name: string, config: CreateSinkRequest, callback: CreateSinkCallback ): void;};
CreateSinkCallback
Parameter err
Request error, if any.
Parameter sink
The new Sink.
Parameter apiResponse
The full API response.
method entry
entry: (resource?: LogEntry, data?: {} | string) => Entry;
Create an entry object.
Using this method will not itself make any API requests. You will use the object returned in other API calls, such as Log#write.
Note, Cloud Logging Quotas and limits dictates that the maximum log entry size, including all [LogEntry Resource properties]https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry, cannot exceed _approximately_ 256 KB.
Parameter resource
See a [Monitored Resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource).
Parameter data
The data to use as the value for this log entry.
Returns
{Entry}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const resource = {type: 'gce_instance',labels: {zone: 'global',instance_id: '3'}};const entry = logging.entry(resource, {delegate: 'my_username'});entry.toJSON();// {// resource: {// type: 'gce_instance',// labels: {// zone: 'global',// instance_id: '3'// }// },// jsonPayload: {// delegate: 'my_username'// }// }
method getEntries
getEntries: { (options?: GetEntriesRequest): Promise<GetEntriesResponse>; (callback: GetEntriesCallback): void; (options: GetEntriesRequest, callback: GetEntriesCallback): void;};
List the entries in your logs.
Parameter query
Query object for listing entries.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getEntries((err, entries) => {// `entries` is an array of Cloud Logging entry objects.// See the `data` property to read the data from the entry.});//-// To control how many API requests are made and page through the results// manually, set `autoPaginate` to `false`.//-function callback(err, entries, nextQuery, apiResponse) {if (nextQuery) {// More results exist.logging.getEntries(nextQuery, callback);}}logging.getEntries({autoPaginate: false}, callback);//-// If the callback is omitted, we'll return a Promise.//-logging.getEntries().then(data => {const entries = data[0];});Example 2
include:samples/logs.js region_tag:logging_list_log_entries Another example:
Example 3
include:samples/logs.js region_tag:logging_list_log_entries_advanced Another example:
method getEntriesStream
getEntriesStream: (options?: GetEntriesRequest) => Duplex;
List the Entry objects in your logs as a readable object stream.
Logging#getEntriesStream
Parameter query
Query object for listing entries.
Returns
{ReadableStream} A readable stream that emits Entry instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getEntriesStream().on('error', console.error).on('data', entry => {// `entry` is a Cloud Logging entry object.// See the `data` property to read the data from the entry.}).on('end', function() {// All entries retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-logging.getEntriesStream().on('data', function(entry) {this.end();});
method getLogs
getLogs: { (options?: GetLogsRequest): Promise<GetLogsResponse>; (callback: GetLogsCallback): void; (options: GetLogsRequest, callback: GetLogsCallback): void;};
List the entries in your logs.
Parameter query
Query object for listing entries.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getLogs((err, logs) => {// `logs` is an array of Cloud Logging log objects.});//-// To control how many API requests are made and page through the results// manually, set `autoPaginate` to `false`.//-function callback(err, entries, nextQuery, apiResponse) {if (nextQuery) {// More results exist.logging.getLogs(nextQuery, callback);}}logging.getLogs({autoPaginate: false}, callback);//-// If the callback is omitted, we'll return a Promise.//-logging.getLogs().then(data => {const entries = data[0];});Example 2
include:samples/logs.js region_tag:logging_list_logs Another example:
method getLogsStream
getLogsStream: (options?: GetLogsRequest) => Duplex;
List the Log objects in your project as a readable object stream.
Logging#getLogsStream
Parameter query
Query object for listing entries.
Returns
{ReadableStream} A readable stream that emits Log instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getLogsStream().on('error', console.error).on('data', log => {// `log` is a Cloud Logging log object.}).on('end', function() {// All logs retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-logging.getLogsStream().on('data', log => {this.end();});
method getSinks
getSinks: { (options?: GetSinksRequest): Promise<GetSinksResponse>; (callback: GetSinksCallback): void; (options: GetSinksRequest, callback: GetSinksCallback): void;};
Get the sinks associated with this project.
Parameter query
Query object for listing sinks.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getSinks((err, sinks) => {// sinks is an array of Sink objects.});//-// If the callback is omitted, we'll return a Promise.//-logging.getSinks().then(data => {const sinks = data[0];});Example 2
include:samples/sinks.js region_tag:logging_list_sinks Another example:
method getSinksStream
getSinksStream: (options: GetSinksRequest) => Duplex;
Get the Sink objects associated with this project as a readable object stream.
Logging#getSinksStream
Parameter query
Query object for listing sinks.
Returns
{ReadableStream} A readable stream that emits Sink instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.getSinksStream().on('error', console.error).on('data', sink => {// `sink` is a Sink object.}).on('end', function() {// All sinks retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-logging.getSinksStream().on('data', function(sink) {this.end();});
method log
log: (name: string, options?: LogOptions) => Log;
Get a reference to a Cloud Logging log.
See Log Overview
Parameter name
Name of the existing log.
Parameter options
Configuration object.
Parameter
{boolean} [options.removeCircular] Replace circular references in logged objects with a string value,
[Circular]
. (Default: false)Returns
{Log}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.log('my-log');
method logSync
logSync: ( name: string, transport?: Writable, options?: LogSyncOptions) => LogSync;
Get a reference to a Cloud Logging logSync.
Parameter name
Name of the existing log.
Parameter transport
An optional write stream.
Parameter options
An optional configuration object.
Returns
{LogSync}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();// Optional: enrich logs with additional contextawait logging.setProjectId();await logging.setDetectedResource();// Default transport writes to process.stdoutconst log = logging.logSync('my-log');
method request
request: <TResponse = any>( config: RequestConfig, callback?: RequestCallback<TResponse>) => Duplex;
Funnel all API requests through this method, to be sure we have a project ID.
Parameter config
Configuration object.
Parameter
{object} config.gaxOpts GAX options.
Parameter
{function} config.method The gax method to call.
Parameter
{object} config.reqOpts Request options.
Parameter callback
Callback function.
method setAclForBucket_
setAclForBucket_: (config: CreateSinkRequest) => Promise<void>;
This method is called when creating a sink with a Bucket destination. The bucket must first grant proper ACL access to the Cloud Logging account.
The parameters are the same as what Logging#createSink accepts.
method setAclForDataset_
setAclForDataset_: (config: CreateSinkRequest) => Promise<void>;
This method is called when creating a sink with a Dataset destination. The dataset must first grant proper ACL access to the Cloud Logging account.
The parameters are the same as what Logging#createSink accepts.
method setAclForTopic_
setAclForTopic_: (config: CreateSinkRequest) => Promise<void>;
This method is called when creating a sink with a Topic destination. The topic must first grant proper ACL access to the Cloud Logging account.
The parameters are the same as what Logging#createSink accepts.
method setDetectedResource
setDetectedResource: () => Promise<void>;
setResource detects and sets a detectedresource object on the Logging instance. It can be invoked once to ensure ensuing LogSync entries contain resource context.
method setProjectId
setProjectId: (reqOpts?: {}) => Promise<void>;
setProjectId detects and sets a projectId string on the Logging instance. It can be invoked once to ensure ensuing LogSync entries have a projectID.
Parameter reqOpts
method sink
sink: (name: string) => Sink;
Get a reference to a Cloud Logging sink.
See Sink Overview
Parameter name
Name of the existing sink.
Returns
{Sink}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');
method tailEntries
tailEntries: (options?: TailEntriesRequest) => Duplex;
Streaming read of live logs as log entries are ingested. Until the stream is terminated, it will continue reading logs.
Logging#tailEntries
Parameter query
Query object for tailing entries.
Returns
{DuplexStream} A duplex stream that emits TailEntriesResponses containing an array of Entry instances.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();logging.tailEntries().on('error', console.error).on('data', resp => {console.log(resp.entries);console.log(resp.suppressionInfo);}).on('end', function() {// All entries retrieved.});//-// If you anticipate many results, you can end a stream early to prevent// unnecessary processing and API requests.//-logging.getEntriesStream().on('data', function(entry) {this.end();});
class LogSync
class LogSync implements LogSeverityFunctions {}
A logSync is a named collection of entries in structured log format. In Cloud Logging, structured logs refer to log entries that use the jsonPayload field to add structure to their payloads. In most GCP environments, like GKE and Cloud Functions, structured logs written to process.stdout are automatically picked up and formatted by logging agents.
Recommended for Serverless environment logging, especially where async log calls made by the
Log
class can be dropped by the CPU.Parameter logging
Logging instance.
Parameter name
Name of the logSync.
Parameter transport
transport A custom writable transport stream. Default: process.stdout.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('mylog');
constructor
constructor( logging: Logging, name: string, transport?: Writable, options?: LogSyncOptions);
property formattedName_
formattedName_: string;
property logging
logging: Logging;
property name
name: string;
property transport
transport: Writable;
property useMessageField_
useMessageField_: boolean;
method alert
alert: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "ALERT".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.alert(entry);
method critical
critical: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "CRITICAL".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.critical(entry);
method debug
debug: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "DEBUG".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.debug(entry);
method emergency
emergency: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "EMERGENCY".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.emergency(entry);
method entry
entry: { (metadata?: LogEntry): Entry; (data?: string | {}): Entry; (metadata?: LogEntry, data?: string | {}): Entry;};
Create an entry object for this log.
Using this method will not itself do any logging.
Parameter metadata
See a [LogEntry Resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
Parameter data
The data to use as the value for this log entry.
Returns
{Entry}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const metadata = {resource: {type: 'gce_instance',labels: {zone: 'global',instance_id: '3'}}};const entry = log.entry(metadata, {delegate: 'my_username'});
method error
error: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "ERROR".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.error(entry);
method info
info: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "INFO".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.info(entry);
method notice
notice: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "NOTICE".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.notice(entry);
method warning
warning: (entry: Entry | Entry[], options?: WriteOptions) => void;
Write a log entry with a severity of "WARNING".
This is a simple wrapper around LogSync#write. All arguments are the same as documented there.
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const log = logging.logSync('my-log');const entry = log.entry('gce_instance', {instance: 'my_instance'});log.warning(entry);
method write
write: (entry: Entry | Entry[], opts?: WriteOptions) => void;
Write log entries to a custom transport (default: process.stdout).
Parameter entry
A log entry, or array of entries, to write.
Parameter options
Write options
Example 1
const entry = log.entry('gce_instance', {instance: 'my_instance'});log.write(entry);//-// You may also pass multiple log entries to write.//-const secondEntry = log.entry('compute.googleapis.com', {user: 'my_username'});log.write([entry, secondEntry]);//-// To save some steps, you can also pass in plain values as your entries.// Note, however, that you must provide a configuration object to specify// the resource.//-const entries = [{user: 'my_username'},{home: process.env.HOME}];const options = {resource: 'compute.googleapis.com'};log.write(entries, options);log.write(entries);});
class Sink
class Sink {}
A sink is an object that lets you to specify a set of log entries to export to a particular destination. Cloud Logging lets you export log entries to destinations including Cloud Storage buckets (for long term log storage), Google BigQuery datasets (for log analysis), Google Pub/Sub (for streaming to other applications).
Parameter logging
Logging instance.
Parameter name
Name of the sink.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');
constructor
constructor(logging: Logging, name: string);
property formattedName_
formattedName_: string;
property logging
logging: Logging;
property metadata
metadata?: google.logging.v2.ILogSink;
property name
name: string;
method create
create: { (config: CreateSinkRequest): Promise<[Sink, LogSink]>; (config: CreateSinkRequest, callback: CreateSinkCallback): void;};
Create a sink.
Parameter config
Config to set for the sink.
Parameter callback
Callback function.
Returns
{Promise}
Throws
{Error} if a config object is not provided.
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');const config = {destination: {// ...}};sink.create(config, (err, sink, apiResponse) => {if (!err) {// The sink was created successfully.}});//-// If the callback is omitted, we'll return a Promise.//-sink.create(config).then(data => {const sink = data[0];const apiResponse = data[1];});Example 2
include:samples/sinks.js region_tag:logging_create_sink Another example:
See Also
Logging#createSink
method delete
delete: { (gaxOptions?: CallOptions): Promise<DeleteResponse>; (callback: DeleteCallback): void; (gaxOptions: CallOptions, callback: DeleteCallback): void;};
Delete the sink.
Parameter gaxOptions
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/global.html#CallOptions.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');sink.delete((err, apiResponse) => {if (!err) {// The log was deleted.}});//-// If the callback is omitted, we'll return a Promise.//-sink.delete().then(data => {const apiResponse = data[0];});Example 2
include:samples/sinks.js region_tag:logging_delete_sink Another example:
method getMetadata
getMetadata: { (gaxOptions?: CallOptions): Promise<SinkMetadataResponse>; (callback: SinkMetadataCallback): void; (gaxOptions: CallOptions, callback: SinkMetadataCallback): void;};
Get the sink's metadata.
Parameter gaxOptions
Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/global.html#CallOptions.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');sink.getMetadata((err, metadata, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-sink.getMetadata().then(data => {const metadata = data[0];});Example 2
include:samples/sinks.js region_tag:logging_get_sink Another example:
method setFilter
setFilter: { (filter: string): Promise<SinkMetadataResponse>; (filter: string, callback: SinkMetadataCallback): void;};
Set the sink's filter.
This will override any filter that was previously set.
Parameter filter
The new filter.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');const filter = 'metadata.severity = ALERT';sink.setFilter(filter, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-sink.setFilter(filter).then(data => {const apiResponse = data[0];});
method setMetadata
setMetadata: { (metadata: SetSinkMetadata): Promise<SinkMetadataResponse>; (metadata: SetSinkMetadata, callback: SinkMetadataCallback): void;};
Set the sink's metadata.
Note: If the sink was previously created or updated with uniqueWriterIdentity = true, then you must update the sink by setting uniqueWriterIdentity = true. Read more about using a unique writer identity here: https://cloud.google.com/logging/docs/api/tasks/exporting-logs#using_a_unique_writer_identity
See Sink Resource See projects.sink.update API Documentation
Parameter metadata
See a [Sink resource](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.sinks#LogSink).
Parameter
{object} [metadata.gaxOptions] Request configuration options, outlined here: https://googleapis.github.io/gax-nodejs/global.html#CallOptions.
Parameter callback
Callback function.
Returns
{Promise}
Example 1
const {Logging} = require('@google-cloud/logging');const logging = new Logging();const sink = logging.sink('my-sink');const metadata = {filter: 'metadata.severity = ALERT'};sink.setMetadata(metadata, (err, apiResponse) => {});//-// If the callback is omitted, we'll return a Promise.//-sink.setMetadata(metadata).then(data => {const apiResponse = data[0];});Example 2
include:samples/sinks.js region_tag:logging_update_sink Another example:
Interfaces
interface AbortableDuplex
interface AbortableDuplex extends Duplex {}
method abort
abort: () => void;
interface CreateSinkCallback
interface CreateSinkCallback {}
call signature
(err: Error | null, sink?: Sink | null, resp?: LogSink): void;
interface CreateSinkRequest
interface CreateSinkRequest {}
property destination
destination: any;
property filter
filter?: string;
property gaxOptions
gaxOptions?: gax.CallOptions;
property includeChildren
includeChildren?: boolean;
property name
name?: string;
property outputVersionFormat
outputVersionFormat?: google.logging.v2.LogSink.VersionFormat;
property uniqueWriterIdentity
uniqueWriterIdentity?: string | boolean;
interface DeleteCallback
interface DeleteCallback {}
call signature
(error?: Error | null, response?: google.protobuf.Empty): void;
interface GetEntriesCallback
interface GetEntriesCallback {}
call signature
( err: Error | null, entries?: Entry[], request?: google.logging.v2.IListLogEntriesRequest, apiResponse?: google.logging.v2.IListLogEntriesResponse): void;
interface GetLogsCallback
interface GetLogsCallback {}
call signature
( err: Error | null, entries?: Sink[], request?: google.logging.v2.IListLogsRequest, apiResponse?: google.logging.v2.IListLogsResponse): void;
interface GetLogsRequest
interface GetLogsRequest {}
property autoPaginate
autoPaginate?: boolean;
property gaxOptions
gaxOptions?: gax.CallOptions;
property maxApiCalls
maxApiCalls?: number;
property maxResults
maxResults?: number;
property pageSize
pageSize?: number;
property pageToken
pageToken?: string;
interface GetSinksCallback
interface GetSinksCallback {}
call signature
( err: Error | null, entries?: Sink[], request?: google.logging.v2.IListSinksRequest, apiResponse?: google.logging.v2.IListSinksResponse): void;
interface GetSinksRequest
interface GetSinksRequest {}
property autoPaginate
autoPaginate?: boolean;
property gaxOptions
gaxOptions?: gax.CallOptions;
property maxApiCalls
maxApiCalls?: number;
property maxResults
maxResults?: number;
property pageSize
pageSize?: number;
property pageToken
pageToken?: string;
interface HttpRequest
interface CloudLoggingHttpRequest {}
property cacheFillBytes
cacheFillBytes?: number;
property cacheHit
cacheHit?: boolean;
property cacheLookup
cacheLookup?: boolean;
property cacheValidatedWithOriginServer
cacheValidatedWithOriginServer?: boolean;
property latency
latency?: { seconds: number; nanos: number;};
property protocol
protocol?: string;
property referer
referer?: string;
property remoteIp
remoteIp?: string;
property requestMethod
requestMethod?: string;
property requestSize
requestSize?: number;
property requestUrl
requestUrl?: string;
property responseSize
responseSize?: number;
property serverIp
serverIp?: string;
property status
status?: number;
property userAgent
userAgent?: string;
interface LoggingOptions
interface LoggingOptions extends gax.GrpcClientOptions {}
property apiEndpoint
apiEndpoint?: string;
property autoRetry
autoRetry?: boolean;
property maxRetries
maxRetries?: number;
interface RequestCallback
interface RequestCallback<TResponse> {}
call signature
(err: Error | null, res?: TResponse): void;
interface RequestConfig
interface RequestConfig {}
interface ServiceContext
interface ServiceContext {}
For logged errors, one can provide a the service context. For more information see [this guide]https://cloud.google.com/error-reporting/docs/formatting-error-messages and the [official documentation]https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext.
interface TailEntriesResponse
interface TailEntriesResponse {}
property entries
entries: Entry[];
property suppressionInfo
suppressionInfo: google.logging.v2.TailLogEntriesResponse.SuppressionInfo;
Enums
enum Severity
enum Severity { emergency = 0, alert = 1, critical = 2, error = 3, warning = 4, notice = 5, info = 6, debug = 7,}
Type Aliases
type Client
type Client = string;
type DeleteResponse
type DeleteResponse = google.protobuf.Empty;
type GetEntriesResponse
type GetEntriesResponse = [ Entry[], google.logging.v2.IListLogEntriesRequest, google.logging.v2.IListLogEntriesResponse];
type GetLogsResponse
type GetLogsResponse = [ Sink[], google.logging.v2.IListLogsRequest, google.logging.v2.IListLogsResponse];
type GetSinksResponse
type GetSinksResponse = [ Sink[], google.logging.v2.IListSinksRequest, google.logging.v2.IListSinksResponse];
type LogSink
type LogSink = google.logging.v2.ILogSink;
type MonitoredResource
type MonitoredResource = google.api.IMonitoredResource;
type SeverityNames
type SeverityNames = keyof typeof Severity;
Namespaces
namespace middleware
module 'build/src/middleware/index.d.ts' {}
namespace express
module 'build/src/middleware/express/index.d.ts' {}
function makeMiddleware
makeMiddleware: <LoggerType>( projectId: string, makeChildLogger: ( trace: string, span?: string, traceSampled?: boolean ) => LoggerType, emitRequestLog?: ( httpRequest: CloudLoggingHttpRequest, trace: string, span?: string, traceSampled?: boolean ) => void) => (req: ServerRequest, res: http.ServerResponse, next: Function) => void;
Generates an express middleware that installs a request-specific logger on the
request
object. It optionally can do HttpRequest timing that can be used for generating request logs. This can be used to integrate with logging libraries such as winston and bunyan.Parameter projectId
Generated traceIds will be associated with this project.
Parameter makeChildLogger
A function that generates logger instances that will be installed onto
req
asreq.log
. The logger should include the trace in each log entry's metadata (associated with the LOGGING_TRACE_KEY property.Parameter emitRequestLog
Optional. A function that will emit a parent request log. While some environments like GAE and GCF emit parent request logs automatically, other environments do not. When provided this function will be called with a populated
CloudLoggingHttpRequest
which can be emitted as request log.
namespace protos
module 'build/protos/protos.d.ts' {}
Namespace google.
namespace protos.google
namespace protos.google {}
Namespace google.
namespace protos.google.api
namespace protos.google.api {}
Namespace api.
class ClientLibrarySettings
class ClientLibrarySettings implements IClientLibrarySettings {}
Represents a ClientLibrarySettings.
constructor
constructor(properties?: IClientLibrarySettings);
Constructs a new ClientLibrarySettings.
Parameter properties
Properties to set
property cppSettings
cppSettings?: ICppSettings;
ClientLibrarySettings cppSettings.
property dotnetSettings
dotnetSettings?: IDotnetSettings;
ClientLibrarySettings dotnetSettings.
property goSettings
goSettings?: IGoSettings;
ClientLibrarySettings goSettings.
property javaSettings
javaSettings?: IJavaSettings;
ClientLibrarySettings javaSettings.
property launchStage
launchStage: | LaunchStage | 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED';
ClientLibrarySettings launchStage.
property nodeSettings
nodeSettings?: INodeSettings;
ClientLibrarySettings nodeSettings.
property phpSettings
phpSettings?: IPhpSettings;
ClientLibrarySettings phpSettings.
property pythonSettings
pythonSettings?: IPythonSettings;
ClientLibrarySettings pythonSettings.
property restNumericEnums
restNumericEnums: boolean;
ClientLibrarySettings restNumericEnums.
property rubySettings
rubySettings?: IRubySettings;
ClientLibrarySettings rubySettings.
property version
version: string;
ClientLibrarySettings version.
method create
static create: ( properties?: google.api.IClientLibrarySettings) => google.api.ClientLibrarySettings;
Creates a new ClientLibrarySettings instance using the specified properties.
Parameter properties
Properties to set
Returns
ClientLibrarySettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.ClientLibrarySettings;
Decodes a ClientLibrarySettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ClientLibrarySettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.ClientLibrarySettings;
Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ClientLibrarySettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ClientLibrarySettings message. Does not implicitly verify messages.
Parameter message
ClientLibrarySettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly verify messages.
Parameter message
ClientLibrarySettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.ClientLibrarySettings;
Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ClientLibrarySettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ClientLibrarySettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ClientLibrarySettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
Parameter message
ClientLibrarySettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ClientLibrarySettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CommonLanguageSettings
class CommonLanguageSettings implements ICommonLanguageSettings {}
Represents a CommonLanguageSettings.
constructor
constructor(properties?: ICommonLanguageSettings);
Constructs a new CommonLanguageSettings.
Parameter properties
Properties to set
property destinations
destinations: ClientLibraryDestination[];
CommonLanguageSettings destinations.
property referenceDocsUri
referenceDocsUri: string;
CommonLanguageSettings referenceDocsUri.
method create
static create: ( properties?: google.api.ICommonLanguageSettings) => google.api.CommonLanguageSettings;
Creates a new CommonLanguageSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
CommonLanguageSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.CommonLanguageSettings;
Decodes a CommonLanguageSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CommonLanguageSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.CommonLanguageSettings;
Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CommonLanguageSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CommonLanguageSettings message. Does not implicitly verify messages.
Parameter message
CommonLanguageSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly verify messages.
Parameter message
CommonLanguageSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.CommonLanguageSettings;
Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CommonLanguageSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CommonLanguageSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CommonLanguageSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
Parameter message
CommonLanguageSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CommonLanguageSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CppSettings
class CppSettings implements ICppSettings {}
Represents a CppSettings.
constructor
constructor(properties?: ICppSettings);
Constructs a new CppSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
CppSettings common.
method create
static create: (properties?: google.api.ICppSettings) => google.api.CppSettings;
Creates a new CppSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
CppSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.CppSettings;
Decodes a CppSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CppSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.CppSettings;
Decodes a CppSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CppSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.ICppSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CppSettings message. Does not implicitly verify messages.
Parameter message
CppSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.ICppSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CppSettings message, length delimited. Does not implicitly verify messages.
Parameter message
CppSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.CppSettings;
Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CppSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CppSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CppSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.CppSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CppSettings message. Also converts values to other types if specified.
Parameter message
CppSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CppSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CustomHttpPattern
class CustomHttpPattern implements ICustomHttpPattern {}
Represents a CustomHttpPattern.
constructor
constructor(properties?: ICustomHttpPattern);
Constructs a new CustomHttpPattern.
Parameter properties
Properties to set
property kind
kind: string;
CustomHttpPattern kind.
property path
path: string;
CustomHttpPattern path.
method create
static create: ( properties?: google.api.ICustomHttpPattern) => google.api.CustomHttpPattern;
Creates a new CustomHttpPattern instance using the specified properties.
Parameter properties
Properties to set
Returns
CustomHttpPattern instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.CustomHttpPattern;
Decodes a CustomHttpPattern message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CustomHttpPattern
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.CustomHttpPattern;
Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CustomHttpPattern
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CustomHttpPattern message. Does not implicitly verify messages.
Parameter message
CustomHttpPattern message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly verify messages.
Parameter message
CustomHttpPattern message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.CustomHttpPattern;
Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CustomHttpPattern
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CustomHttpPattern
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CustomHttpPattern to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
Parameter message
CustomHttpPattern
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CustomHttpPattern message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Distribution
class Distribution implements IDistribution {}
Represents a Distribution.
constructor
constructor(properties?: IDistribution);
Constructs a new Distribution.
Parameter properties
Properties to set
property bucketCounts
bucketCounts: any[];
Distribution bucketCounts.
property bucketOptions
bucketOptions?: Distribution.IBucketOptions;
Distribution bucketOptions.
property count
count: any;
Distribution count.
property exemplars
exemplars: Distribution.IExemplar[];
Distribution exemplars.
property mean
mean: number;
Distribution mean.
property range
range?: Distribution.IRange;
Distribution range.
property sumOfSquaredDeviation
sumOfSquaredDeviation: number;
Distribution sumOfSquaredDeviation.
method create
static create: ( properties?: google.api.IDistribution) => google.api.Distribution;
Creates a new Distribution instance using the specified properties.
Parameter properties
Properties to set
Returns
Distribution instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution;
Decodes a Distribution message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Distribution
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution;
Decodes a Distribution message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Distribution
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IDistribution, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Distribution message. Does not implicitly verify messages.
Parameter message
Distribution message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IDistribution, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Distribution message, length delimited. Does not implicitly verify messages.
Parameter message
Distribution message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.Distribution;
Creates a Distribution message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Distribution
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Distribution
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Distribution to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Distribution message. Also converts values to other types if specified.
Parameter message
Distribution
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Distribution message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DotnetSettings
class DotnetSettings implements IDotnetSettings {}
Represents a DotnetSettings.
constructor
constructor(properties?: IDotnetSettings);
Constructs a new DotnetSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
DotnetSettings common.
property forcedNamespaceAliases
forcedNamespaceAliases: string[];
DotnetSettings forcedNamespaceAliases.
property handwrittenSignatures
handwrittenSignatures: string[];
DotnetSettings handwrittenSignatures.
property ignoredResources
ignoredResources: string[];
DotnetSettings ignoredResources.
property renamedResources
renamedResources: { [k: string]: string };
DotnetSettings renamedResources.
property renamedServices
renamedServices: { [k: string]: string };
DotnetSettings renamedServices.
method create
static create: ( properties?: google.api.IDotnetSettings) => google.api.DotnetSettings;
Creates a new DotnetSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
DotnetSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.DotnetSettings;
Decodes a DotnetSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DotnetSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.DotnetSettings;
Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DotnetSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IDotnetSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DotnetSettings message. Does not implicitly verify messages.
Parameter message
DotnetSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IDotnetSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DotnetSettings message, length delimited. Does not implicitly verify messages.
Parameter message
DotnetSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.DotnetSettings;
Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DotnetSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DotnetSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DotnetSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
Parameter message
DotnetSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DotnetSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GoSettings
class GoSettings implements IGoSettings {}
Represents a GoSettings.
constructor
constructor(properties?: IGoSettings);
Constructs a new GoSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
GoSettings common.
method create
static create: (properties?: google.api.IGoSettings) => google.api.GoSettings;
Creates a new GoSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
GoSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.GoSettings;
Decodes a GoSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GoSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.GoSettings;
Decodes a GoSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GoSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IGoSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GoSettings message. Does not implicitly verify messages.
Parameter message
GoSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IGoSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GoSettings message, length delimited. Does not implicitly verify messages.
Parameter message
GoSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.GoSettings;
Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GoSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GoSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GoSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.GoSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GoSettings message. Also converts values to other types if specified.
Parameter message
GoSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GoSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Http
class Http implements IHttp {}
Represents a Http.
constructor
constructor(properties?: IHttp);
Constructs a new Http.
Parameter properties
Properties to set
property fullyDecodeReservedExpansion
fullyDecodeReservedExpansion: boolean;
Http fullyDecodeReservedExpansion.
property rules
rules: IHttpRule[];
Http rules.
method create
static create: (properties?: google.api.IHttp) => google.api.Http;
Creates a new Http instance using the specified properties.
Parameter properties
Properties to set
Returns
Http instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Http;
Decodes a Http message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Http
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Http;
Decodes a Http message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Http
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IHttp, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Http message. Does not implicitly verify messages.
Parameter message
Http message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IHttp, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Http message, length delimited. Does not implicitly verify messages.
Parameter message
Http message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.Http;
Creates a Http message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Http
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Http
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Http to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Http, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Http message. Also converts values to other types if specified.
Parameter message
Http
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Http message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class HttpRule
class HttpRule implements IHttpRule {}
Represents a HttpRule.
constructor
constructor(properties?: IHttpRule);
Constructs a new HttpRule.
Parameter properties
Properties to set
property additionalBindings
additionalBindings: IHttpRule[];
HttpRule additionalBindings.
property body
body: string;
HttpRule body.
property custom
custom?: ICustomHttpPattern;
HttpRule custom.
property delete
delete?: string;
HttpRule delete.
property get
get?: string;
HttpRule get.
property patch
patch?: string;
HttpRule patch.
property pattern
pattern?: 'get' | 'put' | 'post' | 'delete' | 'patch' | 'custom';
HttpRule pattern.
property post
post?: string;
HttpRule post.
property put
put?: string;
HttpRule put.
property responseBody
responseBody: string;
HttpRule responseBody.
property selector
selector: string;
HttpRule selector.
method create
static create: (properties?: google.api.IHttpRule) => google.api.HttpRule;
Creates a new HttpRule instance using the specified properties.
Parameter properties
Properties to set
Returns
HttpRule instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.HttpRule;
Decodes a HttpRule message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
HttpRule
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.HttpRule;
Decodes a HttpRule message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
HttpRule
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IHttpRule, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified HttpRule message. Does not implicitly verify messages.
Parameter message
HttpRule message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IHttpRule, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified HttpRule message, length delimited. Does not implicitly verify messages.
Parameter message
HttpRule message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.HttpRule;
Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
HttpRule
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for HttpRule
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this HttpRule to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.HttpRule, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a HttpRule message. Also converts values to other types if specified.
Parameter message
HttpRule
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a HttpRule message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class JavaSettings
class JavaSettings implements IJavaSettings {}
Represents a JavaSettings.
constructor
constructor(properties?: IJavaSettings);
Constructs a new JavaSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
JavaSettings common.
property libraryPackage
libraryPackage: string;
JavaSettings libraryPackage.
property serviceClassNames
serviceClassNames: { [k: string]: string };
JavaSettings serviceClassNames.
method create
static create: ( properties?: google.api.IJavaSettings) => google.api.JavaSettings;
Creates a new JavaSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
JavaSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.JavaSettings;
Decodes a JavaSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
JavaSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.JavaSettings;
Decodes a JavaSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
JavaSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IJavaSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified JavaSettings message. Does not implicitly verify messages.
Parameter message
JavaSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IJavaSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified JavaSettings message, length delimited. Does not implicitly verify messages.
Parameter message
JavaSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.JavaSettings;
Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
JavaSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for JavaSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this JavaSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.JavaSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
Parameter message
JavaSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a JavaSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LabelDescriptor
class LabelDescriptor implements ILabelDescriptor {}
Represents a LabelDescriptor.
constructor
constructor(properties?: ILabelDescriptor);
Constructs a new LabelDescriptor.
Parameter properties
Properties to set
property description
description: string;
LabelDescriptor description.
property key
key: string;
LabelDescriptor key.
property valueType
valueType: 'STRING' | LabelDescriptor.ValueType | 'BOOL' | 'INT64';
LabelDescriptor valueType.
method create
static create: ( properties?: google.api.ILabelDescriptor) => google.api.LabelDescriptor;
Creates a new LabelDescriptor instance using the specified properties.
Parameter properties
Properties to set
Returns
LabelDescriptor instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.LabelDescriptor;
Decodes a LabelDescriptor message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LabelDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.LabelDescriptor;
Decodes a LabelDescriptor message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LabelDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.ILabelDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LabelDescriptor message. Does not implicitly verify messages.
Parameter message
LabelDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.ILabelDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LabelDescriptor message, length delimited. Does not implicitly verify messages.
Parameter message
LabelDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.LabelDescriptor;
Creates a LabelDescriptor message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LabelDescriptor
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LabelDescriptor
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LabelDescriptor to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.LabelDescriptor, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LabelDescriptor message. Also converts values to other types if specified.
Parameter message
LabelDescriptor
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LabelDescriptor message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MethodSettings
class MethodSettings implements IMethodSettings {}
Represents a MethodSettings.
constructor
constructor(properties?: IMethodSettings);
Constructs a new MethodSettings.
Parameter properties
Properties to set
property autoPopulatedFields
autoPopulatedFields: string[];
MethodSettings autoPopulatedFields.
property longRunning
longRunning?: MethodSettings.ILongRunning;
MethodSettings longRunning.
property selector
selector: string;
MethodSettings selector.
method create
static create: ( properties?: google.api.IMethodSettings) => google.api.MethodSettings;
Creates a new MethodSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
MethodSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MethodSettings;
Decodes a MethodSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MethodSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MethodSettings;
Decodes a MethodSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MethodSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMethodSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodSettings message. Does not implicitly verify messages.
Parameter message
MethodSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMethodSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodSettings message, length delimited. Does not implicitly verify messages.
Parameter message
MethodSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.MethodSettings;
Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MethodSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MethodSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MethodSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MethodSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
Parameter message
MethodSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MethodSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Metric
class Metric implements IMetric {}
Represents a Metric.
constructor
constructor(properties?: IMetric);
Constructs a new Metric.
Parameter properties
Properties to set
property labels
labels: { [k: string]: string };
Metric labels.
property type
type: string;
Metric type.
method create
static create: (properties?: google.api.IMetric) => google.api.Metric;
Creates a new Metric instance using the specified properties.
Parameter properties
Properties to set
Returns
Metric instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Metric;
Decodes a Metric message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Metric
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Metric;
Decodes a Metric message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Metric
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMetric, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Metric message. Does not implicitly verify messages.
Parameter message
Metric message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMetric, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Metric message, length delimited. Does not implicitly verify messages.
Parameter message
Metric message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.Metric;
Creates a Metric message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Metric
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Metric
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Metric to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Metric, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Metric message. Also converts values to other types if specified.
Parameter message
Metric
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Metric message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MetricDescriptor
class MetricDescriptor implements IMetricDescriptor {}
Represents a MetricDescriptor.
constructor
constructor(properties?: IMetricDescriptor);
Constructs a new MetricDescriptor.
Parameter properties
Properties to set
property description
description: string;
MetricDescriptor description.
property displayName
displayName: string;
MetricDescriptor displayName.
property labels
labels: ILabelDescriptor[];
MetricDescriptor labels.
property launchStage
launchStage: | LaunchStage | 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED';
MetricDescriptor launchStage.
property metadata
metadata?: MetricDescriptor.IMetricDescriptorMetadata;
MetricDescriptor metadata.
property metricKind
metricKind: | MetricDescriptor.MetricKind | 'METRIC_KIND_UNSPECIFIED' | 'GAUGE' | 'DELTA' | 'CUMULATIVE';
MetricDescriptor metricKind.
property monitoredResourceTypes
monitoredResourceTypes: string[];
MetricDescriptor monitoredResourceTypes.
property name
name: string;
MetricDescriptor name.
property type
type: string;
MetricDescriptor type.
property unit
unit: string;
MetricDescriptor unit.
property valueType
valueType: | 'STRING' | 'BOOL' | 'INT64' | MetricDescriptor.ValueType | 'VALUE_TYPE_UNSPECIFIED' | 'DOUBLE' | 'DISTRIBUTION' | 'MONEY';
MetricDescriptor valueType.
method create
static create: ( properties?: google.api.IMetricDescriptor) => google.api.MetricDescriptor;
Creates a new MetricDescriptor instance using the specified properties.
Parameter properties
Properties to set
Returns
MetricDescriptor instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MetricDescriptor;
Decodes a MetricDescriptor message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MetricDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MetricDescriptor;
Decodes a MetricDescriptor message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MetricDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMetricDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MetricDescriptor message. Does not implicitly verify messages.
Parameter message
MetricDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMetricDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MetricDescriptor message, length delimited. Does not implicitly verify messages.
Parameter message
MetricDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.MetricDescriptor;
Creates a MetricDescriptor message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MetricDescriptor
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MetricDescriptor
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MetricDescriptor to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MetricDescriptor, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MetricDescriptor message. Also converts values to other types if specified.
Parameter message
MetricDescriptor
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MetricDescriptor message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MonitoredResource
class MonitoredResource implements IMonitoredResource {}
Represents a MonitoredResource.
constructor
constructor(properties?: IMonitoredResource);
Constructs a new MonitoredResource.
Parameter properties
Properties to set
property labels
labels: { [k: string]: string };
MonitoredResource labels.
property type
type: string;
MonitoredResource type.
method create
static create: ( properties?: google.api.IMonitoredResource) => google.api.MonitoredResource;
Creates a new MonitoredResource instance using the specified properties.
Parameter properties
Properties to set
Returns
MonitoredResource instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MonitoredResource;
Decodes a MonitoredResource message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MonitoredResource
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MonitoredResource;
Decodes a MonitoredResource message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MonitoredResource
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMonitoredResource, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResource message. Does not implicitly verify messages.
Parameter message
MonitoredResource message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMonitoredResource, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResource message, length delimited. Does not implicitly verify messages.
Parameter message
MonitoredResource message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.MonitoredResource;
Creates a MonitoredResource message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MonitoredResource
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MonitoredResource
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MonitoredResource to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MonitoredResource, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MonitoredResource message. Also converts values to other types if specified.
Parameter message
MonitoredResource
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MonitoredResource message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MonitoredResourceDescriptor
class MonitoredResourceDescriptor implements IMonitoredResourceDescriptor {}
Represents a MonitoredResourceDescriptor.
constructor
constructor(properties?: IMonitoredResourceDescriptor);
Constructs a new MonitoredResourceDescriptor.
Parameter properties
Properties to set
property description
description: string;
MonitoredResourceDescriptor description.
property displayName
displayName: string;
MonitoredResourceDescriptor displayName.
property labels
labels: ILabelDescriptor[];
MonitoredResourceDescriptor labels.
property launchStage
launchStage: | LaunchStage | 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED';
MonitoredResourceDescriptor launchStage.
property name
name: string;
MonitoredResourceDescriptor name.
property type
type: string;
MonitoredResourceDescriptor type.
method create
static create: ( properties?: google.api.IMonitoredResourceDescriptor) => google.api.MonitoredResourceDescriptor;
Creates a new MonitoredResourceDescriptor instance using the specified properties.
Parameter properties
Properties to set
Returns
MonitoredResourceDescriptor instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MonitoredResourceDescriptor;
Decodes a MonitoredResourceDescriptor message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MonitoredResourceDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MonitoredResourceDescriptor;
Decodes a MonitoredResourceDescriptor message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MonitoredResourceDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMonitoredResourceDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResourceDescriptor message. Does not implicitly verify messages.
Parameter message
MonitoredResourceDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMonitoredResourceDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResourceDescriptor message, length delimited. Does not implicitly verify messages.
Parameter message
MonitoredResourceDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.MonitoredResourceDescriptor;
Creates a MonitoredResourceDescriptor message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MonitoredResourceDescriptor
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MonitoredResourceDescriptor
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MonitoredResourceDescriptor to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MonitoredResourceDescriptor, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MonitoredResourceDescriptor message. Also converts values to other types if specified.
Parameter message
MonitoredResourceDescriptor
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MonitoredResourceDescriptor message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MonitoredResourceMetadata
class MonitoredResourceMetadata implements IMonitoredResourceMetadata {}
Represents a MonitoredResourceMetadata.
constructor
constructor(properties?: IMonitoredResourceMetadata);
Constructs a new MonitoredResourceMetadata.
Parameter properties
Properties to set
property systemLabels
systemLabels?: protobuf.IStruct;
MonitoredResourceMetadata systemLabels.
property userLabels
userLabels: { [k: string]: string };
MonitoredResourceMetadata userLabels.
method create
static create: ( properties?: google.api.IMonitoredResourceMetadata) => google.api.MonitoredResourceMetadata;
Creates a new MonitoredResourceMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
MonitoredResourceMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MonitoredResourceMetadata;
Decodes a MonitoredResourceMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MonitoredResourceMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MonitoredResourceMetadata;
Decodes a MonitoredResourceMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MonitoredResourceMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IMonitoredResourceMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResourceMetadata message. Does not implicitly verify messages.
Parameter message
MonitoredResourceMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IMonitoredResourceMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MonitoredResourceMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
MonitoredResourceMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.MonitoredResourceMetadata;
Creates a MonitoredResourceMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MonitoredResourceMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MonitoredResourceMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MonitoredResourceMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MonitoredResourceMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MonitoredResourceMetadata message. Also converts values to other types if specified.
Parameter message
MonitoredResourceMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MonitoredResourceMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class NodeSettings
class NodeSettings implements INodeSettings {}
Represents a NodeSettings.
constructor
constructor(properties?: INodeSettings);
Constructs a new NodeSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
NodeSettings common.
method create
static create: ( properties?: google.api.INodeSettings) => google.api.NodeSettings;
Creates a new NodeSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
NodeSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.NodeSettings;
Decodes a NodeSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
NodeSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.NodeSettings;
Decodes a NodeSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
NodeSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.INodeSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified NodeSettings message. Does not implicitly verify messages.
Parameter message
NodeSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.INodeSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified NodeSettings message, length delimited. Does not implicitly verify messages.
Parameter message
NodeSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.NodeSettings;
Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
NodeSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for NodeSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this NodeSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.NodeSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
Parameter message
NodeSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a NodeSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class PhpSettings
class PhpSettings implements IPhpSettings {}
Represents a PhpSettings.
constructor
constructor(properties?: IPhpSettings);
Constructs a new PhpSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
PhpSettings common.
method create
static create: (properties?: google.api.IPhpSettings) => google.api.PhpSettings;
Creates a new PhpSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
PhpSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.PhpSettings;
Decodes a PhpSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
PhpSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.PhpSettings;
Decodes a PhpSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
PhpSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IPhpSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified PhpSettings message. Does not implicitly verify messages.
Parameter message
PhpSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IPhpSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified PhpSettings message, length delimited. Does not implicitly verify messages.
Parameter message
PhpSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.PhpSettings;
Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
PhpSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for PhpSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this PhpSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.PhpSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
Parameter message
PhpSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a PhpSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Publishing
class Publishing implements IPublishing {}
Represents a Publishing.
constructor
constructor(properties?: IPublishing);
Constructs a new Publishing.
Parameter properties
Properties to set
property apiShortName
apiShortName: string;
Publishing apiShortName.
property codeownerGithubTeams
codeownerGithubTeams: string[];
Publishing codeownerGithubTeams.
property docTagPrefix
docTagPrefix: string;
Publishing docTagPrefix.
property documentationUri
documentationUri: string;
Publishing documentationUri.
property githubLabel
githubLabel: string;
Publishing githubLabel.
property librarySettings
librarySettings: IClientLibrarySettings[];
Publishing librarySettings.
property methodSettings
methodSettings: IMethodSettings[];
Publishing methodSettings.
property newIssueUri
newIssueUri: string;
Publishing newIssueUri.
property organization
organization: | ClientLibraryOrganization | 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED' | 'CLOUD' | 'ADS' | 'PHOTOS' | 'STREET_VIEW' | 'SHOPPING' | 'GEO' | 'GENERATIVE_AI';
Publishing organization.
property protoReferenceDocumentationUri
protoReferenceDocumentationUri: string;
Publishing protoReferenceDocumentationUri.
property restReferenceDocumentationUri
restReferenceDocumentationUri: string;
Publishing restReferenceDocumentationUri.
method create
static create: (properties?: google.api.IPublishing) => google.api.Publishing;
Creates a new Publishing instance using the specified properties.
Parameter properties
Properties to set
Returns
Publishing instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Publishing;
Decodes a Publishing message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Publishing
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Publishing;
Decodes a Publishing message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Publishing
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IPublishing, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Publishing message. Does not implicitly verify messages.
Parameter message
Publishing message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IPublishing, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Publishing message, length delimited. Does not implicitly verify messages.
Parameter message
Publishing message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.Publishing;
Creates a Publishing message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Publishing
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Publishing
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Publishing to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Publishing, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Publishing message. Also converts values to other types if specified.
Parameter message
Publishing
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Publishing message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class PythonSettings
class PythonSettings implements IPythonSettings {}
Represents a PythonSettings.
constructor
constructor(properties?: IPythonSettings);
Constructs a new PythonSettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
PythonSettings common.
method create
static create: ( properties?: google.api.IPythonSettings) => google.api.PythonSettings;
Creates a new PythonSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
PythonSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.PythonSettings;
Decodes a PythonSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
PythonSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.PythonSettings;
Decodes a PythonSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
PythonSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IPythonSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified PythonSettings message. Does not implicitly verify messages.
Parameter message
PythonSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IPythonSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified PythonSettings message, length delimited. Does not implicitly verify messages.
Parameter message
PythonSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.PythonSettings;
Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
PythonSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for PythonSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this PythonSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.PythonSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
Parameter message
PythonSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a PythonSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ResourceDescriptor
class ResourceDescriptor implements IResourceDescriptor {}
Represents a ResourceDescriptor.
constructor
constructor(properties?: IResourceDescriptor);
Constructs a new ResourceDescriptor.
Parameter properties
Properties to set
property history
history: | ResourceDescriptor.History | 'HISTORY_UNSPECIFIED' | 'ORIGINALLY_SINGLE_PATTERN' | 'FUTURE_MULTI_PATTERN';
ResourceDescriptor history.
property nameField
nameField: string;
ResourceDescriptor nameField.
property pattern
pattern: string[];
ResourceDescriptor pattern.
property plural
plural: string;
ResourceDescriptor plural.
property singular
singular: string;
ResourceDescriptor singular.
property style
style: ResourceDescriptor.Style[];
ResourceDescriptor style.
property type
type: string;
ResourceDescriptor type.
method create
static create: ( properties?: google.api.IResourceDescriptor) => google.api.ResourceDescriptor;
Creates a new ResourceDescriptor instance using the specified properties.
Parameter properties
Properties to set
Returns
ResourceDescriptor instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.ResourceDescriptor;
Decodes a ResourceDescriptor message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ResourceDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.ResourceDescriptor;
Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ResourceDescriptor
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IResourceDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ResourceDescriptor message. Does not implicitly verify messages.
Parameter message
ResourceDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IResourceDescriptor, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly verify messages.
Parameter message
ResourceDescriptor message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.ResourceDescriptor;
Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ResourceDescriptor
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ResourceDescriptor
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ResourceDescriptor to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
Parameter message
ResourceDescriptor
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ResourceDescriptor message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ResourceReference
class ResourceReference implements IResourceReference {}
Represents a ResourceReference.
constructor
constructor(properties?: IResourceReference);
Constructs a new ResourceReference.
Parameter properties
Properties to set
property childType
childType: string;
ResourceReference childType.
property type
type: string;
ResourceReference type.
method create
static create: ( properties?: google.api.IResourceReference) => google.api.ResourceReference;
Creates a new ResourceReference instance using the specified properties.
Parameter properties
Properties to set
Returns
ResourceReference instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.ResourceReference;
Decodes a ResourceReference message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ResourceReference
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.ResourceReference;
Decodes a ResourceReference message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ResourceReference
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IResourceReference, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ResourceReference message. Does not implicitly verify messages.
Parameter message
ResourceReference message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IResourceReference, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ResourceReference message, length delimited. Does not implicitly verify messages.
Parameter message
ResourceReference message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.ResourceReference;
Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ResourceReference
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ResourceReference
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ResourceReference to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.ResourceReference, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
Parameter message
ResourceReference
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ResourceReference message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class RubySettings
class RubySettings implements IRubySettings {}
Represents a RubySettings.
constructor
constructor(properties?: IRubySettings);
Constructs a new RubySettings.
Parameter properties
Properties to set
property common
common?: ICommonLanguageSettings;
RubySettings common.
method create
static create: ( properties?: google.api.IRubySettings) => google.api.RubySettings;
Creates a new RubySettings instance using the specified properties.
Parameter properties
Properties to set
Returns
RubySettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.RubySettings;
Decodes a RubySettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
RubySettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.RubySettings;
Decodes a RubySettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
RubySettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.IRubySettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified RubySettings message. Does not implicitly verify messages.
Parameter message
RubySettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.IRubySettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified RubySettings message, length delimited. Does not implicitly verify messages.
Parameter message
RubySettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.api.RubySettings;
Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
RubySettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for RubySettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this RubySettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.RubySettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a RubySettings message. Also converts values to other types if specified.
Parameter message
RubySettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a RubySettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IClientLibrarySettings
interface IClientLibrarySettings {}
Properties of a ClientLibrarySettings.
property cppSettings
cppSettings?: google.api.ICppSettings | null;
ClientLibrarySettings cppSettings
property dotnetSettings
dotnetSettings?: google.api.IDotnetSettings | null;
ClientLibrarySettings dotnetSettings
property goSettings
goSettings?: google.api.IGoSettings | null;
ClientLibrarySettings goSettings
property javaSettings
javaSettings?: google.api.IJavaSettings | null;
ClientLibrarySettings javaSettings
property launchStage
launchStage?: | google.api.LaunchStage | keyof typeof google.api.LaunchStage | null;
ClientLibrarySettings launchStage
property nodeSettings
nodeSettings?: google.api.INodeSettings | null;
ClientLibrarySettings nodeSettings
property phpSettings
phpSettings?: google.api.IPhpSettings | null;
ClientLibrarySettings phpSettings
property pythonSettings
pythonSettings?: google.api.IPythonSettings | null;
ClientLibrarySettings pythonSettings
property restNumericEnums
restNumericEnums?: boolean | null;
ClientLibrarySettings restNumericEnums
property rubySettings
rubySettings?: google.api.IRubySettings | null;
ClientLibrarySettings rubySettings
property version
version?: string | null;
ClientLibrarySettings version
interface ICommonLanguageSettings
interface ICommonLanguageSettings {}
Properties of a CommonLanguageSettings.
property destinations
destinations?: google.api.ClientLibraryDestination[] | null;
CommonLanguageSettings destinations
property referenceDocsUri
referenceDocsUri?: string | null;
CommonLanguageSettings referenceDocsUri
interface ICppSettings
interface ICppSettings {}
Properties of a CppSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
CppSettings common
interface ICustomHttpPattern
interface ICustomHttpPattern {}
Properties of a CustomHttpPattern.
interface IDistribution
interface IDistribution {}
Properties of a Distribution.
property bucketCounts
bucketCounts?: (number | Long | string)[] | null;
Distribution bucketCounts
property bucketOptions
bucketOptions?: google.api.Distribution.IBucketOptions | null;
Distribution bucketOptions
property count
count?: number | Long | string | null;
Distribution count
property exemplars
exemplars?: google.api.Distribution.IExemplar[] | null;
Distribution exemplars
property mean
mean?: number | null;
Distribution mean
property range
range?: google.api.Distribution.IRange | null;
Distribution range
property sumOfSquaredDeviation
sumOfSquaredDeviation?: number | null;
Distribution sumOfSquaredDeviation
interface IDotnetSettings
interface IDotnetSettings {}
Properties of a DotnetSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
DotnetSettings common
property forcedNamespaceAliases
forcedNamespaceAliases?: string[] | null;
DotnetSettings forcedNamespaceAliases
property handwrittenSignatures
handwrittenSignatures?: string[] | null;
DotnetSettings handwrittenSignatures
property ignoredResources
ignoredResources?: string[] | null;
DotnetSettings ignoredResources
property renamedResources
renamedResources?: { [k: string]: string } | null;
DotnetSettings renamedResources
property renamedServices
renamedServices?: { [k: string]: string } | null;
DotnetSettings renamedServices
interface IGoSettings
interface IGoSettings {}
Properties of a GoSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
GoSettings common
interface IHttp
interface IHttp {}
Properties of a Http.
property fullyDecodeReservedExpansion
fullyDecodeReservedExpansion?: boolean | null;
Http fullyDecodeReservedExpansion
property rules
rules?: google.api.IHttpRule[] | null;
Http rules
interface IHttpRule
interface IHttpRule {}
Properties of a HttpRule.
property "delete"
delete?: string | null;
HttpRule delete
property additionalBindings
additionalBindings?: google.api.IHttpRule[] | null;
HttpRule additionalBindings
property body
body?: string | null;
HttpRule body
property custom
custom?: google.api.ICustomHttpPattern | null;
HttpRule custom
property get
get?: string | null;
HttpRule get
property patch
patch?: string | null;
HttpRule patch
property post
post?: string | null;
HttpRule post
property put
put?: string | null;
HttpRule put
property responseBody
responseBody?: string | null;
HttpRule responseBody
property selector
selector?: string | null;
HttpRule selector
interface IJavaSettings
interface IJavaSettings {}
Properties of a JavaSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
JavaSettings common
property libraryPackage
libraryPackage?: string | null;
JavaSettings libraryPackage
property serviceClassNames
serviceClassNames?: { [k: string]: string } | null;
JavaSettings serviceClassNames
interface ILabelDescriptor
interface ILabelDescriptor {}
Properties of a LabelDescriptor.
property description
description?: string | null;
LabelDescriptor description
property key
key?: string | null;
LabelDescriptor key
property valueType
valueType?: | google.api.LabelDescriptor.ValueType | keyof typeof google.api.LabelDescriptor.ValueType | null;
LabelDescriptor valueType
interface IMethodSettings
interface IMethodSettings {}
Properties of a MethodSettings.
property autoPopulatedFields
autoPopulatedFields?: string[] | null;
MethodSettings autoPopulatedFields
property longRunning
longRunning?: google.api.MethodSettings.ILongRunning | null;
MethodSettings longRunning
property selector
selector?: string | null;
MethodSettings selector
interface IMetric
interface IMetric {}
Properties of a Metric.
interface IMetricDescriptor
interface IMetricDescriptor {}
Properties of a MetricDescriptor.
property description
description?: string | null;
MetricDescriptor description
property displayName
displayName?: string | null;
MetricDescriptor displayName
property labels
labels?: google.api.ILabelDescriptor[] | null;
MetricDescriptor labels
property launchStage
launchStage?: | google.api.LaunchStage | keyof typeof google.api.LaunchStage | null;
MetricDescriptor launchStage
property metadata
metadata?: google.api.MetricDescriptor.IMetricDescriptorMetadata | null;
MetricDescriptor metadata
property metricKind
metricKind?: | google.api.MetricDescriptor.MetricKind | keyof typeof google.api.MetricDescriptor.MetricKind | null;
MetricDescriptor metricKind
property monitoredResourceTypes
monitoredResourceTypes?: string[] | null;
MetricDescriptor monitoredResourceTypes
property name
name?: string | null;
MetricDescriptor name
property type
type?: string | null;
MetricDescriptor type
property unit
unit?: string | null;
MetricDescriptor unit
property valueType
valueType?: | google.api.MetricDescriptor.ValueType | keyof typeof google.api.MetricDescriptor.ValueType | null;
MetricDescriptor valueType
interface IMonitoredResource
interface IMonitoredResource {}
Properties of a MonitoredResource.
interface IMonitoredResourceDescriptor
interface IMonitoredResourceDescriptor {}
Properties of a MonitoredResourceDescriptor.
property description
description?: string | null;
MonitoredResourceDescriptor description
property displayName
displayName?: string | null;
MonitoredResourceDescriptor displayName
property labels
labels?: google.api.ILabelDescriptor[] | null;
MonitoredResourceDescriptor labels
property launchStage
launchStage?: | google.api.LaunchStage | keyof typeof google.api.LaunchStage | null;
MonitoredResourceDescriptor launchStage
property name
name?: string | null;
MonitoredResourceDescriptor name
property type
type?: string | null;
MonitoredResourceDescriptor type
interface IMonitoredResourceMetadata
interface IMonitoredResourceMetadata {}
Properties of a MonitoredResourceMetadata.
property systemLabels
systemLabels?: google.protobuf.IStruct | null;
MonitoredResourceMetadata systemLabels
property userLabels
userLabels?: { [k: string]: string } | null;
MonitoredResourceMetadata userLabels
interface INodeSettings
interface INodeSettings {}
Properties of a NodeSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
NodeSettings common
interface IPhpSettings
interface IPhpSettings {}
Properties of a PhpSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
PhpSettings common
interface IPublishing
interface IPublishing {}
Properties of a Publishing.
property apiShortName
apiShortName?: string | null;
Publishing apiShortName
property codeownerGithubTeams
codeownerGithubTeams?: string[] | null;
Publishing codeownerGithubTeams
property docTagPrefix
docTagPrefix?: string | null;
Publishing docTagPrefix
property documentationUri
documentationUri?: string | null;
Publishing documentationUri
property githubLabel
githubLabel?: string | null;
Publishing githubLabel
property librarySettings
librarySettings?: google.api.IClientLibrarySettings[] | null;
Publishing librarySettings
property methodSettings
methodSettings?: google.api.IMethodSettings[] | null;
Publishing methodSettings
property newIssueUri
newIssueUri?: string | null;
Publishing newIssueUri
property organization
organization?: | google.api.ClientLibraryOrganization | keyof typeof google.api.ClientLibraryOrganization | null;
Publishing organization
property protoReferenceDocumentationUri
protoReferenceDocumentationUri?: string | null;
Publishing protoReferenceDocumentationUri
property restReferenceDocumentationUri
restReferenceDocumentationUri?: string | null;
Publishing restReferenceDocumentationUri
interface IPythonSettings
interface IPythonSettings {}
Properties of a PythonSettings.
property common
common?: google.api.ICommonLanguageSettings | null;
PythonSettings common
interface IResourceDescriptor
interface IResourceDescriptor {}
Properties of a ResourceDescriptor.
property history
history?: | google.api.ResourceDescriptor.History | keyof typeof google.api.ResourceDescriptor.History | null;
ResourceDescriptor history
property nameField
nameField?: string | null;
ResourceDescriptor nameField
property pattern
pattern?: string[] | null;
ResourceDescriptor pattern
property plural
plural?: string | null;
ResourceDescriptor plural
property singular
singular?: string | null;
ResourceDescriptor singular
property style
style?: google.api.ResourceDescriptor.Style[] | null;
ResourceDescriptor style
property type
type?: string | null;
ResourceDescriptor type
interface IResourceReference
interface IResourceReference {}
Properties of a ResourceReference.
interface IRubySettings
interface IRubySettings {}
Properties of a RubySettings.
property common
common?: google.api.ICommonLanguageSettings | null;
RubySettings common
enum ClientLibraryDestination
enum ClientLibraryDestination { CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, GITHUB = 10, PACKAGE_MANAGER = 20,}
ClientLibraryDestination enum.
member CLIENT_LIBRARY_DESTINATION_UNSPECIFIED
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
member GITHUB
GITHUB = 10
member PACKAGE_MANAGER
PACKAGE_MANAGER = 20
enum ClientLibraryOrganization
enum ClientLibraryOrganization { CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, CLOUD = 1, ADS = 2, PHOTOS = 3, STREET_VIEW = 4, SHOPPING = 5, GEO = 6, GENERATIVE_AI = 7,}
ClientLibraryOrganization enum.
member ADS
ADS = 2
member CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
member CLOUD
CLOUD = 1
member GENERATIVE_AI
GENERATIVE_AI = 7
member GEO
GEO = 6
member PHOTOS
PHOTOS = 3
member SHOPPING
SHOPPING = 5
member STREET_VIEW
STREET_VIEW = 4
enum FieldBehavior
enum FieldBehavior { FIELD_BEHAVIOR_UNSPECIFIED = 0, OPTIONAL = 1, REQUIRED = 2, OUTPUT_ONLY = 3, INPUT_ONLY = 4, IMMUTABLE = 5, UNORDERED_LIST = 6, NON_EMPTY_DEFAULT = 7, IDENTIFIER = 8,}
FieldBehavior enum.
member FIELD_BEHAVIOR_UNSPECIFIED
FIELD_BEHAVIOR_UNSPECIFIED = 0
member IDENTIFIER
IDENTIFIER = 8
member IMMUTABLE
IMMUTABLE = 5
member INPUT_ONLY
INPUT_ONLY = 4
member NON_EMPTY_DEFAULT
NON_EMPTY_DEFAULT = 7
member OPTIONAL
OPTIONAL = 1
member OUTPUT_ONLY
OUTPUT_ONLY = 3
member REQUIRED
REQUIRED = 2
member UNORDERED_LIST
UNORDERED_LIST = 6
enum LaunchStage
enum LaunchStage { LAUNCH_STAGE_UNSPECIFIED = 0, UNIMPLEMENTED = 6, PRELAUNCH = 7, EARLY_ACCESS = 1, ALPHA = 2, BETA = 3, GA = 4, DEPRECATED = 5,}
LaunchStage enum.
member ALPHA
ALPHA = 2
member BETA
BETA = 3
member DEPRECATED
DEPRECATED = 5
member EARLY_ACCESS
EARLY_ACCESS = 1
member GA
GA = 4
member LAUNCH_STAGE_UNSPECIFIED
LAUNCH_STAGE_UNSPECIFIED = 0
member PRELAUNCH
PRELAUNCH = 7
member UNIMPLEMENTED
UNIMPLEMENTED = 6
namespace protos.google.api.Distribution
namespace protos.google.api.Distribution {}
class BucketOptions
class BucketOptions implements IBucketOptions {}
Represents a BucketOptions.
constructor
constructor(properties?: IBucketOptions);
Constructs a new BucketOptions.
Parameter properties
Properties to set
property explicitBuckets
explicitBuckets?: BucketOptions.IExplicit;
BucketOptions explicitBuckets.
property exponentialBuckets
exponentialBuckets?: BucketOptions.IExponential;
BucketOptions exponentialBuckets.
property linearBuckets
linearBuckets?: BucketOptions.ILinear;
BucketOptions linearBuckets.
property options
options?: 'linearBuckets' | 'exponentialBuckets' | 'explicitBuckets';
BucketOptions options.
method create
static create: ( properties?: google.api.Distribution.IBucketOptions) => google.api.Distribution.BucketOptions;
Creates a new BucketOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
BucketOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.BucketOptions;
Decodes a BucketOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
BucketOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.BucketOptions;
Decodes a BucketOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
BucketOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.IBucketOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BucketOptions message. Does not implicitly verify messages.
Parameter message
BucketOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.IBucketOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BucketOptions message, length delimited. Does not implicitly verify messages.
Parameter message
BucketOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.BucketOptions;
Creates a BucketOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
BucketOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for BucketOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this BucketOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.BucketOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a BucketOptions message. Also converts values to other types if specified.
Parameter message
BucketOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a BucketOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Exemplar
class Exemplar implements IExemplar {}
Represents an Exemplar.
constructor
constructor(properties?: IExemplar);
Constructs a new Exemplar.
Parameter properties
Properties to set
property attachments
attachments: protobuf.IAny[];
Exemplar attachments.
property timestamp
timestamp?: protobuf.ITimestamp;
Exemplar timestamp.
property value
value: number;
Exemplar value.
method create
static create: ( properties?: google.api.Distribution.IExemplar) => google.api.Distribution.Exemplar;
Creates a new Exemplar instance using the specified properties.
Parameter properties
Properties to set
Returns
Exemplar instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.Exemplar;
Decodes an Exemplar message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Exemplar
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.Exemplar;
Decodes an Exemplar message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Exemplar
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.IExemplar, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Exemplar message. Does not implicitly verify messages.
Parameter message
Exemplar message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.IExemplar, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Exemplar message, length delimited. Does not implicitly verify messages.
Parameter message
Exemplar message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.Exemplar;
Creates an Exemplar message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Exemplar
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Exemplar
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Exemplar to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.Exemplar, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Exemplar message. Also converts values to other types if specified.
Parameter message
Exemplar
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Exemplar message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Range
class Range implements IRange {}
Represents a Range.
constructor
constructor(properties?: IRange);
Constructs a new Range.
Parameter properties
Properties to set
property max
max: number;
Range max.
property min
min: number;
Range min.
method create
static create: ( properties?: google.api.Distribution.IRange) => google.api.Distribution.Range;
Creates a new Range instance using the specified properties.
Parameter properties
Properties to set
Returns
Range instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.Range;
Decodes a Range message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Range
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.Range;
Decodes a Range message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Range
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.IRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Range message. Does not implicitly verify messages.
Parameter message
Range message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.IRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Range message, length delimited. Does not implicitly verify messages.
Parameter message
Range message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.Range;
Creates a Range message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Range
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Range
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Range to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.Range, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Range message. Also converts values to other types if specified.
Parameter message
Range
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Range message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IBucketOptions
interface IBucketOptions {}
Properties of a BucketOptions.
property explicitBuckets
explicitBuckets?: google.api.Distribution.BucketOptions.IExplicit | null;
BucketOptions explicitBuckets
property exponentialBuckets
exponentialBuckets?: google.api.Distribution.BucketOptions.IExponential | null;
BucketOptions exponentialBuckets
property linearBuckets
linearBuckets?: google.api.Distribution.BucketOptions.ILinear | null;
BucketOptions linearBuckets
interface IExemplar
interface IExemplar {}
Properties of an Exemplar.
property attachments
attachments?: google.protobuf.IAny[] | null;
Exemplar attachments
property timestamp
timestamp?: google.protobuf.ITimestamp | null;
Exemplar timestamp
property value
value?: number | null;
Exemplar value
namespace protos.google.api.Distribution.BucketOptions
namespace protos.google.api.Distribution.BucketOptions {}
class Explicit
class Explicit implements IExplicit {}
Represents an Explicit.
constructor
constructor(properties?: IExplicit);
Constructs a new Explicit.
Parameter properties
Properties to set
property bounds
bounds: number[];
Explicit bounds.
method create
static create: ( properties?: google.api.Distribution.BucketOptions.IExplicit) => google.api.Distribution.BucketOptions.Explicit;
Creates a new Explicit instance using the specified properties.
Parameter properties
Properties to set
Returns
Explicit instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.BucketOptions.Explicit;
Decodes an Explicit message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Explicit
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.BucketOptions.Explicit;
Decodes an Explicit message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Explicit
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.BucketOptions.IExplicit, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Explicit message. Does not implicitly verify messages.
Parameter message
Explicit message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.BucketOptions.IExplicit, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Explicit message, length delimited. Does not implicitly verify messages.
Parameter message
Explicit message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.BucketOptions.Explicit;
Creates an Explicit message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Explicit
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Explicit
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Explicit to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.BucketOptions.Explicit, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Explicit message. Also converts values to other types if specified.
Parameter message
Explicit
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Explicit message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Exponential
class Exponential implements IExponential {}
Represents an Exponential.
constructor
constructor(properties?: IExponential);
Constructs a new Exponential.
Parameter properties
Properties to set
property growthFactor
growthFactor: number;
Exponential growthFactor.
property numFiniteBuckets
numFiniteBuckets: number;
Exponential numFiniteBuckets.
property scale
scale: number;
Exponential scale.
method create
static create: ( properties?: google.api.Distribution.BucketOptions.IExponential) => google.api.Distribution.BucketOptions.Exponential;
Creates a new Exponential instance using the specified properties.
Parameter properties
Properties to set
Returns
Exponential instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.BucketOptions.Exponential;
Decodes an Exponential message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Exponential
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.BucketOptions.Exponential;
Decodes an Exponential message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Exponential
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.BucketOptions.IExponential, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Exponential message. Does not implicitly verify messages.
Parameter message
Exponential message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.BucketOptions.IExponential, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Exponential message, length delimited. Does not implicitly verify messages.
Parameter message
Exponential message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.BucketOptions.Exponential;
Creates an Exponential message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Exponential
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Exponential
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Exponential to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.BucketOptions.Exponential, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Exponential message. Also converts values to other types if specified.
Parameter message
Exponential
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Exponential message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Linear
class Linear implements ILinear {}
Represents a Linear.
constructor
constructor(properties?: ILinear);
Constructs a new Linear.
Parameter properties
Properties to set
property numFiniteBuckets
numFiniteBuckets: number;
Linear numFiniteBuckets.
property offset
offset: number;
Linear offset.
property width
width: number;
Linear width.
method create
static create: ( properties?: google.api.Distribution.BucketOptions.ILinear) => google.api.Distribution.BucketOptions.Linear;
Creates a new Linear instance using the specified properties.
Parameter properties
Properties to set
Returns
Linear instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.Distribution.BucketOptions.Linear;
Decodes a Linear message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Linear
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.Distribution.BucketOptions.Linear;
Decodes a Linear message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Linear
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.Distribution.BucketOptions.ILinear, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Linear message. Does not implicitly verify messages.
Parameter message
Linear message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.Distribution.BucketOptions.ILinear, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Linear message, length delimited. Does not implicitly verify messages.
Parameter message
Linear message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.Distribution.BucketOptions.Linear;
Creates a Linear message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Linear
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Linear
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Linear to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.Distribution.BucketOptions.Linear, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Linear message. Also converts values to other types if specified.
Parameter message
Linear
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Linear message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IExplicit
interface IExplicit {}
Properties of an Explicit.
property bounds
bounds?: number[] | null;
Explicit bounds
interface IExponential
interface IExponential {}
Properties of an Exponential.
property growthFactor
growthFactor?: number | null;
Exponential growthFactor
property numFiniteBuckets
numFiniteBuckets?: number | null;
Exponential numFiniteBuckets
property scale
scale?: number | null;
Exponential scale
interface ILinear
interface ILinear {}
Properties of a Linear.
property numFiniteBuckets
numFiniteBuckets?: number | null;
Linear numFiniteBuckets
property offset
offset?: number | null;
Linear offset
property width
width?: number | null;
Linear width
namespace protos.google.api.LabelDescriptor
namespace protos.google.api.LabelDescriptor {}
namespace protos.google.api.MethodSettings
namespace protos.google.api.MethodSettings {}
class LongRunning
class LongRunning implements ILongRunning {}
Represents a LongRunning.
constructor
constructor(properties?: ILongRunning);
Constructs a new LongRunning.
Parameter properties
Properties to set
property initialPollDelay
initialPollDelay?: protobuf.IDuration;
LongRunning initialPollDelay.
property maxPollDelay
maxPollDelay?: protobuf.IDuration;
LongRunning maxPollDelay.
property pollDelayMultiplier
pollDelayMultiplier: number;
LongRunning pollDelayMultiplier.
property totalPollTimeout
totalPollTimeout?: protobuf.IDuration;
LongRunning totalPollTimeout.
method create
static create: ( properties?: google.api.MethodSettings.ILongRunning) => google.api.MethodSettings.LongRunning;
Creates a new LongRunning instance using the specified properties.
Parameter properties
Properties to set
Returns
LongRunning instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MethodSettings.LongRunning;
Decodes a LongRunning message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LongRunning
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MethodSettings.LongRunning;
Decodes a LongRunning message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LongRunning
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LongRunning message. Does not implicitly verify messages.
Parameter message
LongRunning message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LongRunning message, length delimited. Does not implicitly verify messages.
Parameter message
LongRunning message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.MethodSettings.LongRunning;
Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LongRunning
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LongRunning
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LongRunning to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LongRunning message. Also converts values to other types if specified.
Parameter message
LongRunning
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LongRunning message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface ILongRunning
interface ILongRunning {}
Properties of a LongRunning.
property initialPollDelay
initialPollDelay?: google.protobuf.IDuration | null;
LongRunning initialPollDelay
property maxPollDelay
maxPollDelay?: google.protobuf.IDuration | null;
LongRunning maxPollDelay
property pollDelayMultiplier
pollDelayMultiplier?: number | null;
LongRunning pollDelayMultiplier
property totalPollTimeout
totalPollTimeout?: google.protobuf.IDuration | null;
LongRunning totalPollTimeout
namespace protos.google.api.MetricDescriptor
namespace protos.google.api.MetricDescriptor {}
class MetricDescriptorMetadata
class MetricDescriptorMetadata implements IMetricDescriptorMetadata {}
Represents a MetricDescriptorMetadata.
constructor
constructor(properties?: IMetricDescriptorMetadata);
Constructs a new MetricDescriptorMetadata.
Parameter properties
Properties to set
property ingestDelay
ingestDelay?: protobuf.IDuration;
MetricDescriptorMetadata ingestDelay.
property launchStage
launchStage: | LaunchStage | 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED';
MetricDescriptorMetadata launchStage.
property samplePeriod
samplePeriod?: protobuf.IDuration;
MetricDescriptorMetadata samplePeriod.
method create
static create: ( properties?: google.api.MetricDescriptor.IMetricDescriptorMetadata) => google.api.MetricDescriptor.MetricDescriptorMetadata;
Creates a new MetricDescriptorMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
MetricDescriptorMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.api.MetricDescriptor.MetricDescriptorMetadata;
Decodes a MetricDescriptorMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MetricDescriptorMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.api.MetricDescriptor.MetricDescriptorMetadata;
Decodes a MetricDescriptorMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MetricDescriptorMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.api.MetricDescriptor.IMetricDescriptorMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MetricDescriptorMetadata message. Does not implicitly verify messages.
Parameter message
MetricDescriptorMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.api.MetricDescriptor.IMetricDescriptorMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MetricDescriptorMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
MetricDescriptorMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.api.MetricDescriptor.MetricDescriptorMetadata;
Creates a MetricDescriptorMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MetricDescriptorMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MetricDescriptorMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MetricDescriptorMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.api.MetricDescriptor.MetricDescriptorMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MetricDescriptorMetadata message. Also converts values to other types if specified.
Parameter message
MetricDescriptorMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MetricDescriptorMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IMetricDescriptorMetadata
interface IMetricDescriptorMetadata {}
Properties of a MetricDescriptorMetadata.
property ingestDelay
ingestDelay?: google.protobuf.IDuration | null;
MetricDescriptorMetadata ingestDelay
property launchStage
launchStage?: | google.api.LaunchStage | keyof typeof google.api.LaunchStage | null;
MetricDescriptorMetadata launchStage
property samplePeriod
samplePeriod?: google.protobuf.IDuration | null;
MetricDescriptorMetadata samplePeriod
enum MetricKind
enum MetricKind { METRIC_KIND_UNSPECIFIED = 0, GAUGE = 1, DELTA = 2, CUMULATIVE = 3,}
MetricKind enum.
member CUMULATIVE
CUMULATIVE = 3
member DELTA
DELTA = 2
member GAUGE
GAUGE = 1
member METRIC_KIND_UNSPECIFIED
METRIC_KIND_UNSPECIFIED = 0
enum ValueType
enum ValueType { VALUE_TYPE_UNSPECIFIED = 0, BOOL = 1, INT64 = 2, DOUBLE = 3, STRING = 4, DISTRIBUTION = 5, MONEY = 6,}
ValueType enum.
member BOOL
BOOL = 1
member DISTRIBUTION
DISTRIBUTION = 5
member DOUBLE
DOUBLE = 3
member INT64
INT64 = 2
member MONEY
MONEY = 6
member STRING
STRING = 4
member VALUE_TYPE_UNSPECIFIED
VALUE_TYPE_UNSPECIFIED = 0
namespace protos.google.api.ResourceDescriptor
namespace protos.google.api.ResourceDescriptor {}
enum History
enum History { HISTORY_UNSPECIFIED = 0, ORIGINALLY_SINGLE_PATTERN = 1, FUTURE_MULTI_PATTERN = 2,}
History enum.
member FUTURE_MULTI_PATTERN
FUTURE_MULTI_PATTERN = 2
member HISTORY_UNSPECIFIED
HISTORY_UNSPECIFIED = 0
member ORIGINALLY_SINGLE_PATTERN
ORIGINALLY_SINGLE_PATTERN = 1
enum Style
enum Style { STYLE_UNSPECIFIED = 0, DECLARATIVE_FRIENDLY = 1,}
Style enum.
member DECLARATIVE_FRIENDLY
DECLARATIVE_FRIENDLY = 1
member STYLE_UNSPECIFIED
STYLE_UNSPECIFIED = 0
namespace protos.google.logging
namespace protos.google.logging {}
Namespace logging.
namespace protos.google.logging.type
namespace protos.google.logging.type {}
Namespace type.
class HttpRequest
class HttpRequest implements IHttpRequest {}
Represents a HttpRequest.
constructor
constructor(properties?: IHttpRequest);
Constructs a new HttpRequest.
Parameter properties
Properties to set
property cacheFillBytes
cacheFillBytes: any;
HttpRequest cacheFillBytes.
property cacheHit
cacheHit: boolean;
HttpRequest cacheHit.
property cacheLookup
cacheLookup: boolean;
HttpRequest cacheLookup.
property cacheValidatedWithOriginServer
cacheValidatedWithOriginServer: boolean;
HttpRequest cacheValidatedWithOriginServer.
property latency
latency?: protobuf.IDuration;
HttpRequest latency.
property protocol
protocol: string;
HttpRequest protocol.
property referer
referer: string;
HttpRequest referer.
property remoteIp
remoteIp: string;
HttpRequest remoteIp.
property requestMethod
requestMethod: string;
HttpRequest requestMethod.
property requestSize
requestSize: any;
HttpRequest requestSize.
property requestUrl
requestUrl: string;
HttpRequest requestUrl.
property responseSize
responseSize: any;
HttpRequest responseSize.
property serverIp
serverIp: string;
HttpRequest serverIp.
property status
status: number;
HttpRequest status.
property userAgent
userAgent: string;
HttpRequest userAgent.
method create
static create: ( properties?: google.logging.type.IHttpRequest) => google.logging.type.HttpRequest;
Creates a new HttpRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
HttpRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.type.HttpRequest;
Decodes a HttpRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
HttpRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.type.HttpRequest;
Decodes a HttpRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
HttpRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.type.IHttpRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified HttpRequest message. Does not implicitly messages.
Parameter message
HttpRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.type.IHttpRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified HttpRequest message, length delimited. Does not implicitly messages.
Parameter message
HttpRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.type.HttpRequest;
Creates a HttpRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
HttpRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for HttpRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this HttpRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.type.HttpRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a HttpRequest message. Also converts values to other types if specified.
Parameter message
HttpRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a HttpRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IHttpRequest
interface IHttpRequest {}
Properties of a HttpRequest.
property cacheFillBytes
cacheFillBytes?: number | Long | string | null;
HttpRequest cacheFillBytes
property cacheHit
cacheHit?: boolean | null;
HttpRequest cacheHit
property cacheLookup
cacheLookup?: boolean | null;
HttpRequest cacheLookup
property cacheValidatedWithOriginServer
cacheValidatedWithOriginServer?: boolean | null;
HttpRequest cacheValidatedWithOriginServer
property latency
latency?: google.protobuf.IDuration | null;
HttpRequest latency
property protocol
protocol?: string | null;
HttpRequest protocol
property referer
referer?: string | null;
HttpRequest referer
property remoteIp
remoteIp?: string | null;
HttpRequest remoteIp
property requestMethod
requestMethod?: string | null;
HttpRequest requestMethod
property requestSize
requestSize?: number | Long | string | null;
HttpRequest requestSize
property requestUrl
requestUrl?: string | null;
HttpRequest requestUrl
property responseSize
responseSize?: number | Long | string | null;
HttpRequest responseSize
property serverIp
serverIp?: string | null;
HttpRequest serverIp
property status
status?: number | null;
HttpRequest status
property userAgent
userAgent?: string | null;
HttpRequest userAgent
enum LogSeverity
enum LogSeverity { DEFAULT = 0, DEBUG = 100, INFO = 200, NOTICE = 300, WARNING = 400, ERROR = 500, CRITICAL = 600, ALERT = 700, EMERGENCY = 800,}
LogSeverity enum.
namespace protos.google.logging.v2
namespace protos.google.logging.v2 {}
Namespace v2.
class BigQueryDataset
class BigQueryDataset implements IBigQueryDataset {}
Represents a BigQueryDataset.
constructor
constructor(properties?: IBigQueryDataset);
Constructs a new BigQueryDataset.
Parameter properties
Properties to set
property datasetId
datasetId: string;
BigQueryDataset datasetId.
method create
static create: ( properties?: google.logging.v2.IBigQueryDataset) => google.logging.v2.BigQueryDataset;
Creates a new BigQueryDataset instance using the specified properties.
Parameter properties
Properties to set
Returns
BigQueryDataset instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.BigQueryDataset;
Decodes a BigQueryDataset message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
BigQueryDataset
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.BigQueryDataset;
Decodes a BigQueryDataset message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
BigQueryDataset
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IBigQueryDataset, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BigQueryDataset message. Does not implicitly verify messages.
Parameter message
BigQueryDataset message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IBigQueryDataset, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BigQueryDataset message, length delimited. Does not implicitly verify messages.
Parameter message
BigQueryDataset message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.BigQueryDataset;
Creates a BigQueryDataset message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
BigQueryDataset
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for BigQueryDataset
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this BigQueryDataset to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.BigQueryDataset, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a BigQueryDataset message. Also converts values to other types if specified.
Parameter message
BigQueryDataset
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a BigQueryDataset message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class BigQueryOptions
class BigQueryOptions implements IBigQueryOptions {}
Represents a BigQueryOptions.
constructor
constructor(properties?: IBigQueryOptions);
Constructs a new BigQueryOptions.
Parameter properties
Properties to set
property usePartitionedTables
usePartitionedTables: boolean;
BigQueryOptions usePartitionedTables.
property usesTimestampColumnPartitioning
usesTimestampColumnPartitioning: boolean;
BigQueryOptions usesTimestampColumnPartitioning.
method create
static create: ( properties?: google.logging.v2.IBigQueryOptions) => google.logging.v2.BigQueryOptions;
Creates a new BigQueryOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
BigQueryOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.BigQueryOptions;
Decodes a BigQueryOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
BigQueryOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.BigQueryOptions;
Decodes a BigQueryOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
BigQueryOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IBigQueryOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BigQueryOptions message. Does not implicitly verify messages.
Parameter message
BigQueryOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IBigQueryOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BigQueryOptions message, length delimited. Does not implicitly verify messages.
Parameter message
BigQueryOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.BigQueryOptions;
Creates a BigQueryOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
BigQueryOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for BigQueryOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this BigQueryOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.BigQueryOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a BigQueryOptions message. Also converts values to other types if specified.
Parameter message
BigQueryOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a BigQueryOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class BucketMetadata
class BucketMetadata implements IBucketMetadata {}
Represents a BucketMetadata.
constructor
constructor(properties?: IBucketMetadata);
Constructs a new BucketMetadata.
Parameter properties
Properties to set
property createBucketRequest
createBucketRequest?: ICreateBucketRequest;
BucketMetadata createBucketRequest.
property endTime
endTime?: protobuf.ITimestamp;
BucketMetadata endTime.
property request
request?: 'createBucketRequest' | 'updateBucketRequest';
BucketMetadata request.
property startTime
startTime?: protobuf.ITimestamp;
BucketMetadata startTime.
property state
state: | OperationState | 'OPERATION_STATE_UNSPECIFIED' | 'OPERATION_STATE_SCHEDULED' | 'OPERATION_STATE_WAITING_FOR_PERMISSIONS' | 'OPERATION_STATE_RUNNING' | 'OPERATION_STATE_SUCCEEDED' | 'OPERATION_STATE_FAILED' | 'OPERATION_STATE_CANCELLED';
BucketMetadata state.
property updateBucketRequest
updateBucketRequest?: IUpdateBucketRequest;
BucketMetadata updateBucketRequest.
method create
static create: ( properties?: google.logging.v2.IBucketMetadata) => google.logging.v2.BucketMetadata;
Creates a new BucketMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
BucketMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.BucketMetadata;
Decodes a BucketMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
BucketMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.BucketMetadata;
Decodes a BucketMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
BucketMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IBucketMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BucketMetadata message. Does not implicitly verify messages.
Parameter message
BucketMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IBucketMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified BucketMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
BucketMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.BucketMetadata;
Creates a BucketMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
BucketMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for BucketMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this BucketMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.BucketMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a BucketMetadata message. Also converts values to other types if specified.
Parameter message
BucketMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a BucketMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CmekSettings
class CmekSettings implements ICmekSettings {}
Represents a CmekSettings.
constructor
constructor(properties?: ICmekSettings);
Constructs a new CmekSettings.
Parameter properties
Properties to set
property kmsKeyName
kmsKeyName: string;
CmekSettings kmsKeyName.
property kmsKeyVersionName
kmsKeyVersionName: string;
CmekSettings kmsKeyVersionName.
property name
name: string;
CmekSettings name.
property serviceAccountId
serviceAccountId: string;
CmekSettings serviceAccountId.
method create
static create: ( properties?: google.logging.v2.ICmekSettings) => google.logging.v2.CmekSettings;
Creates a new CmekSettings instance using the specified properties.
Parameter properties
Properties to set
Returns
CmekSettings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CmekSettings;
Decodes a CmekSettings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CmekSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CmekSettings;
Decodes a CmekSettings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CmekSettings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICmekSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CmekSettings message. Does not implicitly verify messages.
Parameter message
CmekSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICmekSettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CmekSettings message, length delimited. Does not implicitly verify messages.
Parameter message
CmekSettings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CmekSettings;
Creates a CmekSettings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CmekSettings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CmekSettings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CmekSettings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CmekSettings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CmekSettings message. Also converts values to other types if specified.
Parameter message
CmekSettings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CmekSettings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ConfigServiceV2
class ConfigServiceV2 extends $protobuf.rpc.Service {}
Represents a ConfigServiceV2
constructor
constructor( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ConfigServiceV2 service.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
method copyLogEntries
copyLogEntries: { ( request: google.logging.v2.ICopyLogEntriesRequest, callback: google.logging.v2.ConfigServiceV2.CopyLogEntriesCallback ): void; (request: ICopyLogEntriesRequest): Promise<longrunning.Operation>;};
Calls CopyLogEntries.
Parameter request
CopyLogEntriesRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls CopyLogEntries.
Parameter request
CopyLogEntriesRequest message or plain object
Returns
Promise
method create
static create: ( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean) => ConfigServiceV2;
Creates new ConfigServiceV2 service using the specified rpc implementation.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
Returns
RPC service. Useful where requests and/or responses are streamed.
method createBucket
createBucket: { ( request: google.logging.v2.ICreateBucketRequest, callback: google.logging.v2.ConfigServiceV2.CreateBucketCallback ): void; (request: ICreateBucketRequest): Promise<LogBucket>;};
Calls CreateBucket.
Parameter request
CreateBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogBucket
Calls CreateBucket.
Parameter request
CreateBucketRequest message or plain object
Returns
Promise
method createBucketAsync
createBucketAsync: { ( request: google.logging.v2.ICreateBucketRequest, callback: google.logging.v2.ConfigServiceV2.CreateBucketAsyncCallback ): void; (request: ICreateBucketRequest): Promise<longrunning.Operation>;};
Calls CreateBucketAsync.
Parameter request
CreateBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls CreateBucketAsync.
Parameter request
CreateBucketRequest message or plain object
Returns
Promise
method createExclusion
createExclusion: { ( request: google.logging.v2.ICreateExclusionRequest, callback: google.logging.v2.ConfigServiceV2.CreateExclusionCallback ): void; (request: ICreateExclusionRequest): Promise<LogExclusion>;};
Calls CreateExclusion.
Parameter request
CreateExclusionRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogExclusion
Calls CreateExclusion.
Parameter request
CreateExclusionRequest message or plain object
Returns
Promise
method createLink
createLink: { ( request: google.logging.v2.ICreateLinkRequest, callback: google.logging.v2.ConfigServiceV2.CreateLinkCallback ): void; (request: ICreateLinkRequest): Promise<longrunning.Operation>;};
Calls CreateLink.
Parameter request
CreateLinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls CreateLink.
Parameter request
CreateLinkRequest message or plain object
Returns
Promise
method createSink
createSink: { ( request: google.logging.v2.ICreateSinkRequest, callback: google.logging.v2.ConfigServiceV2.CreateSinkCallback ): void; (request: ICreateSinkRequest): Promise<LogSink>;};
Calls CreateSink.
Parameter request
CreateSinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogSink
Calls CreateSink.
Parameter request
CreateSinkRequest message or plain object
Returns
Promise
method createView
createView: { ( request: google.logging.v2.ICreateViewRequest, callback: google.logging.v2.ConfigServiceV2.CreateViewCallback ): void; (request: ICreateViewRequest): Promise<LogView>;};
Calls CreateView.
Parameter request
CreateViewRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogView
Calls CreateView.
Parameter request
CreateViewRequest message or plain object
Returns
Promise
method deleteBucket
deleteBucket: { ( request: google.logging.v2.IDeleteBucketRequest, callback: google.logging.v2.ConfigServiceV2.DeleteBucketCallback ): void; (request: IDeleteBucketRequest): Promise<protobuf.Empty>;};
Calls DeleteBucket.
Parameter request
DeleteBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteBucket.
Parameter request
DeleteBucketRequest message or plain object
Returns
Promise
method deleteExclusion
deleteExclusion: { ( request: google.logging.v2.IDeleteExclusionRequest, callback: google.logging.v2.ConfigServiceV2.DeleteExclusionCallback ): void; (request: IDeleteExclusionRequest): Promise<protobuf.Empty>;};
Calls DeleteExclusion.
Parameter request
DeleteExclusionRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteExclusion.
Parameter request
DeleteExclusionRequest message or plain object
Returns
Promise
method deleteLink
deleteLink: { ( request: google.logging.v2.IDeleteLinkRequest, callback: google.logging.v2.ConfigServiceV2.DeleteLinkCallback ): void; (request: IDeleteLinkRequest): Promise<longrunning.Operation>;};
Calls DeleteLink.
Parameter request
DeleteLinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls DeleteLink.
Parameter request
DeleteLinkRequest message or plain object
Returns
Promise
method deleteSink
deleteSink: { ( request: google.logging.v2.IDeleteSinkRequest, callback: google.logging.v2.ConfigServiceV2.DeleteSinkCallback ): void; (request: IDeleteSinkRequest): Promise<protobuf.Empty>;};
Calls DeleteSink.
Parameter request
DeleteSinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteSink.
Parameter request
DeleteSinkRequest message or plain object
Returns
Promise
method deleteView
deleteView: { ( request: google.logging.v2.IDeleteViewRequest, callback: google.logging.v2.ConfigServiceV2.DeleteViewCallback ): void; (request: IDeleteViewRequest): Promise<protobuf.Empty>;};
Calls DeleteView.
Parameter request
DeleteViewRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteView.
Parameter request
DeleteViewRequest message or plain object
Returns
Promise
method getBucket
getBucket: { ( request: google.logging.v2.IGetBucketRequest, callback: google.logging.v2.ConfigServiceV2.GetBucketCallback ): void; (request: IGetBucketRequest): Promise<LogBucket>;};
Calls GetBucket.
Parameter request
GetBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogBucket
Calls GetBucket.
Parameter request
GetBucketRequest message or plain object
Returns
Promise
method getCmekSettings
getCmekSettings: { ( request: google.logging.v2.IGetCmekSettingsRequest, callback: google.logging.v2.ConfigServiceV2.GetCmekSettingsCallback ): void; (request: IGetCmekSettingsRequest): Promise<CmekSettings>;};
Calls GetCmekSettings.
Parameter request
GetCmekSettingsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and CmekSettings
Calls GetCmekSettings.
Parameter request
GetCmekSettingsRequest message or plain object
Returns
Promise
method getExclusion
getExclusion: { ( request: google.logging.v2.IGetExclusionRequest, callback: google.logging.v2.ConfigServiceV2.GetExclusionCallback ): void; (request: IGetExclusionRequest): Promise<LogExclusion>;};
Calls GetExclusion.
Parameter request
GetExclusionRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogExclusion
Calls GetExclusion.
Parameter request
GetExclusionRequest message or plain object
Returns
Promise
method getLink
getLink: { ( request: google.logging.v2.IGetLinkRequest, callback: google.logging.v2.ConfigServiceV2.GetLinkCallback ): void; (request: IGetLinkRequest): Promise<Link>;};
Calls GetLink.
Parameter request
GetLinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Link
Calls GetLink.
Parameter request
GetLinkRequest message or plain object
Returns
Promise
method getSettings
getSettings: { ( request: google.logging.v2.IGetSettingsRequest, callback: google.logging.v2.ConfigServiceV2.GetSettingsCallback ): void; (request: IGetSettingsRequest): Promise<Settings>;};
Calls GetSettings.
Parameter request
GetSettingsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Settings
Calls GetSettings.
Parameter request
GetSettingsRequest message or plain object
Returns
Promise
method getSink
getSink: { ( request: google.logging.v2.IGetSinkRequest, callback: google.logging.v2.ConfigServiceV2.GetSinkCallback ): void; (request: IGetSinkRequest): Promise<LogSink>;};
Calls GetSink.
Parameter request
GetSinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogSink
Calls GetSink.
Parameter request
GetSinkRequest message or plain object
Returns
Promise
method getView
getView: { ( request: google.logging.v2.IGetViewRequest, callback: google.logging.v2.ConfigServiceV2.GetViewCallback ): void; (request: IGetViewRequest): Promise<LogView>;};
Calls GetView.
Parameter request
GetViewRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogView
Calls GetView.
Parameter request
GetViewRequest message or plain object
Returns
Promise
method listBuckets
listBuckets: { ( request: google.logging.v2.IListBucketsRequest, callback: google.logging.v2.ConfigServiceV2.ListBucketsCallback ): void; (request: IListBucketsRequest): Promise<ListBucketsResponse>;};
Calls ListBuckets.
Parameter request
ListBucketsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListBucketsResponse
Calls ListBuckets.
Parameter request
ListBucketsRequest message or plain object
Returns
Promise
method listExclusions
listExclusions: { ( request: google.logging.v2.IListExclusionsRequest, callback: google.logging.v2.ConfigServiceV2.ListExclusionsCallback ): void; (request: IListExclusionsRequest): Promise<ListExclusionsResponse>;};
Calls ListExclusions.
Parameter request
ListExclusionsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListExclusionsResponse
Calls ListExclusions.
Parameter request
ListExclusionsRequest message or plain object
Returns
Promise
method listLinks
listLinks: { ( request: google.logging.v2.IListLinksRequest, callback: google.logging.v2.ConfigServiceV2.ListLinksCallback ): void; (request: IListLinksRequest): Promise<ListLinksResponse>;};
Calls ListLinks.
Parameter request
ListLinksRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListLinksResponse
Calls ListLinks.
Parameter request
ListLinksRequest message or plain object
Returns
Promise
method listSinks
listSinks: { ( request: google.logging.v2.IListSinksRequest, callback: google.logging.v2.ConfigServiceV2.ListSinksCallback ): void; (request: IListSinksRequest): Promise<ListSinksResponse>;};
Calls ListSinks.
Parameter request
ListSinksRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListSinksResponse
Calls ListSinks.
Parameter request
ListSinksRequest message or plain object
Returns
Promise
method listViews
listViews: { ( request: google.logging.v2.IListViewsRequest, callback: google.logging.v2.ConfigServiceV2.ListViewsCallback ): void; (request: IListViewsRequest): Promise<ListViewsResponse>;};
Calls ListViews.
Parameter request
ListViewsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListViewsResponse
Calls ListViews.
Parameter request
ListViewsRequest message or plain object
Returns
Promise
method undeleteBucket
undeleteBucket: { ( request: google.logging.v2.IUndeleteBucketRequest, callback: google.logging.v2.ConfigServiceV2.UndeleteBucketCallback ): void; (request: IUndeleteBucketRequest): Promise<protobuf.Empty>;};
Calls UndeleteBucket.
Parameter request
UndeleteBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls UndeleteBucket.
Parameter request
UndeleteBucketRequest message or plain object
Returns
Promise
method updateBucket
updateBucket: { ( request: google.logging.v2.IUpdateBucketRequest, callback: google.logging.v2.ConfigServiceV2.UpdateBucketCallback ): void; (request: IUpdateBucketRequest): Promise<LogBucket>;};
Calls UpdateBucket.
Parameter request
UpdateBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogBucket
Calls UpdateBucket.
Parameter request
UpdateBucketRequest message or plain object
Returns
Promise
method updateBucketAsync
updateBucketAsync: { ( request: google.logging.v2.IUpdateBucketRequest, callback: google.logging.v2.ConfigServiceV2.UpdateBucketAsyncCallback ): void; (request: IUpdateBucketRequest): Promise<longrunning.Operation>;};
Calls UpdateBucketAsync.
Parameter request
UpdateBucketRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls UpdateBucketAsync.
Parameter request
UpdateBucketRequest message or plain object
Returns
Promise
method updateCmekSettings
updateCmekSettings: { ( request: google.logging.v2.IUpdateCmekSettingsRequest, callback: google.logging.v2.ConfigServiceV2.UpdateCmekSettingsCallback ): void; (request: IUpdateCmekSettingsRequest): Promise<CmekSettings>;};
Calls UpdateCmekSettings.
Parameter request
UpdateCmekSettingsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and CmekSettings
Calls UpdateCmekSettings.
Parameter request
UpdateCmekSettingsRequest message or plain object
Returns
Promise
method updateExclusion
updateExclusion: { ( request: google.logging.v2.IUpdateExclusionRequest, callback: google.logging.v2.ConfigServiceV2.UpdateExclusionCallback ): void; (request: IUpdateExclusionRequest): Promise<LogExclusion>;};
Calls UpdateExclusion.
Parameter request
UpdateExclusionRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogExclusion
Calls UpdateExclusion.
Parameter request
UpdateExclusionRequest message or plain object
Returns
Promise
method updateSettings
updateSettings: { ( request: google.logging.v2.IUpdateSettingsRequest, callback: google.logging.v2.ConfigServiceV2.UpdateSettingsCallback ): void; (request: IUpdateSettingsRequest): Promise<Settings>;};
Calls UpdateSettings.
Parameter request
UpdateSettingsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Settings
Calls UpdateSettings.
Parameter request
UpdateSettingsRequest message or plain object
Returns
Promise
method updateSink
updateSink: { ( request: google.logging.v2.IUpdateSinkRequest, callback: google.logging.v2.ConfigServiceV2.UpdateSinkCallback ): void; (request: IUpdateSinkRequest): Promise<LogSink>;};
Calls UpdateSink.
Parameter request
UpdateSinkRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogSink
Calls UpdateSink.
Parameter request
UpdateSinkRequest message or plain object
Returns
Promise
method updateView
updateView: { ( request: google.logging.v2.IUpdateViewRequest, callback: google.logging.v2.ConfigServiceV2.UpdateViewCallback ): void; (request: IUpdateViewRequest): Promise<LogView>;};
Calls UpdateView.
Parameter request
UpdateViewRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogView
Calls UpdateView.
Parameter request
UpdateViewRequest message or plain object
Returns
Promise
class CopyLogEntriesMetadata
class CopyLogEntriesMetadata implements ICopyLogEntriesMetadata {}
Represents a CopyLogEntriesMetadata.
constructor
constructor(properties?: ICopyLogEntriesMetadata);
Constructs a new CopyLogEntriesMetadata.
Parameter properties
Properties to set
property cancellationRequested
cancellationRequested: boolean;
CopyLogEntriesMetadata cancellationRequested.
property endTime
endTime?: protobuf.ITimestamp;
CopyLogEntriesMetadata endTime.
property progress
progress: number;
CopyLogEntriesMetadata progress.
property request
request?: ICopyLogEntriesRequest;
CopyLogEntriesMetadata request.
property startTime
startTime?: protobuf.ITimestamp;
CopyLogEntriesMetadata startTime.
property state
state: | OperationState | 'OPERATION_STATE_UNSPECIFIED' | 'OPERATION_STATE_SCHEDULED' | 'OPERATION_STATE_WAITING_FOR_PERMISSIONS' | 'OPERATION_STATE_RUNNING' | 'OPERATION_STATE_SUCCEEDED' | 'OPERATION_STATE_FAILED' | 'OPERATION_STATE_CANCELLED';
CopyLogEntriesMetadata state.
property writerIdentity
writerIdentity: string;
CopyLogEntriesMetadata writerIdentity.
method create
static create: ( properties?: google.logging.v2.ICopyLogEntriesMetadata) => google.logging.v2.CopyLogEntriesMetadata;
Creates a new CopyLogEntriesMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
CopyLogEntriesMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CopyLogEntriesMetadata;
Decodes a CopyLogEntriesMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CopyLogEntriesMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CopyLogEntriesMetadata;
Decodes a CopyLogEntriesMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CopyLogEntriesMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICopyLogEntriesMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesMetadata message. Does not implicitly verify messages.
Parameter message
CopyLogEntriesMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICopyLogEntriesMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
CopyLogEntriesMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CopyLogEntriesMetadata;
Creates a CopyLogEntriesMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CopyLogEntriesMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CopyLogEntriesMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CopyLogEntriesMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CopyLogEntriesMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CopyLogEntriesMetadata message. Also converts values to other types if specified.
Parameter message
CopyLogEntriesMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CopyLogEntriesMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CopyLogEntriesRequest
class CopyLogEntriesRequest implements ICopyLogEntriesRequest {}
Represents a CopyLogEntriesRequest.
constructor
constructor(properties?: ICopyLogEntriesRequest);
Constructs a new CopyLogEntriesRequest.
Parameter properties
Properties to set
property destination
destination: string;
CopyLogEntriesRequest destination.
property filter
filter: string;
CopyLogEntriesRequest filter.
property name
name: string;
CopyLogEntriesRequest name.
method create
static create: ( properties?: google.logging.v2.ICopyLogEntriesRequest) => google.logging.v2.CopyLogEntriesRequest;
Creates a new CopyLogEntriesRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CopyLogEntriesRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CopyLogEntriesRequest;
Decodes a CopyLogEntriesRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CopyLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CopyLogEntriesRequest;
Decodes a CopyLogEntriesRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CopyLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICopyLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesRequest message. Does not implicitly verify messages.
Parameter message
CopyLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICopyLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CopyLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CopyLogEntriesRequest;
Creates a CopyLogEntriesRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CopyLogEntriesRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CopyLogEntriesRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CopyLogEntriesRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CopyLogEntriesRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CopyLogEntriesRequest message. Also converts values to other types if specified.
Parameter message
CopyLogEntriesRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CopyLogEntriesRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CopyLogEntriesResponse
class CopyLogEntriesResponse implements ICopyLogEntriesResponse {}
Represents a CopyLogEntriesResponse.
constructor
constructor(properties?: ICopyLogEntriesResponse);
Constructs a new CopyLogEntriesResponse.
Parameter properties
Properties to set
property logEntriesCopiedCount
logEntriesCopiedCount: any;
CopyLogEntriesResponse logEntriesCopiedCount.
method create
static create: ( properties?: google.logging.v2.ICopyLogEntriesResponse) => google.logging.v2.CopyLogEntriesResponse;
Creates a new CopyLogEntriesResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
CopyLogEntriesResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CopyLogEntriesResponse;
Decodes a CopyLogEntriesResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CopyLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CopyLogEntriesResponse;
Decodes a CopyLogEntriesResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CopyLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICopyLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesResponse message. Does not implicitly verify messages.
Parameter message
CopyLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICopyLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CopyLogEntriesResponse message, length delimited. Does not implicitly verify messages.
Parameter message
CopyLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CopyLogEntriesResponse;
Creates a CopyLogEntriesResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CopyLogEntriesResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CopyLogEntriesResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CopyLogEntriesResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CopyLogEntriesResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CopyLogEntriesResponse message. Also converts values to other types if specified.
Parameter message
CopyLogEntriesResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CopyLogEntriesResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateBucketRequest
class CreateBucketRequest implements ICreateBucketRequest {}
Represents a CreateBucketRequest.
constructor
constructor(properties?: ICreateBucketRequest);
Constructs a new CreateBucketRequest.
Parameter properties
Properties to set
property bucket
bucket?: ILogBucket;
CreateBucketRequest bucket.
property bucketId
bucketId: string;
CreateBucketRequest bucketId.
property parent
parent: string;
CreateBucketRequest parent.
method create
static create: ( properties?: google.logging.v2.ICreateBucketRequest) => google.logging.v2.CreateBucketRequest;
Creates a new CreateBucketRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateBucketRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateBucketRequest;
Decodes a CreateBucketRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateBucketRequest;
Decodes a CreateBucketRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateBucketRequest message. Does not implicitly verify messages.
Parameter message
CreateBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateBucketRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateBucketRequest;
Creates a CreateBucketRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateBucketRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateBucketRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateBucketRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateBucketRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateBucketRequest message. Also converts values to other types if specified.
Parameter message
CreateBucketRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateBucketRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateExclusionRequest
class CreateExclusionRequest implements ICreateExclusionRequest {}
Represents a CreateExclusionRequest.
constructor
constructor(properties?: ICreateExclusionRequest);
Constructs a new CreateExclusionRequest.
Parameter properties
Properties to set
property exclusion
exclusion?: ILogExclusion;
CreateExclusionRequest exclusion.
property parent
parent: string;
CreateExclusionRequest parent.
method create
static create: ( properties?: google.logging.v2.ICreateExclusionRequest) => google.logging.v2.CreateExclusionRequest;
Creates a new CreateExclusionRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateExclusionRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateExclusionRequest;
Decodes a CreateExclusionRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateExclusionRequest;
Decodes a CreateExclusionRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateExclusionRequest message. Does not implicitly verify messages.
Parameter message
CreateExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateExclusionRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateExclusionRequest;
Creates a CreateExclusionRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateExclusionRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateExclusionRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateExclusionRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateExclusionRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateExclusionRequest message. Also converts values to other types if specified.
Parameter message
CreateExclusionRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateExclusionRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateLinkRequest
class CreateLinkRequest implements ICreateLinkRequest {}
Represents a CreateLinkRequest.
constructor
constructor(properties?: ICreateLinkRequest);
Constructs a new CreateLinkRequest.
Parameter properties
Properties to set
property link
link?: ILink;
CreateLinkRequest link.
property linkId
linkId: string;
CreateLinkRequest linkId.
property parent
parent: string;
CreateLinkRequest parent.
method create
static create: ( properties?: google.logging.v2.ICreateLinkRequest) => google.logging.v2.CreateLinkRequest;
Creates a new CreateLinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateLinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateLinkRequest;
Decodes a CreateLinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateLinkRequest;
Decodes a CreateLinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateLinkRequest message. Does not implicitly verify messages.
Parameter message
CreateLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateLinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateLinkRequest;
Creates a CreateLinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateLinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateLinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateLinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateLinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateLinkRequest message. Also converts values to other types if specified.
Parameter message
CreateLinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateLinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateLogMetricRequest
class CreateLogMetricRequest implements ICreateLogMetricRequest {}
Represents a CreateLogMetricRequest.
constructor
constructor(properties?: ICreateLogMetricRequest);
Constructs a new CreateLogMetricRequest.
Parameter properties
Properties to set
property metric
metric?: ILogMetric;
CreateLogMetricRequest metric.
property parent
parent: string;
CreateLogMetricRequest parent.
method create
static create: ( properties?: google.logging.v2.ICreateLogMetricRequest) => google.logging.v2.CreateLogMetricRequest;
Creates a new CreateLogMetricRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateLogMetricRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateLogMetricRequest;
Decodes a CreateLogMetricRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateLogMetricRequest;
Decodes a CreateLogMetricRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateLogMetricRequest message. Does not implicitly verify messages.
Parameter message
CreateLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateLogMetricRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateLogMetricRequest;
Creates a CreateLogMetricRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateLogMetricRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateLogMetricRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateLogMetricRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateLogMetricRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateLogMetricRequest message. Also converts values to other types if specified.
Parameter message
CreateLogMetricRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateLogMetricRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateSinkRequest
class CreateSinkRequest implements ICreateSinkRequest {}
Represents a CreateSinkRequest.
constructor
constructor(properties?: ICreateSinkRequest);
Constructs a new CreateSinkRequest.
Parameter properties
Properties to set
property parent
parent: string;
CreateSinkRequest parent.
property sink
sink?: ILogSink;
CreateSinkRequest sink.
property uniqueWriterIdentity
uniqueWriterIdentity: boolean;
CreateSinkRequest uniqueWriterIdentity.
method create
static create: ( properties?: google.logging.v2.ICreateSinkRequest) => google.logging.v2.CreateSinkRequest;
Creates a new CreateSinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateSinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateSinkRequest;
Decodes a CreateSinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateSinkRequest;
Decodes a CreateSinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateSinkRequest message. Does not implicitly verify messages.
Parameter message
CreateSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateSinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateSinkRequest;
Creates a CreateSinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateSinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateSinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateSinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateSinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateSinkRequest message. Also converts values to other types if specified.
Parameter message
CreateSinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateSinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class CreateViewRequest
class CreateViewRequest implements ICreateViewRequest {}
Represents a CreateViewRequest.
constructor
constructor(properties?: ICreateViewRequest);
Constructs a new CreateViewRequest.
Parameter properties
Properties to set
property parent
parent: string;
CreateViewRequest parent.
property view
view?: ILogView;
CreateViewRequest view.
property viewId
viewId: string;
CreateViewRequest viewId.
method create
static create: ( properties?: google.logging.v2.ICreateViewRequest) => google.logging.v2.CreateViewRequest;
Creates a new CreateViewRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CreateViewRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.CreateViewRequest;
Decodes a CreateViewRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CreateViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.CreateViewRequest;
Decodes a CreateViewRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CreateViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ICreateViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateViewRequest message. Does not implicitly verify messages.
Parameter message
CreateViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ICreateViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CreateViewRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CreateViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.CreateViewRequest;
Creates a CreateViewRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CreateViewRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CreateViewRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CreateViewRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.CreateViewRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CreateViewRequest message. Also converts values to other types if specified.
Parameter message
CreateViewRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CreateViewRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteBucketRequest
class DeleteBucketRequest implements IDeleteBucketRequest {}
Represents a DeleteBucketRequest.
constructor
constructor(properties?: IDeleteBucketRequest);
Constructs a new DeleteBucketRequest.
Parameter properties
Properties to set
property name
name: string;
DeleteBucketRequest name.
method create
static create: ( properties?: google.logging.v2.IDeleteBucketRequest) => google.logging.v2.DeleteBucketRequest;
Creates a new DeleteBucketRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteBucketRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteBucketRequest;
Decodes a DeleteBucketRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteBucketRequest;
Decodes a DeleteBucketRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteBucketRequest message. Does not implicitly verify messages.
Parameter message
DeleteBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteBucketRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteBucketRequest;
Creates a DeleteBucketRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteBucketRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteBucketRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteBucketRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteBucketRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteBucketRequest message. Also converts values to other types if specified.
Parameter message
DeleteBucketRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteBucketRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteExclusionRequest
class DeleteExclusionRequest implements IDeleteExclusionRequest {}
Represents a DeleteExclusionRequest.
constructor
constructor(properties?: IDeleteExclusionRequest);
Constructs a new DeleteExclusionRequest.
Parameter properties
Properties to set
property name
name: string;
DeleteExclusionRequest name.
method create
static create: ( properties?: google.logging.v2.IDeleteExclusionRequest) => google.logging.v2.DeleteExclusionRequest;
Creates a new DeleteExclusionRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteExclusionRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteExclusionRequest;
Decodes a DeleteExclusionRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteExclusionRequest;
Decodes a DeleteExclusionRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteExclusionRequest message. Does not implicitly verify messages.
Parameter message
DeleteExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteExclusionRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteExclusionRequest;
Creates a DeleteExclusionRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteExclusionRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteExclusionRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteExclusionRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteExclusionRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteExclusionRequest message. Also converts values to other types if specified.
Parameter message
DeleteExclusionRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteExclusionRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteLinkRequest
class DeleteLinkRequest implements IDeleteLinkRequest {}
Represents a DeleteLinkRequest.
constructor
constructor(properties?: IDeleteLinkRequest);
Constructs a new DeleteLinkRequest.
Parameter properties
Properties to set
property name
name: string;
DeleteLinkRequest name.
method create
static create: ( properties?: google.logging.v2.IDeleteLinkRequest) => google.logging.v2.DeleteLinkRequest;
Creates a new DeleteLinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteLinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteLinkRequest;
Decodes a DeleteLinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteLinkRequest;
Decodes a DeleteLinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLinkRequest message. Does not implicitly verify messages.
Parameter message
DeleteLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteLinkRequest;
Creates a DeleteLinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteLinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteLinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteLinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteLinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteLinkRequest message. Also converts values to other types if specified.
Parameter message
DeleteLinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteLinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteLogMetricRequest
class DeleteLogMetricRequest implements IDeleteLogMetricRequest {}
Represents a DeleteLogMetricRequest.
constructor
constructor(properties?: IDeleteLogMetricRequest);
Constructs a new DeleteLogMetricRequest.
Parameter properties
Properties to set
property metricName
metricName: string;
DeleteLogMetricRequest metricName.
method create
static create: ( properties?: google.logging.v2.IDeleteLogMetricRequest) => google.logging.v2.DeleteLogMetricRequest;
Creates a new DeleteLogMetricRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteLogMetricRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteLogMetricRequest;
Decodes a DeleteLogMetricRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteLogMetricRequest;
Decodes a DeleteLogMetricRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLogMetricRequest message. Does not implicitly verify messages.
Parameter message
DeleteLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLogMetricRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteLogMetricRequest;
Creates a DeleteLogMetricRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteLogMetricRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteLogMetricRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteLogMetricRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteLogMetricRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteLogMetricRequest message. Also converts values to other types if specified.
Parameter message
DeleteLogMetricRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteLogMetricRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteLogRequest
class DeleteLogRequest implements IDeleteLogRequest {}
Represents a DeleteLogRequest.
constructor
constructor(properties?: IDeleteLogRequest);
Constructs a new DeleteLogRequest.
Parameter properties
Properties to set
property logName
logName: string;
DeleteLogRequest logName.
method create
static create: ( properties?: google.logging.v2.IDeleteLogRequest) => google.logging.v2.DeleteLogRequest;
Creates a new DeleteLogRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteLogRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteLogRequest;
Decodes a DeleteLogRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteLogRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteLogRequest;
Decodes a DeleteLogRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteLogRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteLogRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLogRequest message. Does not implicitly verify messages.
Parameter message
DeleteLogRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteLogRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteLogRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteLogRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteLogRequest;
Creates a DeleteLogRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteLogRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteLogRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteLogRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteLogRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteLogRequest message. Also converts values to other types if specified.
Parameter message
DeleteLogRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteLogRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteSinkRequest
class DeleteSinkRequest implements IDeleteSinkRequest {}
Represents a DeleteSinkRequest.
constructor
constructor(properties?: IDeleteSinkRequest);
Constructs a new DeleteSinkRequest.
Parameter properties
Properties to set
property sinkName
sinkName: string;
DeleteSinkRequest sinkName.
method create
static create: ( properties?: google.logging.v2.IDeleteSinkRequest) => google.logging.v2.DeleteSinkRequest;
Creates a new DeleteSinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteSinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteSinkRequest;
Decodes a DeleteSinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteSinkRequest;
Decodes a DeleteSinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteSinkRequest message. Does not implicitly verify messages.
Parameter message
DeleteSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteSinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteSinkRequest;
Creates a DeleteSinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteSinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteSinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteSinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteSinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteSinkRequest message. Also converts values to other types if specified.
Parameter message
DeleteSinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteSinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteViewRequest
class DeleteViewRequest implements IDeleteViewRequest {}
Represents a DeleteViewRequest.
constructor
constructor(properties?: IDeleteViewRequest);
Constructs a new DeleteViewRequest.
Parameter properties
Properties to set
property name
name: string;
DeleteViewRequest name.
method create
static create: ( properties?: google.logging.v2.IDeleteViewRequest) => google.logging.v2.DeleteViewRequest;
Creates a new DeleteViewRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteViewRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.DeleteViewRequest;
Decodes a DeleteViewRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.DeleteViewRequest;
Decodes a DeleteViewRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IDeleteViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteViewRequest message. Does not implicitly verify messages.
Parameter message
DeleteViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IDeleteViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteViewRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.DeleteViewRequest;
Creates a DeleteViewRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteViewRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteViewRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteViewRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.DeleteViewRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteViewRequest message. Also converts values to other types if specified.
Parameter message
DeleteViewRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteViewRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetBucketRequest
class GetBucketRequest implements IGetBucketRequest {}
Represents a GetBucketRequest.
constructor
constructor(properties?: IGetBucketRequest);
Constructs a new GetBucketRequest.
Parameter properties
Properties to set
property name
name: string;
GetBucketRequest name.
method create
static create: ( properties?: google.logging.v2.IGetBucketRequest) => google.logging.v2.GetBucketRequest;
Creates a new GetBucketRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetBucketRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetBucketRequest;
Decodes a GetBucketRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetBucketRequest;
Decodes a GetBucketRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetBucketRequest message. Does not implicitly verify messages.
Parameter message
GetBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetBucketRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetBucketRequest;
Creates a GetBucketRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetBucketRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetBucketRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetBucketRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetBucketRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetBucketRequest message. Also converts values to other types if specified.
Parameter message
GetBucketRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetBucketRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetCmekSettingsRequest
class GetCmekSettingsRequest implements IGetCmekSettingsRequest {}
Represents a GetCmekSettingsRequest.
constructor
constructor(properties?: IGetCmekSettingsRequest);
Constructs a new GetCmekSettingsRequest.
Parameter properties
Properties to set
property name
name: string;
GetCmekSettingsRequest name.
method create
static create: ( properties?: google.logging.v2.IGetCmekSettingsRequest) => google.logging.v2.GetCmekSettingsRequest;
Creates a new GetCmekSettingsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetCmekSettingsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetCmekSettingsRequest;
Decodes a GetCmekSettingsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetCmekSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetCmekSettingsRequest;
Decodes a GetCmekSettingsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetCmekSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetCmekSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetCmekSettingsRequest message. Does not implicitly verify messages.
Parameter message
GetCmekSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetCmekSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetCmekSettingsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetCmekSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetCmekSettingsRequest;
Creates a GetCmekSettingsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetCmekSettingsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetCmekSettingsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetCmekSettingsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetCmekSettingsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetCmekSettingsRequest message. Also converts values to other types if specified.
Parameter message
GetCmekSettingsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetCmekSettingsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetExclusionRequest
class GetExclusionRequest implements IGetExclusionRequest {}
Represents a GetExclusionRequest.
constructor
constructor(properties?: IGetExclusionRequest);
Constructs a new GetExclusionRequest.
Parameter properties
Properties to set
property name
name: string;
GetExclusionRequest name.
method create
static create: ( properties?: google.logging.v2.IGetExclusionRequest) => google.logging.v2.GetExclusionRequest;
Creates a new GetExclusionRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetExclusionRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetExclusionRequest;
Decodes a GetExclusionRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetExclusionRequest;
Decodes a GetExclusionRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetExclusionRequest message. Does not implicitly verify messages.
Parameter message
GetExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetExclusionRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetExclusionRequest;
Creates a GetExclusionRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetExclusionRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetExclusionRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetExclusionRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetExclusionRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetExclusionRequest message. Also converts values to other types if specified.
Parameter message
GetExclusionRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetExclusionRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetLinkRequest
class GetLinkRequest implements IGetLinkRequest {}
Represents a GetLinkRequest.
constructor
constructor(properties?: IGetLinkRequest);
Constructs a new GetLinkRequest.
Parameter properties
Properties to set
property name
name: string;
GetLinkRequest name.
method create
static create: ( properties?: google.logging.v2.IGetLinkRequest) => google.logging.v2.GetLinkRequest;
Creates a new GetLinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetLinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetLinkRequest;
Decodes a GetLinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetLinkRequest;
Decodes a GetLinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetLinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetLinkRequest message. Does not implicitly verify messages.
Parameter message
GetLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetLinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetLinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetLinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetLinkRequest;
Creates a GetLinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetLinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetLinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetLinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetLinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetLinkRequest message. Also converts values to other types if specified.
Parameter message
GetLinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetLinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetLogMetricRequest
class GetLogMetricRequest implements IGetLogMetricRequest {}
Represents a GetLogMetricRequest.
constructor
constructor(properties?: IGetLogMetricRequest);
Constructs a new GetLogMetricRequest.
Parameter properties
Properties to set
property metricName
metricName: string;
GetLogMetricRequest metricName.
method create
static create: ( properties?: google.logging.v2.IGetLogMetricRequest) => google.logging.v2.GetLogMetricRequest;
Creates a new GetLogMetricRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetLogMetricRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetLogMetricRequest;
Decodes a GetLogMetricRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetLogMetricRequest;
Decodes a GetLogMetricRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetLogMetricRequest message. Does not implicitly verify messages.
Parameter message
GetLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetLogMetricRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetLogMetricRequest;
Creates a GetLogMetricRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetLogMetricRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetLogMetricRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetLogMetricRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetLogMetricRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetLogMetricRequest message. Also converts values to other types if specified.
Parameter message
GetLogMetricRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetLogMetricRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetSettingsRequest
class GetSettingsRequest implements IGetSettingsRequest {}
Represents a GetSettingsRequest.
constructor
constructor(properties?: IGetSettingsRequest);
Constructs a new GetSettingsRequest.
Parameter properties
Properties to set
property name
name: string;
GetSettingsRequest name.
method create
static create: ( properties?: google.logging.v2.IGetSettingsRequest) => google.logging.v2.GetSettingsRequest;
Creates a new GetSettingsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetSettingsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetSettingsRequest;
Decodes a GetSettingsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetSettingsRequest;
Decodes a GetSettingsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetSettingsRequest message. Does not implicitly verify messages.
Parameter message
GetSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetSettingsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetSettingsRequest;
Creates a GetSettingsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetSettingsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetSettingsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetSettingsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetSettingsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetSettingsRequest message. Also converts values to other types if specified.
Parameter message
GetSettingsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetSettingsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetSinkRequest
class GetSinkRequest implements IGetSinkRequest {}
Represents a GetSinkRequest.
constructor
constructor(properties?: IGetSinkRequest);
Constructs a new GetSinkRequest.
Parameter properties
Properties to set
property sinkName
sinkName: string;
GetSinkRequest sinkName.
method create
static create: ( properties?: google.logging.v2.IGetSinkRequest) => google.logging.v2.GetSinkRequest;
Creates a new GetSinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetSinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetSinkRequest;
Decodes a GetSinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetSinkRequest;
Decodes a GetSinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetSinkRequest message. Does not implicitly verify messages.
Parameter message
GetSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetSinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetSinkRequest;
Creates a GetSinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetSinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetSinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetSinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetSinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetSinkRequest message. Also converts values to other types if specified.
Parameter message
GetSinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetSinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetViewRequest
class GetViewRequest implements IGetViewRequest {}
Represents a GetViewRequest.
constructor
constructor(properties?: IGetViewRequest);
Constructs a new GetViewRequest.
Parameter properties
Properties to set
property name
name: string;
GetViewRequest name.
method create
static create: ( properties?: google.logging.v2.IGetViewRequest) => google.logging.v2.GetViewRequest;
Creates a new GetViewRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetViewRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.GetViewRequest;
Decodes a GetViewRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.GetViewRequest;
Decodes a GetViewRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IGetViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetViewRequest message. Does not implicitly verify messages.
Parameter message
GetViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IGetViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetViewRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.GetViewRequest;
Creates a GetViewRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetViewRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetViewRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetViewRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.GetViewRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetViewRequest message. Also converts values to other types if specified.
Parameter message
GetViewRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetViewRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class IndexConfig
class IndexConfig implements IIndexConfig {}
Represents an IndexConfig.
constructor
constructor(properties?: IIndexConfig);
Constructs a new IndexConfig.
Parameter properties
Properties to set
property createTime
createTime?: protobuf.ITimestamp;
IndexConfig createTime.
property fieldPath
fieldPath: string;
IndexConfig fieldPath.
property type
type: | IndexType | 'INDEX_TYPE_UNSPECIFIED' | 'INDEX_TYPE_STRING' | 'INDEX_TYPE_INTEGER';
IndexConfig type.
method create
static create: ( properties?: google.logging.v2.IIndexConfig) => google.logging.v2.IndexConfig;
Creates a new IndexConfig instance using the specified properties.
Parameter properties
Properties to set
Returns
IndexConfig instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.IndexConfig;
Decodes an IndexConfig message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
IndexConfig
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.IndexConfig;
Decodes an IndexConfig message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
IndexConfig
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IIndexConfig, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified IndexConfig message. Does not implicitly verify messages.
Parameter message
IndexConfig message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IIndexConfig, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified IndexConfig message, length delimited. Does not implicitly verify messages.
Parameter message
IndexConfig message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.IndexConfig;
Creates an IndexConfig message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
IndexConfig
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for IndexConfig
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this IndexConfig to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.IndexConfig, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an IndexConfig message. Also converts values to other types if specified.
Parameter message
IndexConfig
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an IndexConfig message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Link
class Link implements ILink {}
Represents a Link.
constructor
constructor(properties?: ILink);
Constructs a new Link.
Parameter properties
Properties to set
property bigqueryDataset
bigqueryDataset?: IBigQueryDataset;
Link bigqueryDataset.
property createTime
createTime?: protobuf.ITimestamp;
Link createTime.
property description
description: string;
Link description.
property lifecycleState
lifecycleState: | LifecycleState | 'LIFECYCLE_STATE_UNSPECIFIED' | 'ACTIVE' | 'DELETE_REQUESTED' | 'UPDATING' | 'CREATING' | 'FAILED';
Link lifecycleState.
property name
name: string;
Link name.
method create
static create: (properties?: google.logging.v2.ILink) => google.logging.v2.Link;
Creates a new Link instance using the specified properties.
Parameter properties
Properties to set
Returns
Link instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.Link;
Decodes a Link message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Link
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.Link;
Decodes a Link message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Link
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILink, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Link message. Does not implicitly verify messages.
Parameter message
Link message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILink, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Link message, length delimited. Does not implicitly verify messages.
Parameter message
Link message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.Link;
Creates a Link message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Link
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Link
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Link to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.Link, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Link message. Also converts values to other types if specified.
Parameter message
Link
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Link message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LinkMetadata
class LinkMetadata implements ILinkMetadata {}
Represents a LinkMetadata.
constructor
constructor(properties?: ILinkMetadata);
Constructs a new LinkMetadata.
Parameter properties
Properties to set
property createLinkRequest
createLinkRequest?: ICreateLinkRequest;
LinkMetadata createLinkRequest.
property deleteLinkRequest
deleteLinkRequest?: IDeleteLinkRequest;
LinkMetadata deleteLinkRequest.
property endTime
endTime?: protobuf.ITimestamp;
LinkMetadata endTime.
property request
request?: 'createLinkRequest' | 'deleteLinkRequest';
LinkMetadata request.
property startTime
startTime?: protobuf.ITimestamp;
LinkMetadata startTime.
property state
state: | OperationState | 'OPERATION_STATE_UNSPECIFIED' | 'OPERATION_STATE_SCHEDULED' | 'OPERATION_STATE_WAITING_FOR_PERMISSIONS' | 'OPERATION_STATE_RUNNING' | 'OPERATION_STATE_SUCCEEDED' | 'OPERATION_STATE_FAILED' | 'OPERATION_STATE_CANCELLED';
LinkMetadata state.
method create
static create: ( properties?: google.logging.v2.ILinkMetadata) => google.logging.v2.LinkMetadata;
Creates a new LinkMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
LinkMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LinkMetadata;
Decodes a LinkMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LinkMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LinkMetadata;
Decodes a LinkMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LinkMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILinkMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LinkMetadata message. Does not implicitly verify messages.
Parameter message
LinkMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILinkMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LinkMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
LinkMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.LinkMetadata;
Creates a LinkMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LinkMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LinkMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LinkMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LinkMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LinkMetadata message. Also converts values to other types if specified.
Parameter message
LinkMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LinkMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListBucketsRequest
class ListBucketsRequest implements IListBucketsRequest {}
Represents a ListBucketsRequest.
constructor
constructor(properties?: IListBucketsRequest);
Constructs a new ListBucketsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListBucketsRequest pageSize.
property pageToken
pageToken: string;
ListBucketsRequest pageToken.
property parent
parent: string;
ListBucketsRequest parent.
method create
static create: ( properties?: google.logging.v2.IListBucketsRequest) => google.logging.v2.ListBucketsRequest;
Creates a new ListBucketsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListBucketsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListBucketsRequest;
Decodes a ListBucketsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListBucketsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListBucketsRequest;
Decodes a ListBucketsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListBucketsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListBucketsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListBucketsRequest message. Does not implicitly verify messages.
Parameter message
ListBucketsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListBucketsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListBucketsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListBucketsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListBucketsRequest;
Creates a ListBucketsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListBucketsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListBucketsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListBucketsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListBucketsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListBucketsRequest message. Also converts values to other types if specified.
Parameter message
ListBucketsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListBucketsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListBucketsResponse
class ListBucketsResponse implements IListBucketsResponse {}
Represents a ListBucketsResponse.
constructor
constructor(properties?: IListBucketsResponse);
Constructs a new ListBucketsResponse.
Parameter properties
Properties to set
property buckets
buckets: ILogBucket[];
ListBucketsResponse buckets.
property nextPageToken
nextPageToken: string;
ListBucketsResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListBucketsResponse) => google.logging.v2.ListBucketsResponse;
Creates a new ListBucketsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListBucketsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListBucketsResponse;
Decodes a ListBucketsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListBucketsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListBucketsResponse;
Decodes a ListBucketsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListBucketsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListBucketsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListBucketsResponse message. Does not implicitly verify messages.
Parameter message
ListBucketsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListBucketsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListBucketsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListBucketsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListBucketsResponse;
Creates a ListBucketsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListBucketsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListBucketsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListBucketsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListBucketsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListBucketsResponse message. Also converts values to other types if specified.
Parameter message
ListBucketsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListBucketsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListExclusionsRequest
class ListExclusionsRequest implements IListExclusionsRequest {}
Represents a ListExclusionsRequest.
constructor
constructor(properties?: IListExclusionsRequest);
Constructs a new ListExclusionsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListExclusionsRequest pageSize.
property pageToken
pageToken: string;
ListExclusionsRequest pageToken.
property parent
parent: string;
ListExclusionsRequest parent.
method create
static create: ( properties?: google.logging.v2.IListExclusionsRequest) => google.logging.v2.ListExclusionsRequest;
Creates a new ListExclusionsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListExclusionsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListExclusionsRequest;
Decodes a ListExclusionsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListExclusionsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListExclusionsRequest;
Decodes a ListExclusionsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListExclusionsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListExclusionsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListExclusionsRequest message. Does not implicitly verify messages.
Parameter message
ListExclusionsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListExclusionsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListExclusionsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListExclusionsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListExclusionsRequest;
Creates a ListExclusionsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListExclusionsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListExclusionsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListExclusionsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListExclusionsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListExclusionsRequest message. Also converts values to other types if specified.
Parameter message
ListExclusionsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListExclusionsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListExclusionsResponse
class ListExclusionsResponse implements IListExclusionsResponse {}
Represents a ListExclusionsResponse.
constructor
constructor(properties?: IListExclusionsResponse);
Constructs a new ListExclusionsResponse.
Parameter properties
Properties to set
property exclusions
exclusions: ILogExclusion[];
ListExclusionsResponse exclusions.
property nextPageToken
nextPageToken: string;
ListExclusionsResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListExclusionsResponse) => google.logging.v2.ListExclusionsResponse;
Creates a new ListExclusionsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListExclusionsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListExclusionsResponse;
Decodes a ListExclusionsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListExclusionsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListExclusionsResponse;
Decodes a ListExclusionsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListExclusionsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListExclusionsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListExclusionsResponse message. Does not implicitly verify messages.
Parameter message
ListExclusionsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListExclusionsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListExclusionsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListExclusionsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListExclusionsResponse;
Creates a ListExclusionsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListExclusionsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListExclusionsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListExclusionsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListExclusionsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListExclusionsResponse message. Also converts values to other types if specified.
Parameter message
ListExclusionsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListExclusionsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLinksRequest
class ListLinksRequest implements IListLinksRequest {}
Represents a ListLinksRequest.
constructor
constructor(properties?: IListLinksRequest);
Constructs a new ListLinksRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListLinksRequest pageSize.
property pageToken
pageToken: string;
ListLinksRequest pageToken.
property parent
parent: string;
ListLinksRequest parent.
method create
static create: ( properties?: google.logging.v2.IListLinksRequest) => google.logging.v2.ListLinksRequest;
Creates a new ListLinksRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLinksRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLinksRequest;
Decodes a ListLinksRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLinksRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLinksRequest;
Decodes a ListLinksRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLinksRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLinksRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLinksRequest message. Does not implicitly verify messages.
Parameter message
ListLinksRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLinksRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLinksRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListLinksRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLinksRequest;
Creates a ListLinksRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLinksRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLinksRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLinksRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLinksRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLinksRequest message. Also converts values to other types if specified.
Parameter message
ListLinksRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLinksRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLinksResponse
class ListLinksResponse implements IListLinksResponse {}
Represents a ListLinksResponse.
constructor
constructor(properties?: IListLinksResponse);
Constructs a new ListLinksResponse.
Parameter properties
Properties to set
property links
links: ILink[];
ListLinksResponse links.
property nextPageToken
nextPageToken: string;
ListLinksResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListLinksResponse) => google.logging.v2.ListLinksResponse;
Creates a new ListLinksResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLinksResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLinksResponse;
Decodes a ListLinksResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLinksResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLinksResponse;
Decodes a ListLinksResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLinksResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLinksResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLinksResponse message. Does not implicitly verify messages.
Parameter message
ListLinksResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLinksResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLinksResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListLinksResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLinksResponse;
Creates a ListLinksResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLinksResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLinksResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLinksResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLinksResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLinksResponse message. Also converts values to other types if specified.
Parameter message
ListLinksResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLinksResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogEntriesRequest
class ListLogEntriesRequest implements IListLogEntriesRequest {}
Represents a ListLogEntriesRequest.
constructor
constructor(properties?: IListLogEntriesRequest);
Constructs a new ListLogEntriesRequest.
Parameter properties
Properties to set
property filter
filter: string;
ListLogEntriesRequest filter.
property orderBy
orderBy: string;
ListLogEntriesRequest orderBy.
property pageSize
pageSize: number;
ListLogEntriesRequest pageSize.
property pageToken
pageToken: string;
ListLogEntriesRequest pageToken.
property resourceNames
resourceNames: string[];
ListLogEntriesRequest resourceNames.
method create
static create: ( properties?: google.logging.v2.IListLogEntriesRequest) => google.logging.v2.ListLogEntriesRequest;
Creates a new ListLogEntriesRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogEntriesRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogEntriesRequest;
Decodes a ListLogEntriesRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogEntriesRequest;
Decodes a ListLogEntriesRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogEntriesRequest message. Does not implicitly verify messages.
Parameter message
ListLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogEntriesRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogEntriesRequest;
Creates a ListLogEntriesRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogEntriesRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogEntriesRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogEntriesRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogEntriesRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogEntriesRequest message. Also converts values to other types if specified.
Parameter message
ListLogEntriesRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogEntriesRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogEntriesResponse
class ListLogEntriesResponse implements IListLogEntriesResponse {}
Represents a ListLogEntriesResponse.
constructor
constructor(properties?: IListLogEntriesResponse);
Constructs a new ListLogEntriesResponse.
Parameter properties
Properties to set
property entries
entries: ILogEntry[];
ListLogEntriesResponse entries.
property nextPageToken
nextPageToken: string;
ListLogEntriesResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListLogEntriesResponse) => google.logging.v2.ListLogEntriesResponse;
Creates a new ListLogEntriesResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogEntriesResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogEntriesResponse;
Decodes a ListLogEntriesResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogEntriesResponse;
Decodes a ListLogEntriesResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogEntriesResponse message. Does not implicitly verify messages.
Parameter message
ListLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogEntriesResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogEntriesResponse;
Creates a ListLogEntriesResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogEntriesResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogEntriesResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogEntriesResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogEntriesResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogEntriesResponse message. Also converts values to other types if specified.
Parameter message
ListLogEntriesResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogEntriesResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogMetricsRequest
class ListLogMetricsRequest implements IListLogMetricsRequest {}
Represents a ListLogMetricsRequest.
constructor
constructor(properties?: IListLogMetricsRequest);
Constructs a new ListLogMetricsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListLogMetricsRequest pageSize.
property pageToken
pageToken: string;
ListLogMetricsRequest pageToken.
property parent
parent: string;
ListLogMetricsRequest parent.
method create
static create: ( properties?: google.logging.v2.IListLogMetricsRequest) => google.logging.v2.ListLogMetricsRequest;
Creates a new ListLogMetricsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogMetricsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogMetricsRequest;
Decodes a ListLogMetricsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogMetricsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogMetricsRequest;
Decodes a ListLogMetricsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogMetricsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogMetricsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogMetricsRequest message. Does not implicitly verify messages.
Parameter message
ListLogMetricsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogMetricsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogMetricsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogMetricsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogMetricsRequest;
Creates a ListLogMetricsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogMetricsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogMetricsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogMetricsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogMetricsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogMetricsRequest message. Also converts values to other types if specified.
Parameter message
ListLogMetricsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogMetricsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogMetricsResponse
class ListLogMetricsResponse implements IListLogMetricsResponse {}
Represents a ListLogMetricsResponse.
constructor
constructor(properties?: IListLogMetricsResponse);
Constructs a new ListLogMetricsResponse.
Parameter properties
Properties to set
property metrics
metrics: ILogMetric[];
ListLogMetricsResponse metrics.
property nextPageToken
nextPageToken: string;
ListLogMetricsResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListLogMetricsResponse) => google.logging.v2.ListLogMetricsResponse;
Creates a new ListLogMetricsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogMetricsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogMetricsResponse;
Decodes a ListLogMetricsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogMetricsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogMetricsResponse;
Decodes a ListLogMetricsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogMetricsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogMetricsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogMetricsResponse message. Does not implicitly verify messages.
Parameter message
ListLogMetricsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogMetricsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogMetricsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogMetricsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogMetricsResponse;
Creates a ListLogMetricsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogMetricsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogMetricsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogMetricsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogMetricsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogMetricsResponse message. Also converts values to other types if specified.
Parameter message
ListLogMetricsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogMetricsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogsRequest
class ListLogsRequest implements IListLogsRequest {}
Represents a ListLogsRequest.
constructor
constructor(properties?: IListLogsRequest);
Constructs a new ListLogsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListLogsRequest pageSize.
property pageToken
pageToken: string;
ListLogsRequest pageToken.
property parent
parent: string;
ListLogsRequest parent.
property resourceNames
resourceNames: string[];
ListLogsRequest resourceNames.
method create
static create: ( properties?: google.logging.v2.IListLogsRequest) => google.logging.v2.ListLogsRequest;
Creates a new ListLogsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogsRequest;
Decodes a ListLogsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogsRequest;
Decodes a ListLogsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogsRequest message. Does not implicitly verify messages.
Parameter message
ListLogsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogsRequest;
Creates a ListLogsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogsRequest message. Also converts values to other types if specified.
Parameter message
ListLogsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListLogsResponse
class ListLogsResponse implements IListLogsResponse {}
Represents a ListLogsResponse.
constructor
constructor(properties?: IListLogsResponse);
Constructs a new ListLogsResponse.
Parameter properties
Properties to set
property logNames
logNames: string[];
ListLogsResponse logNames.
property nextPageToken
nextPageToken: string;
ListLogsResponse nextPageToken.
method create
static create: ( properties?: google.logging.v2.IListLogsResponse) => google.logging.v2.ListLogsResponse;
Creates a new ListLogsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListLogsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListLogsResponse;
Decodes a ListLogsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListLogsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListLogsResponse;
Decodes a ListLogsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListLogsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListLogsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogsResponse message. Does not implicitly verify messages.
Parameter message
ListLogsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListLogsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListLogsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListLogsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListLogsResponse;
Creates a ListLogsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListLogsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListLogsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListLogsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListLogsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListLogsResponse message. Also converts values to other types if specified.
Parameter message
ListLogsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListLogsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListMonitoredResourceDescriptorsRequest
class ListMonitoredResourceDescriptorsRequest implements IListMonitoredResourceDescriptorsRequest {}
Represents a ListMonitoredResourceDescriptorsRequest.
constructor
constructor(properties?: IListMonitoredResourceDescriptorsRequest);
Constructs a new ListMonitoredResourceDescriptorsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListMonitoredResourceDescriptorsRequest pageSize.
property pageToken
pageToken: string;
ListMonitoredResourceDescriptorsRequest pageToken.
method create
static create: ( properties?: google.logging.v2.IListMonitoredResourceDescriptorsRequest) => google.logging.v2.ListMonitoredResourceDescriptorsRequest;
Creates a new ListMonitoredResourceDescriptorsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListMonitoredResourceDescriptorsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListMonitoredResourceDescriptorsRequest;
Decodes a ListMonitoredResourceDescriptorsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListMonitoredResourceDescriptorsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListMonitoredResourceDescriptorsRequest;
Decodes a ListMonitoredResourceDescriptorsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListMonitoredResourceDescriptorsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListMonitoredResourceDescriptorsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListMonitoredResourceDescriptorsRequest message. Does not implicitly verify messages.
Parameter message
ListMonitoredResourceDescriptorsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListMonitoredResourceDescriptorsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListMonitoredResourceDescriptorsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListMonitoredResourceDescriptorsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListMonitoredResourceDescriptorsRequest;
Creates a ListMonitoredResourceDescriptorsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListMonitoredResourceDescriptorsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListMonitoredResourceDescriptorsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListMonitoredResourceDescriptorsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListMonitoredResourceDescriptorsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListMonitoredResourceDescriptorsRequest message. Also converts values to other types if specified.
Parameter message
ListMonitoredResourceDescriptorsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListMonitoredResourceDescriptorsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListMonitoredResourceDescriptorsResponse
class ListMonitoredResourceDescriptorsResponse implements IListMonitoredResourceDescriptorsResponse {}
Represents a ListMonitoredResourceDescriptorsResponse.
constructor
constructor(properties?: IListMonitoredResourceDescriptorsResponse);
Constructs a new ListMonitoredResourceDescriptorsResponse.
Parameter properties
Properties to set
property nextPageToken
nextPageToken: string;
ListMonitoredResourceDescriptorsResponse nextPageToken.
property resourceDescriptors
resourceDescriptors: api.IMonitoredResourceDescriptor[];
ListMonitoredResourceDescriptorsResponse resourceDescriptors.
method create
static create: ( properties?: google.logging.v2.IListMonitoredResourceDescriptorsResponse) => google.logging.v2.ListMonitoredResourceDescriptorsResponse;
Creates a new ListMonitoredResourceDescriptorsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListMonitoredResourceDescriptorsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListMonitoredResourceDescriptorsResponse;
Decodes a ListMonitoredResourceDescriptorsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListMonitoredResourceDescriptorsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListMonitoredResourceDescriptorsResponse;
Decodes a ListMonitoredResourceDescriptorsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListMonitoredResourceDescriptorsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListMonitoredResourceDescriptorsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListMonitoredResourceDescriptorsResponse message. Does not implicitly verify messages.
Parameter message
ListMonitoredResourceDescriptorsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListMonitoredResourceDescriptorsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListMonitoredResourceDescriptorsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListMonitoredResourceDescriptorsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListMonitoredResourceDescriptorsResponse;
Creates a ListMonitoredResourceDescriptorsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListMonitoredResourceDescriptorsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListMonitoredResourceDescriptorsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListMonitoredResourceDescriptorsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListMonitoredResourceDescriptorsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListMonitoredResourceDescriptorsResponse message. Also converts values to other types if specified.
Parameter message
ListMonitoredResourceDescriptorsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListMonitoredResourceDescriptorsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListSinksRequest
class ListSinksRequest implements IListSinksRequest {}
Represents a ListSinksRequest.
constructor
constructor(properties?: IListSinksRequest);
Constructs a new ListSinksRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListSinksRequest pageSize.
property pageToken
pageToken: string;
ListSinksRequest pageToken.
property parent
parent: string;
ListSinksRequest parent.
method create
static create: ( properties?: google.logging.v2.IListSinksRequest) => google.logging.v2.ListSinksRequest;
Creates a new ListSinksRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListSinksRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListSinksRequest;
Decodes a ListSinksRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListSinksRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListSinksRequest;
Decodes a ListSinksRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListSinksRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListSinksRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListSinksRequest message. Does not implicitly verify messages.
Parameter message
ListSinksRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListSinksRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListSinksRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListSinksRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListSinksRequest;
Creates a ListSinksRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListSinksRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListSinksRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListSinksRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListSinksRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListSinksRequest message. Also converts values to other types if specified.
Parameter message
ListSinksRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListSinksRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListSinksResponse
class ListSinksResponse implements IListSinksResponse {}
Represents a ListSinksResponse.
constructor
constructor(properties?: IListSinksResponse);
Constructs a new ListSinksResponse.
Parameter properties
Properties to set
property nextPageToken
nextPageToken: string;
ListSinksResponse nextPageToken.
property sinks
sinks: ILogSink[];
ListSinksResponse sinks.
method create
static create: ( properties?: google.logging.v2.IListSinksResponse) => google.logging.v2.ListSinksResponse;
Creates a new ListSinksResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListSinksResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListSinksResponse;
Decodes a ListSinksResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListSinksResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListSinksResponse;
Decodes a ListSinksResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListSinksResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListSinksResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListSinksResponse message. Does not implicitly verify messages.
Parameter message
ListSinksResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListSinksResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListSinksResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListSinksResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListSinksResponse;
Creates a ListSinksResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListSinksResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListSinksResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListSinksResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListSinksResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListSinksResponse message. Also converts values to other types if specified.
Parameter message
ListSinksResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListSinksResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListViewsRequest
class ListViewsRequest implements IListViewsRequest {}
Represents a ListViewsRequest.
constructor
constructor(properties?: IListViewsRequest);
Constructs a new ListViewsRequest.
Parameter properties
Properties to set
property pageSize
pageSize: number;
ListViewsRequest pageSize.
property pageToken
pageToken: string;
ListViewsRequest pageToken.
property parent
parent: string;
ListViewsRequest parent.
method create
static create: ( properties?: google.logging.v2.IListViewsRequest) => google.logging.v2.ListViewsRequest;
Creates a new ListViewsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListViewsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListViewsRequest;
Decodes a ListViewsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListViewsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListViewsRequest;
Decodes a ListViewsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListViewsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListViewsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListViewsRequest message. Does not implicitly verify messages.
Parameter message
ListViewsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListViewsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListViewsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListViewsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListViewsRequest;
Creates a ListViewsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListViewsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListViewsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListViewsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListViewsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListViewsRequest message. Also converts values to other types if specified.
Parameter message
ListViewsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListViewsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListViewsResponse
class ListViewsResponse implements IListViewsResponse {}
Represents a ListViewsResponse.
constructor
constructor(properties?: IListViewsResponse);
Constructs a new ListViewsResponse.
Parameter properties
Properties to set
property nextPageToken
nextPageToken: string;
ListViewsResponse nextPageToken.
property views
views: ILogView[];
ListViewsResponse views.
method create
static create: ( properties?: google.logging.v2.IListViewsResponse) => google.logging.v2.ListViewsResponse;
Creates a new ListViewsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListViewsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.ListViewsResponse;
Decodes a ListViewsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListViewsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.ListViewsResponse;
Decodes a ListViewsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListViewsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IListViewsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListViewsResponse message. Does not implicitly verify messages.
Parameter message
ListViewsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IListViewsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListViewsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListViewsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.ListViewsResponse;
Creates a ListViewsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListViewsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListViewsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListViewsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.ListViewsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListViewsResponse message. Also converts values to other types if specified.
Parameter message
ListViewsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListViewsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LocationMetadata
class LocationMetadata implements ILocationMetadata {}
Represents a LocationMetadata.
constructor
constructor(properties?: ILocationMetadata);
Constructs a new LocationMetadata.
Parameter properties
Properties to set
property logAnalyticsEnabled
logAnalyticsEnabled: boolean;
LocationMetadata logAnalyticsEnabled.
method create
static create: ( properties?: google.logging.v2.ILocationMetadata) => google.logging.v2.LocationMetadata;
Creates a new LocationMetadata instance using the specified properties.
Parameter properties
Properties to set
Returns
LocationMetadata instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LocationMetadata;
Decodes a LocationMetadata message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LocationMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LocationMetadata;
Decodes a LocationMetadata message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LocationMetadata
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILocationMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LocationMetadata message. Does not implicitly verify messages.
Parameter message
LocationMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILocationMetadata, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LocationMetadata message, length delimited. Does not implicitly verify messages.
Parameter message
LocationMetadata message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.LocationMetadata;
Creates a LocationMetadata message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LocationMetadata
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LocationMetadata
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LocationMetadata to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LocationMetadata, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LocationMetadata message. Also converts values to other types if specified.
Parameter message
LocationMetadata
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LocationMetadata message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogBucket
class LogBucket implements ILogBucket {}
Represents a LogBucket.
constructor
constructor(properties?: ILogBucket);
Constructs a new LogBucket.
Parameter properties
Properties to set
property analyticsEnabled
analyticsEnabled: boolean;
LogBucket analyticsEnabled.
property cmekSettings
cmekSettings?: ICmekSettings;
LogBucket cmekSettings.
property createTime
createTime?: protobuf.ITimestamp;
LogBucket createTime.
property description
description: string;
LogBucket description.
property indexConfigs
indexConfigs: IIndexConfig[];
LogBucket indexConfigs.
property lifecycleState
lifecycleState: | LifecycleState | 'LIFECYCLE_STATE_UNSPECIFIED' | 'ACTIVE' | 'DELETE_REQUESTED' | 'UPDATING' | 'CREATING' | 'FAILED';
LogBucket lifecycleState.
property locked
locked: boolean;
LogBucket locked.
property name
name: string;
LogBucket name.
property restrictedFields
restrictedFields: string[];
LogBucket restrictedFields.
property retentionDays
retentionDays: number;
LogBucket retentionDays.
property updateTime
updateTime?: protobuf.ITimestamp;
LogBucket updateTime.
method create
static create: ( properties?: google.logging.v2.ILogBucket) => google.logging.v2.LogBucket;
Creates a new LogBucket instance using the specified properties.
Parameter properties
Properties to set
Returns
LogBucket instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogBucket;
Decodes a LogBucket message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogBucket
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogBucket;
Decodes a LogBucket message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogBucket
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogBucket, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogBucket message. Does not implicitly verify messages.
Parameter message
LogBucket message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogBucket, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogBucket message, length delimited. Does not implicitly verify messages.
Parameter message
LogBucket message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogBucket;
Creates a LogBucket message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogBucket
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogBucket
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogBucket to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogBucket, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogBucket message. Also converts values to other types if specified.
Parameter message
LogBucket
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogBucket message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogEntry
class LogEntry implements ILogEntry {}
Represents a LogEntry.
constructor
constructor(properties?: ILogEntry);
Constructs a new LogEntry.
Parameter properties
Properties to set
property httpRequest
httpRequest?: type.IHttpRequest;
LogEntry httpRequest.
property insertId
insertId: string;
LogEntry insertId.
property jsonPayload
jsonPayload?: protobuf.IStruct;
LogEntry jsonPayload.
property labels
labels: { [k: string]: string };
LogEntry labels.
property logName
logName: string;
LogEntry logName.
property operation
operation?: ILogEntryOperation;
LogEntry operation.
property payload
payload?: 'protoPayload' | 'textPayload' | 'jsonPayload';
LogEntry payload.
property protoPayload
protoPayload?: protobuf.IAny;
LogEntry protoPayload.
property receiveTimestamp
receiveTimestamp?: protobuf.ITimestamp;
LogEntry receiveTimestamp.
property resource
resource?: api.IMonitoredResource;
LogEntry resource.
property severity
severity: | type.LogSeverity | 'DEFAULT' | 'DEBUG' | 'INFO' | 'NOTICE' | 'WARNING' | 'ERROR' | 'CRITICAL' | 'ALERT' | 'EMERGENCY';
LogEntry severity.
property sourceLocation
sourceLocation?: ILogEntrySourceLocation;
LogEntry sourceLocation.
property spanId
spanId: string;
LogEntry spanId.
property split
split?: ILogSplit;
LogEntry split.
property textPayload
textPayload?: string;
LogEntry textPayload.
property timestamp
timestamp?: protobuf.ITimestamp;
LogEntry timestamp.
property trace
trace: string;
LogEntry trace.
property traceSampled
traceSampled: boolean;
LogEntry traceSampled.
method create
static create: ( properties?: google.logging.v2.ILogEntry) => google.logging.v2.LogEntry;
Creates a new LogEntry instance using the specified properties.
Parameter properties
Properties to set
Returns
LogEntry instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogEntry;
Decodes a LogEntry message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogEntry
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogEntry;
Decodes a LogEntry message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogEntry
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogEntry, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntry message. Does not implicitly verify messages.
Parameter message
LogEntry message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogEntry, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntry message, length delimited. Does not implicitly verify messages.
Parameter message
LogEntry message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogEntry;
Creates a LogEntry message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogEntry
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogEntry
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogEntry to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogEntry, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogEntry message. Also converts values to other types if specified.
Parameter message
LogEntry
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogEntry message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogEntryOperation
class LogEntryOperation implements ILogEntryOperation {}
Represents a LogEntryOperation.
constructor
constructor(properties?: ILogEntryOperation);
Constructs a new LogEntryOperation.
Parameter properties
Properties to set
property first
first: boolean;
LogEntryOperation first.
property id
id: string;
LogEntryOperation id.
property last
last: boolean;
LogEntryOperation last.
property producer
producer: string;
LogEntryOperation producer.
method create
static create: ( properties?: google.logging.v2.ILogEntryOperation) => google.logging.v2.LogEntryOperation;
Creates a new LogEntryOperation instance using the specified properties.
Parameter properties
Properties to set
Returns
LogEntryOperation instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogEntryOperation;
Decodes a LogEntryOperation message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogEntryOperation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogEntryOperation;
Decodes a LogEntryOperation message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogEntryOperation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogEntryOperation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntryOperation message. Does not implicitly verify messages.
Parameter message
LogEntryOperation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogEntryOperation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntryOperation message, length delimited. Does not implicitly verify messages.
Parameter message
LogEntryOperation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.LogEntryOperation;
Creates a LogEntryOperation message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogEntryOperation
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogEntryOperation
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogEntryOperation to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogEntryOperation, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogEntryOperation message. Also converts values to other types if specified.
Parameter message
LogEntryOperation
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogEntryOperation message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogEntrySourceLocation
class LogEntrySourceLocation implements ILogEntrySourceLocation {}
Represents a LogEntrySourceLocation.
constructor
constructor(properties?: ILogEntrySourceLocation);
Constructs a new LogEntrySourceLocation.
Parameter properties
Properties to set
property file
file: string;
LogEntrySourceLocation file.
property function
function: string;
LogEntrySourceLocation function.
property line
line: any;
LogEntrySourceLocation line.
method create
static create: ( properties?: google.logging.v2.ILogEntrySourceLocation) => google.logging.v2.LogEntrySourceLocation;
Creates a new LogEntrySourceLocation instance using the specified properties.
Parameter properties
Properties to set
Returns
LogEntrySourceLocation instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogEntrySourceLocation;
Decodes a LogEntrySourceLocation message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogEntrySourceLocation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogEntrySourceLocation;
Decodes a LogEntrySourceLocation message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogEntrySourceLocation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogEntrySourceLocation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntrySourceLocation message. Does not implicitly verify messages.
Parameter message
LogEntrySourceLocation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogEntrySourceLocation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogEntrySourceLocation message, length delimited. Does not implicitly verify messages.
Parameter message
LogEntrySourceLocation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.LogEntrySourceLocation;
Creates a LogEntrySourceLocation message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogEntrySourceLocation
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogEntrySourceLocation
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogEntrySourceLocation to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogEntrySourceLocation, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogEntrySourceLocation message. Also converts values to other types if specified.
Parameter message
LogEntrySourceLocation
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogEntrySourceLocation message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogExclusion
class LogExclusion implements ILogExclusion {}
Represents a LogExclusion.
constructor
constructor(properties?: ILogExclusion);
Constructs a new LogExclusion.
Parameter properties
Properties to set
property createTime
createTime?: protobuf.ITimestamp;
LogExclusion createTime.
property description
description: string;
LogExclusion description.
property disabled
disabled: boolean;
LogExclusion disabled.
property filter
filter: string;
LogExclusion filter.
property name
name: string;
LogExclusion name.
property updateTime
updateTime?: protobuf.ITimestamp;
LogExclusion updateTime.
method create
static create: ( properties?: google.logging.v2.ILogExclusion) => google.logging.v2.LogExclusion;
Creates a new LogExclusion instance using the specified properties.
Parameter properties
Properties to set
Returns
LogExclusion instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogExclusion;
Decodes a LogExclusion message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogExclusion
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogExclusion;
Decodes a LogExclusion message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogExclusion
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogExclusion, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogExclusion message. Does not implicitly verify messages.
Parameter message
LogExclusion message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogExclusion, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogExclusion message, length delimited. Does not implicitly verify messages.
Parameter message
LogExclusion message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.LogExclusion;
Creates a LogExclusion message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogExclusion
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogExclusion
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogExclusion to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogExclusion, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogExclusion message. Also converts values to other types if specified.
Parameter message
LogExclusion
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogExclusion message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LoggingServiceV2
class LoggingServiceV2 extends $protobuf.rpc.Service {}
Represents a LoggingServiceV2
constructor
constructor( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new LoggingServiceV2 service.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
method create
static create: ( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean) => LoggingServiceV2;
Creates new LoggingServiceV2 service using the specified rpc implementation.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
Returns
RPC service. Useful where requests and/or responses are streamed.
method deleteLog
deleteLog: { ( request: google.logging.v2.IDeleteLogRequest, callback: google.logging.v2.LoggingServiceV2.DeleteLogCallback ): void; (request: IDeleteLogRequest): Promise<protobuf.Empty>;};
Calls DeleteLog.
Parameter request
DeleteLogRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteLog.
Parameter request
DeleteLogRequest message or plain object
Returns
Promise
method listLogEntries
listLogEntries: { ( request: google.logging.v2.IListLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.ListLogEntriesCallback ): void; (request: IListLogEntriesRequest): Promise<ListLogEntriesResponse>;};
Calls ListLogEntries.
Parameter request
ListLogEntriesRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListLogEntriesResponse
Calls ListLogEntries.
Parameter request
ListLogEntriesRequest message or plain object
Returns
Promise
method listLogs
listLogs: { ( request: google.logging.v2.IListLogsRequest, callback: google.logging.v2.LoggingServiceV2.ListLogsCallback ): void; (request: IListLogsRequest): Promise<ListLogsResponse>;};
Calls ListLogs.
Parameter request
ListLogsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListLogsResponse
Calls ListLogs.
Parameter request
ListLogsRequest message or plain object
Returns
Promise
method listMonitoredResourceDescriptors
listMonitoredResourceDescriptors: { ( request: google.logging.v2.IListMonitoredResourceDescriptorsRequest, callback: google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptorsCallback ): void; ( request: IListMonitoredResourceDescriptorsRequest ): Promise<ListMonitoredResourceDescriptorsResponse>;};
Calls ListMonitoredResourceDescriptors.
Parameter request
ListMonitoredResourceDescriptorsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListMonitoredResourceDescriptorsResponse
Calls ListMonitoredResourceDescriptors.
Parameter request
ListMonitoredResourceDescriptorsRequest message or plain object
Returns
Promise
method tailLogEntries
tailLogEntries: { ( request: google.logging.v2.ITailLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.TailLogEntriesCallback ): void; (request: ITailLogEntriesRequest): Promise<TailLogEntriesResponse>;};
Calls TailLogEntries.
Parameter request
TailLogEntriesRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and TailLogEntriesResponse
Calls TailLogEntries.
Parameter request
TailLogEntriesRequest message or plain object
Returns
Promise
method writeLogEntries
writeLogEntries: { ( request: google.logging.v2.IWriteLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.WriteLogEntriesCallback ): void; (request: IWriteLogEntriesRequest): Promise<WriteLogEntriesResponse>;};
Calls WriteLogEntries.
Parameter request
WriteLogEntriesRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and WriteLogEntriesResponse
Calls WriteLogEntries.
Parameter request
WriteLogEntriesRequest message or plain object
Returns
Promise
class LogMetric
class LogMetric implements ILogMetric {}
Represents a LogMetric.
constructor
constructor(properties?: ILogMetric);
Constructs a new LogMetric.
Parameter properties
Properties to set
property bucketName
bucketName: string;
LogMetric bucketName.
property bucketOptions
bucketOptions?: api.Distribution.IBucketOptions;
LogMetric bucketOptions.
property createTime
createTime?: protobuf.ITimestamp;
LogMetric createTime.
property description
description: string;
LogMetric description.
property disabled
disabled: boolean;
LogMetric disabled.
property filter
filter: string;
LogMetric filter.
property labelExtractors
labelExtractors: { [k: string]: string };
LogMetric labelExtractors.
property metricDescriptor
metricDescriptor?: api.IMetricDescriptor;
LogMetric metricDescriptor.
property name
name: string;
LogMetric name.
property updateTime
updateTime?: protobuf.ITimestamp;
LogMetric updateTime.
property valueExtractor
valueExtractor: string;
LogMetric valueExtractor.
property version
version: 'V2' | 'V1' | LogMetric.ApiVersion;
LogMetric version.
method create
static create: ( properties?: google.logging.v2.ILogMetric) => google.logging.v2.LogMetric;
Creates a new LogMetric instance using the specified properties.
Parameter properties
Properties to set
Returns
LogMetric instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogMetric;
Decodes a LogMetric message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogMetric
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogMetric;
Decodes a LogMetric message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogMetric
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogMetric, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogMetric message. Does not implicitly verify messages.
Parameter message
LogMetric message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogMetric, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogMetric message, length delimited. Does not implicitly verify messages.
Parameter message
LogMetric message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogMetric;
Creates a LogMetric message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogMetric
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogMetric
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogMetric to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogMetric, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogMetric message. Also converts values to other types if specified.
Parameter message
LogMetric
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogMetric message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogSink
class LogSink implements ILogSink {}
Represents a LogSink.
constructor
constructor(properties?: ILogSink);
Constructs a new LogSink.
Parameter properties
Properties to set
property bigqueryOptions
bigqueryOptions?: IBigQueryOptions;
LogSink bigqueryOptions.
property createTime
createTime?: protobuf.ITimestamp;
LogSink createTime.
property description
description: string;
LogSink description.
property destination
destination: string;
LogSink destination.
property disabled
disabled: boolean;
LogSink disabled.
property exclusions
exclusions: ILogExclusion[];
LogSink exclusions.
property filter
filter: string;
LogSink filter.
property includeChildren
includeChildren: boolean;
LogSink includeChildren.
property name
name: string;
LogSink name.
property options
options?: string;
LogSink options.
property outputVersionFormat
outputVersionFormat: | LogSink.VersionFormat | 'VERSION_FORMAT_UNSPECIFIED' | 'V2' | 'V1';
LogSink outputVersionFormat.
property updateTime
updateTime?: protobuf.ITimestamp;
LogSink updateTime.
property writerIdentity
writerIdentity: string;
LogSink writerIdentity.
method create
static create: ( properties?: google.logging.v2.ILogSink) => google.logging.v2.LogSink;
Creates a new LogSink instance using the specified properties.
Parameter properties
Properties to set
Returns
LogSink instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogSink;
Decodes a LogSink message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogSink
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogSink;
Decodes a LogSink message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogSink
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogSink, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogSink message. Does not implicitly verify messages.
Parameter message
LogSink message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogSink, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogSink message, length delimited. Does not implicitly verify messages.
Parameter message
LogSink message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogSink;
Creates a LogSink message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogSink
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogSink
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogSink to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogSink, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogSink message. Also converts values to other types if specified.
Parameter message
LogSink
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogSink message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogSplit
class LogSplit implements ILogSplit {}
Represents a LogSplit.
constructor
constructor(properties?: ILogSplit);
Constructs a new LogSplit.
Parameter properties
Properties to set
property index
index: number;
LogSplit index.
property totalSplits
totalSplits: number;
LogSplit totalSplits.
property uid
uid: string;
LogSplit uid.
method create
static create: ( properties?: google.logging.v2.ILogSplit) => google.logging.v2.LogSplit;
Creates a new LogSplit instance using the specified properties.
Parameter properties
Properties to set
Returns
LogSplit instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogSplit;
Decodes a LogSplit message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogSplit
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogSplit;
Decodes a LogSplit message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogSplit
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogSplit, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogSplit message. Does not implicitly verify messages.
Parameter message
LogSplit message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogSplit, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogSplit message, length delimited. Does not implicitly verify messages.
Parameter message
LogSplit message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogSplit;
Creates a LogSplit message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogSplit
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogSplit
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogSplit to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogSplit, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogSplit message. Also converts values to other types if specified.
Parameter message
LogSplit
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogSplit message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class LogView
class LogView implements ILogView {}
Represents a LogView.
constructor
constructor(properties?: ILogView);
Constructs a new LogView.
Parameter properties
Properties to set
property createTime
createTime?: protobuf.ITimestamp;
LogView createTime.
property description
description: string;
LogView description.
property filter
filter: string;
LogView filter.
property name
name: string;
LogView name.
property updateTime
updateTime?: protobuf.ITimestamp;
LogView updateTime.
method create
static create: ( properties?: google.logging.v2.ILogView) => google.logging.v2.LogView;
Creates a new LogView instance using the specified properties.
Parameter properties
Properties to set
Returns
LogView instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.LogView;
Decodes a LogView message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
LogView
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.LogView;
Decodes a LogView message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
LogView
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ILogView, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogView message. Does not implicitly verify messages.
Parameter message
LogView message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ILogView, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified LogView message, length delimited. Does not implicitly verify messages.
Parameter message
LogView message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.LogView;
Creates a LogView message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
LogView
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for LogView
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this LogView to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.LogView, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a LogView message. Also converts values to other types if specified.
Parameter message
LogView
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a LogView message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MetricsServiceV2
class MetricsServiceV2 extends $protobuf.rpc.Service {}
Represents a MetricsServiceV2
constructor
constructor( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new MetricsServiceV2 service.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
method create
static create: ( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean) => MetricsServiceV2;
Creates new MetricsServiceV2 service using the specified rpc implementation.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
Returns
RPC service. Useful where requests and/or responses are streamed.
method createLogMetric
createLogMetric: { ( request: google.logging.v2.ICreateLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.CreateLogMetricCallback ): void; (request: ICreateLogMetricRequest): Promise<LogMetric>;};
Calls CreateLogMetric.
Parameter request
CreateLogMetricRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogMetric
Calls CreateLogMetric.
Parameter request
CreateLogMetricRequest message or plain object
Returns
Promise
method deleteLogMetric
deleteLogMetric: { ( request: google.logging.v2.IDeleteLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.DeleteLogMetricCallback ): void; (request: IDeleteLogMetricRequest): Promise<protobuf.Empty>;};
Calls DeleteLogMetric.
Parameter request
DeleteLogMetricRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteLogMetric.
Parameter request
DeleteLogMetricRequest message or plain object
Returns
Promise
method getLogMetric
getLogMetric: { ( request: google.logging.v2.IGetLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.GetLogMetricCallback ): void; (request: IGetLogMetricRequest): Promise<LogMetric>;};
Calls GetLogMetric.
Parameter request
GetLogMetricRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogMetric
Calls GetLogMetric.
Parameter request
GetLogMetricRequest message or plain object
Returns
Promise
method listLogMetrics
listLogMetrics: { ( request: google.logging.v2.IListLogMetricsRequest, callback: google.logging.v2.MetricsServiceV2.ListLogMetricsCallback ): void; (request: IListLogMetricsRequest): Promise<ListLogMetricsResponse>;};
Calls ListLogMetrics.
Parameter request
ListLogMetricsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListLogMetricsResponse
Calls ListLogMetrics.
Parameter request
ListLogMetricsRequest message or plain object
Returns
Promise
method updateLogMetric
updateLogMetric: { ( request: google.logging.v2.IUpdateLogMetricRequest, callback: google.logging.v2.MetricsServiceV2.UpdateLogMetricCallback ): void; (request: IUpdateLogMetricRequest): Promise<LogMetric>;};
Calls UpdateLogMetric.
Parameter request
UpdateLogMetricRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and LogMetric
Calls UpdateLogMetric.
Parameter request
UpdateLogMetricRequest message or plain object
Returns
Promise
class Settings
class Settings implements ISettings {}
Represents a Settings.
constructor
constructor(properties?: ISettings);
Constructs a new Settings.
Parameter properties
Properties to set
property disableDefaultSink
disableDefaultSink: boolean;
Settings disableDefaultSink.
property kmsKeyName
kmsKeyName: string;
Settings kmsKeyName.
property kmsServiceAccountId
kmsServiceAccountId: string;
Settings kmsServiceAccountId.
property name
name: string;
Settings name.
property storageLocation
storageLocation: string;
Settings storageLocation.
method create
static create: ( properties?: google.logging.v2.ISettings) => google.logging.v2.Settings;
Creates a new Settings instance using the specified properties.
Parameter properties
Properties to set
Returns
Settings instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.Settings;
Decodes a Settings message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Settings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.Settings;
Decodes a Settings message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Settings
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ISettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Settings message. Does not implicitly verify messages.
Parameter message
Settings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ISettings, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Settings message, length delimited. Does not implicitly verify messages.
Parameter message
Settings message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.logging.v2.Settings;
Creates a Settings message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Settings
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Settings
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Settings to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.Settings, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Settings message. Also converts values to other types if specified.
Parameter message
Settings
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Settings message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class TailLogEntriesRequest
class TailLogEntriesRequest implements ITailLogEntriesRequest {}
Represents a TailLogEntriesRequest.
constructor
constructor(properties?: ITailLogEntriesRequest);
Constructs a new TailLogEntriesRequest.
Parameter properties
Properties to set
property bufferWindow
bufferWindow?: protobuf.IDuration;
TailLogEntriesRequest bufferWindow.
property filter
filter: string;
TailLogEntriesRequest filter.
property resourceNames
resourceNames: string[];
TailLogEntriesRequest resourceNames.
method create
static create: ( properties?: google.logging.v2.ITailLogEntriesRequest) => google.logging.v2.TailLogEntriesRequest;
Creates a new TailLogEntriesRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
TailLogEntriesRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.TailLogEntriesRequest;
Decodes a TailLogEntriesRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
TailLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.TailLogEntriesRequest;
Decodes a TailLogEntriesRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
TailLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ITailLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified TailLogEntriesRequest message. Does not implicitly verify messages.
Parameter message
TailLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ITailLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified TailLogEntriesRequest message, length delimited. Does not implicitly verify messages.
Parameter message
TailLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.TailLogEntriesRequest;
Creates a TailLogEntriesRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
TailLogEntriesRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for TailLogEntriesRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this TailLogEntriesRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.TailLogEntriesRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a TailLogEntriesRequest message. Also converts values to other types if specified.
Parameter message
TailLogEntriesRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a TailLogEntriesRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class TailLogEntriesResponse
class TailLogEntriesResponse implements ITailLogEntriesResponse {}
Represents a TailLogEntriesResponse.
constructor
constructor(properties?: ITailLogEntriesResponse);
Constructs a new TailLogEntriesResponse.
Parameter properties
Properties to set
property entries
entries: ILogEntry[];
TailLogEntriesResponse entries.
property suppressionInfo
suppressionInfo: TailLogEntriesResponse.ISuppressionInfo[];
TailLogEntriesResponse suppressionInfo.
method create
static create: ( properties?: google.logging.v2.ITailLogEntriesResponse) => google.logging.v2.TailLogEntriesResponse;
Creates a new TailLogEntriesResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
TailLogEntriesResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.TailLogEntriesResponse;
Decodes a TailLogEntriesResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
TailLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.TailLogEntriesResponse;
Decodes a TailLogEntriesResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
TailLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.ITailLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified TailLogEntriesResponse message. Does not implicitly verify messages.
Parameter message
TailLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.ITailLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified TailLogEntriesResponse message, length delimited. Does not implicitly verify messages.
Parameter message
TailLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.TailLogEntriesResponse;
Creates a TailLogEntriesResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
TailLogEntriesResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for TailLogEntriesResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this TailLogEntriesResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.TailLogEntriesResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a TailLogEntriesResponse message. Also converts values to other types if specified.
Parameter message
TailLogEntriesResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a TailLogEntriesResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UndeleteBucketRequest
class UndeleteBucketRequest implements IUndeleteBucketRequest {}
Represents an UndeleteBucketRequest.
constructor
constructor(properties?: IUndeleteBucketRequest);
Constructs a new UndeleteBucketRequest.
Parameter properties
Properties to set
property name
name: string;
UndeleteBucketRequest name.
method create
static create: ( properties?: google.logging.v2.IUndeleteBucketRequest) => google.logging.v2.UndeleteBucketRequest;
Creates a new UndeleteBucketRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UndeleteBucketRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UndeleteBucketRequest;
Decodes an UndeleteBucketRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UndeleteBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UndeleteBucketRequest;
Decodes an UndeleteBucketRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UndeleteBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUndeleteBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UndeleteBucketRequest message. Does not implicitly verify messages.
Parameter message
UndeleteBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUndeleteBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UndeleteBucketRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UndeleteBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UndeleteBucketRequest;
Creates an UndeleteBucketRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UndeleteBucketRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UndeleteBucketRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UndeleteBucketRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UndeleteBucketRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UndeleteBucketRequest message. Also converts values to other types if specified.
Parameter message
UndeleteBucketRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UndeleteBucketRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateBucketRequest
class UpdateBucketRequest implements IUpdateBucketRequest {}
Represents an UpdateBucketRequest.
constructor
constructor(properties?: IUpdateBucketRequest);
Constructs a new UpdateBucketRequest.
Parameter properties
Properties to set
property bucket
bucket?: ILogBucket;
UpdateBucketRequest bucket.
property name
name: string;
UpdateBucketRequest name.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateBucketRequest updateMask.
method create
static create: ( properties?: google.logging.v2.IUpdateBucketRequest) => google.logging.v2.UpdateBucketRequest;
Creates a new UpdateBucketRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateBucketRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateBucketRequest;
Decodes an UpdateBucketRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateBucketRequest;
Decodes an UpdateBucketRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateBucketRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateBucketRequest message. Does not implicitly verify messages.
Parameter message
UpdateBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateBucketRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateBucketRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateBucketRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateBucketRequest;
Creates an UpdateBucketRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateBucketRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateBucketRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateBucketRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateBucketRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateBucketRequest message. Also converts values to other types if specified.
Parameter message
UpdateBucketRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateBucketRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateCmekSettingsRequest
class UpdateCmekSettingsRequest implements IUpdateCmekSettingsRequest {}
Represents an UpdateCmekSettingsRequest.
constructor
constructor(properties?: IUpdateCmekSettingsRequest);
Constructs a new UpdateCmekSettingsRequest.
Parameter properties
Properties to set
property cmekSettings
cmekSettings?: ICmekSettings;
UpdateCmekSettingsRequest cmekSettings.
property name
name: string;
UpdateCmekSettingsRequest name.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateCmekSettingsRequest updateMask.
method create
static create: ( properties?: google.logging.v2.IUpdateCmekSettingsRequest) => google.logging.v2.UpdateCmekSettingsRequest;
Creates a new UpdateCmekSettingsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateCmekSettingsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateCmekSettingsRequest;
Decodes an UpdateCmekSettingsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateCmekSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateCmekSettingsRequest;
Decodes an UpdateCmekSettingsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateCmekSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateCmekSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateCmekSettingsRequest message. Does not implicitly verify messages.
Parameter message
UpdateCmekSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateCmekSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateCmekSettingsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateCmekSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateCmekSettingsRequest;
Creates an UpdateCmekSettingsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateCmekSettingsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateCmekSettingsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateCmekSettingsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateCmekSettingsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateCmekSettingsRequest message. Also converts values to other types if specified.
Parameter message
UpdateCmekSettingsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateCmekSettingsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateExclusionRequest
class UpdateExclusionRequest implements IUpdateExclusionRequest {}
Represents an UpdateExclusionRequest.
constructor
constructor(properties?: IUpdateExclusionRequest);
Constructs a new UpdateExclusionRequest.
Parameter properties
Properties to set
property exclusion
exclusion?: ILogExclusion;
UpdateExclusionRequest exclusion.
property name
name: string;
UpdateExclusionRequest name.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateExclusionRequest updateMask.
method create
static create: ( properties?: google.logging.v2.IUpdateExclusionRequest) => google.logging.v2.UpdateExclusionRequest;
Creates a new UpdateExclusionRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateExclusionRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateExclusionRequest;
Decodes an UpdateExclusionRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateExclusionRequest;
Decodes an UpdateExclusionRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateExclusionRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateExclusionRequest message. Does not implicitly verify messages.
Parameter message
UpdateExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateExclusionRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateExclusionRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateExclusionRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateExclusionRequest;
Creates an UpdateExclusionRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateExclusionRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateExclusionRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateExclusionRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateExclusionRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateExclusionRequest message. Also converts values to other types if specified.
Parameter message
UpdateExclusionRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateExclusionRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateLogMetricRequest
class UpdateLogMetricRequest implements IUpdateLogMetricRequest {}
Represents an UpdateLogMetricRequest.
constructor
constructor(properties?: IUpdateLogMetricRequest);
Constructs a new UpdateLogMetricRequest.
Parameter properties
Properties to set
property metric
metric?: ILogMetric;
UpdateLogMetricRequest metric.
property metricName
metricName: string;
UpdateLogMetricRequest metricName.
method create
static create: ( properties?: google.logging.v2.IUpdateLogMetricRequest) => google.logging.v2.UpdateLogMetricRequest;
Creates a new UpdateLogMetricRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateLogMetricRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateLogMetricRequest;
Decodes an UpdateLogMetricRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateLogMetricRequest;
Decodes an UpdateLogMetricRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateLogMetricRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateLogMetricRequest message. Does not implicitly verify messages.
Parameter message
UpdateLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateLogMetricRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateLogMetricRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateLogMetricRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateLogMetricRequest;
Creates an UpdateLogMetricRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateLogMetricRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateLogMetricRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateLogMetricRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateLogMetricRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateLogMetricRequest message. Also converts values to other types if specified.
Parameter message
UpdateLogMetricRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateLogMetricRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateSettingsRequest
class UpdateSettingsRequest implements IUpdateSettingsRequest {}
Represents an UpdateSettingsRequest.
constructor
constructor(properties?: IUpdateSettingsRequest);
Constructs a new UpdateSettingsRequest.
Parameter properties
Properties to set
property name
name: string;
UpdateSettingsRequest name.
property settings
settings?: ISettings;
UpdateSettingsRequest settings.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateSettingsRequest updateMask.
method create
static create: ( properties?: google.logging.v2.IUpdateSettingsRequest) => google.logging.v2.UpdateSettingsRequest;
Creates a new UpdateSettingsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateSettingsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateSettingsRequest;
Decodes an UpdateSettingsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateSettingsRequest;
Decodes an UpdateSettingsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateSettingsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateSettingsRequest message. Does not implicitly verify messages.
Parameter message
UpdateSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateSettingsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateSettingsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateSettingsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateSettingsRequest;
Creates an UpdateSettingsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateSettingsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateSettingsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateSettingsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateSettingsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateSettingsRequest message. Also converts values to other types if specified.
Parameter message
UpdateSettingsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateSettingsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateSinkRequest
class UpdateSinkRequest implements IUpdateSinkRequest {}
Represents an UpdateSinkRequest.
constructor
constructor(properties?: IUpdateSinkRequest);
Constructs a new UpdateSinkRequest.
Parameter properties
Properties to set
property sink
sink?: ILogSink;
UpdateSinkRequest sink.
property sinkName
sinkName: string;
UpdateSinkRequest sinkName.
property uniqueWriterIdentity
uniqueWriterIdentity: boolean;
UpdateSinkRequest uniqueWriterIdentity.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateSinkRequest updateMask.
method create
static create: ( properties?: google.logging.v2.IUpdateSinkRequest) => google.logging.v2.UpdateSinkRequest;
Creates a new UpdateSinkRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateSinkRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateSinkRequest;
Decodes an UpdateSinkRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateSinkRequest;
Decodes an UpdateSinkRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateSinkRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateSinkRequest message. Does not implicitly verify messages.
Parameter message
UpdateSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateSinkRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateSinkRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateSinkRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateSinkRequest;
Creates an UpdateSinkRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateSinkRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateSinkRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateSinkRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateSinkRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateSinkRequest message. Also converts values to other types if specified.
Parameter message
UpdateSinkRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateSinkRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UpdateViewRequest
class UpdateViewRequest implements IUpdateViewRequest {}
Represents an UpdateViewRequest.
constructor
constructor(properties?: IUpdateViewRequest);
Constructs a new UpdateViewRequest.
Parameter properties
Properties to set
property name
name: string;
UpdateViewRequest name.
property updateMask
updateMask?: protobuf.IFieldMask;
UpdateViewRequest updateMask.
property view
view?: ILogView;
UpdateViewRequest view.
method create
static create: ( properties?: google.logging.v2.IUpdateViewRequest) => google.logging.v2.UpdateViewRequest;
Creates a new UpdateViewRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
UpdateViewRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.UpdateViewRequest;
Decodes an UpdateViewRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UpdateViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.UpdateViewRequest;
Decodes an UpdateViewRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UpdateViewRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IUpdateViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateViewRequest message. Does not implicitly verify messages.
Parameter message
UpdateViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IUpdateViewRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UpdateViewRequest message, length delimited. Does not implicitly verify messages.
Parameter message
UpdateViewRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.UpdateViewRequest;
Creates an UpdateViewRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UpdateViewRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UpdateViewRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UpdateViewRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.UpdateViewRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UpdateViewRequest message. Also converts values to other types if specified.
Parameter message
UpdateViewRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UpdateViewRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class WriteLogEntriesPartialErrors
class WriteLogEntriesPartialErrors implements IWriteLogEntriesPartialErrors {}
Represents a WriteLogEntriesPartialErrors.
constructor
constructor(properties?: IWriteLogEntriesPartialErrors);
Constructs a new WriteLogEntriesPartialErrors.
Parameter properties
Properties to set
property logEntryErrors
logEntryErrors: { [k: string]: rpc.IStatus };
WriteLogEntriesPartialErrors logEntryErrors.
method create
static create: ( properties?: google.logging.v2.IWriteLogEntriesPartialErrors) => google.logging.v2.WriteLogEntriesPartialErrors;
Creates a new WriteLogEntriesPartialErrors instance using the specified properties.
Parameter properties
Properties to set
Returns
WriteLogEntriesPartialErrors instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.WriteLogEntriesPartialErrors;
Decodes a WriteLogEntriesPartialErrors message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
WriteLogEntriesPartialErrors
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.WriteLogEntriesPartialErrors;
Decodes a WriteLogEntriesPartialErrors message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
WriteLogEntriesPartialErrors
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IWriteLogEntriesPartialErrors, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesPartialErrors message. Does not implicitly verify messages.
Parameter message
WriteLogEntriesPartialErrors message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IWriteLogEntriesPartialErrors, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesPartialErrors message, length delimited. Does not implicitly verify messages.
Parameter message
WriteLogEntriesPartialErrors message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.WriteLogEntriesPartialErrors;
Creates a WriteLogEntriesPartialErrors message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
WriteLogEntriesPartialErrors
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for WriteLogEntriesPartialErrors
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this WriteLogEntriesPartialErrors to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.WriteLogEntriesPartialErrors, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a WriteLogEntriesPartialErrors message. Also converts values to other types if specified.
Parameter message
WriteLogEntriesPartialErrors
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a WriteLogEntriesPartialErrors message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class WriteLogEntriesRequest
class WriteLogEntriesRequest implements IWriteLogEntriesRequest {}
Represents a WriteLogEntriesRequest.
constructor
constructor(properties?: IWriteLogEntriesRequest);
Constructs a new WriteLogEntriesRequest.
Parameter properties
Properties to set
property dryRun
dryRun: boolean;
WriteLogEntriesRequest dryRun.
property entries
entries: ILogEntry[];
WriteLogEntriesRequest entries.
property labels
labels: { [k: string]: string };
WriteLogEntriesRequest labels.
property logName
logName: string;
WriteLogEntriesRequest logName.
property partialSuccess
partialSuccess: boolean;
WriteLogEntriesRequest partialSuccess.
property resource
resource?: api.IMonitoredResource;
WriteLogEntriesRequest resource.
method create
static create: ( properties?: google.logging.v2.IWriteLogEntriesRequest) => google.logging.v2.WriteLogEntriesRequest;
Creates a new WriteLogEntriesRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
WriteLogEntriesRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.WriteLogEntriesRequest;
Decodes a WriteLogEntriesRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
WriteLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.WriteLogEntriesRequest;
Decodes a WriteLogEntriesRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
WriteLogEntriesRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IWriteLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesRequest message. Does not implicitly verify messages.
Parameter message
WriteLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IWriteLogEntriesRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesRequest message, length delimited. Does not implicitly verify messages.
Parameter message
WriteLogEntriesRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.WriteLogEntriesRequest;
Creates a WriteLogEntriesRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
WriteLogEntriesRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for WriteLogEntriesRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this WriteLogEntriesRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.WriteLogEntriesRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a WriteLogEntriesRequest message. Also converts values to other types if specified.
Parameter message
WriteLogEntriesRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a WriteLogEntriesRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class WriteLogEntriesResponse
class WriteLogEntriesResponse implements IWriteLogEntriesResponse {}
Represents a WriteLogEntriesResponse.
constructor
constructor(properties?: IWriteLogEntriesResponse);
Constructs a new WriteLogEntriesResponse.
Parameter properties
Properties to set
method create
static create: ( properties?: google.logging.v2.IWriteLogEntriesResponse) => google.logging.v2.WriteLogEntriesResponse;
Creates a new WriteLogEntriesResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
WriteLogEntriesResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.WriteLogEntriesResponse;
Decodes a WriteLogEntriesResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
WriteLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.WriteLogEntriesResponse;
Decodes a WriteLogEntriesResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
WriteLogEntriesResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.IWriteLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesResponse message. Does not implicitly verify messages.
Parameter message
WriteLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.IWriteLogEntriesResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WriteLogEntriesResponse message, length delimited. Does not implicitly verify messages.
Parameter message
WriteLogEntriesResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.WriteLogEntriesResponse;
Creates a WriteLogEntriesResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
WriteLogEntriesResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for WriteLogEntriesResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this WriteLogEntriesResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.WriteLogEntriesResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a WriteLogEntriesResponse message. Also converts values to other types if specified.
Parameter message
WriteLogEntriesResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a WriteLogEntriesResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IBigQueryDataset
interface IBigQueryDataset {}
Properties of a BigQueryDataset.
property datasetId
datasetId?: string | null;
BigQueryDataset datasetId
interface IBigQueryOptions
interface IBigQueryOptions {}
Properties of a BigQueryOptions.
property usePartitionedTables
usePartitionedTables?: boolean | null;
BigQueryOptions usePartitionedTables
property usesTimestampColumnPartitioning
usesTimestampColumnPartitioning?: boolean | null;
BigQueryOptions usesTimestampColumnPartitioning
interface IBucketMetadata
interface IBucketMetadata {}
Properties of a BucketMetadata.
property createBucketRequest
createBucketRequest?: google.logging.v2.ICreateBucketRequest | null;
BucketMetadata createBucketRequest
property endTime
endTime?: google.protobuf.ITimestamp | null;
BucketMetadata endTime
property startTime
startTime?: google.protobuf.ITimestamp | null;
BucketMetadata startTime
property state
state?: | google.logging.v2.OperationState | keyof typeof google.logging.v2.OperationState | null;
BucketMetadata state
property updateBucketRequest
updateBucketRequest?: google.logging.v2.IUpdateBucketRequest | null;
BucketMetadata updateBucketRequest
interface ICmekSettings
interface ICmekSettings {}
Properties of a CmekSettings.
property kmsKeyName
kmsKeyName?: string | null;
CmekSettings kmsKeyName
property kmsKeyVersionName
kmsKeyVersionName?: string | null;
CmekSettings kmsKeyVersionName
property name
name?: string | null;
CmekSettings name
property serviceAccountId
serviceAccountId?: string | null;
CmekSettings serviceAccountId
interface ICopyLogEntriesMetadata
interface ICopyLogEntriesMetadata {}
Properties of a CopyLogEntriesMetadata.
property cancellationRequested
cancellationRequested?: boolean | null;
CopyLogEntriesMetadata cancellationRequested
property endTime
endTime?: google.protobuf.ITimestamp | null;
CopyLogEntriesMetadata endTime
property progress
progress?: number | null;
CopyLogEntriesMetadata progress
property request
request?: google.logging.v2.ICopyLogEntriesRequest | null;
CopyLogEntriesMetadata request
property startTime
startTime?: google.protobuf.ITimestamp | null;
CopyLogEntriesMetadata startTime
property state
state?: | google.logging.v2.OperationState | keyof typeof google.logging.v2.OperationState | null;
CopyLogEntriesMetadata state
property writerIdentity
writerIdentity?: string | null;
CopyLogEntriesMetadata writerIdentity
interface ICopyLogEntriesRequest
interface ICopyLogEntriesRequest {}
Properties of a CopyLogEntriesRequest.
property destination
destination?: string | null;
CopyLogEntriesRequest destination
property filter
filter?: string | null;
CopyLogEntriesRequest filter
property name
name?: string | null;
CopyLogEntriesRequest name
interface ICopyLogEntriesResponse
interface ICopyLogEntriesResponse {}
Properties of a CopyLogEntriesResponse.
property logEntriesCopiedCount
logEntriesCopiedCount?: number | Long | string | null;
CopyLogEntriesResponse logEntriesCopiedCount
interface ICreateBucketRequest
interface ICreateBucketRequest {}
Properties of a CreateBucketRequest.
interface ICreateExclusionRequest
interface ICreateExclusionRequest {}
Properties of a CreateExclusionRequest.
interface ICreateLinkRequest
interface ICreateLinkRequest {}
Properties of a CreateLinkRequest.
interface ICreateLogMetricRequest
interface ICreateLogMetricRequest {}
Properties of a CreateLogMetricRequest.
interface ICreateSinkRequest
interface ICreateSinkRequest {}
Properties of a CreateSinkRequest.
property parent
parent?: string | null;
CreateSinkRequest parent
property sink
sink?: google.logging.v2.ILogSink | null;
CreateSinkRequest sink
property uniqueWriterIdentity
uniqueWriterIdentity?: boolean | null;
CreateSinkRequest uniqueWriterIdentity
interface ICreateViewRequest
interface ICreateViewRequest {}
Properties of a CreateViewRequest.
interface IDeleteBucketRequest
interface IDeleteBucketRequest {}
Properties of a DeleteBucketRequest.
property name
name?: string | null;
DeleteBucketRequest name
interface IDeleteExclusionRequest
interface IDeleteExclusionRequest {}
Properties of a DeleteExclusionRequest.
property name
name?: string | null;
DeleteExclusionRequest name
interface IDeleteLinkRequest
interface IDeleteLinkRequest {}
Properties of a DeleteLinkRequest.
property name
name?: string | null;
DeleteLinkRequest name
interface IDeleteLogMetricRequest
interface IDeleteLogMetricRequest {}
Properties of a DeleteLogMetricRequest.
property metricName
metricName?: string | null;
DeleteLogMetricRequest metricName
interface IDeleteLogRequest
interface IDeleteLogRequest {}
Properties of a DeleteLogRequest.
property logName
logName?: string | null;
DeleteLogRequest logName
interface IDeleteSinkRequest
interface IDeleteSinkRequest {}
Properties of a DeleteSinkRequest.
property sinkName
sinkName?: string | null;
DeleteSinkRequest sinkName
interface IDeleteViewRequest
interface IDeleteViewRequest {}
Properties of a DeleteViewRequest.
property name
name?: string | null;
DeleteViewRequest name
interface IGetBucketRequest
interface IGetBucketRequest {}
Properties of a GetBucketRequest.
property name
name?: string | null;
GetBucketRequest name
interface IGetCmekSettingsRequest
interface IGetCmekSettingsRequest {}
Properties of a GetCmekSettingsRequest.
property name
name?: string | null;
GetCmekSettingsRequest name
interface IGetExclusionRequest
interface IGetExclusionRequest {}
Properties of a GetExclusionRequest.
property name
name?: string | null;
GetExclusionRequest name
interface IGetLinkRequest
interface IGetLinkRequest {}
Properties of a GetLinkRequest.
property name
name?: string | null;
GetLinkRequest name
interface IGetLogMetricRequest
interface IGetLogMetricRequest {}
Properties of a GetLogMetricRequest.
property metricName
metricName?: string | null;
GetLogMetricRequest metricName
interface IGetSettingsRequest
interface IGetSettingsRequest {}
Properties of a GetSettingsRequest.
property name
name?: string | null;
GetSettingsRequest name
interface IGetSinkRequest
interface IGetSinkRequest {}
Properties of a GetSinkRequest.
property sinkName
sinkName?: string | null;
GetSinkRequest sinkName
interface IGetViewRequest
interface IGetViewRequest {}
Properties of a GetViewRequest.
property name
name?: string | null;
GetViewRequest name
interface IIndexConfig
interface IIndexConfig {}
Properties of an IndexConfig.
property createTime
createTime?: google.protobuf.ITimestamp | null;
IndexConfig createTime
property fieldPath
fieldPath?: string | null;
IndexConfig fieldPath
property type
type?: | google.logging.v2.IndexType | keyof typeof google.logging.v2.IndexType | null;
IndexConfig type
interface ILink
interface ILink {}
Properties of a Link.
property bigqueryDataset
bigqueryDataset?: google.logging.v2.IBigQueryDataset | null;
Link bigqueryDataset
property createTime
createTime?: google.protobuf.ITimestamp | null;
Link createTime
property description
description?: string | null;
Link description
property lifecycleState
lifecycleState?: | google.logging.v2.LifecycleState | keyof typeof google.logging.v2.LifecycleState | null;
Link lifecycleState
property name
name?: string | null;
Link name
interface ILinkMetadata
interface ILinkMetadata {}
Properties of a LinkMetadata.
property createLinkRequest
createLinkRequest?: google.logging.v2.ICreateLinkRequest | null;
LinkMetadata createLinkRequest
property deleteLinkRequest
deleteLinkRequest?: google.logging.v2.IDeleteLinkRequest | null;
LinkMetadata deleteLinkRequest
property endTime
endTime?: google.protobuf.ITimestamp | null;
LinkMetadata endTime
property startTime
startTime?: google.protobuf.ITimestamp | null;
LinkMetadata startTime
property state
state?: | google.logging.v2.OperationState | keyof typeof google.logging.v2.OperationState | null;
LinkMetadata state
interface IListBucketsRequest
interface IListBucketsRequest {}
Properties of a ListBucketsRequest.
interface IListBucketsResponse
interface IListBucketsResponse {}
Properties of a ListBucketsResponse.
property buckets
buckets?: google.logging.v2.ILogBucket[] | null;
ListBucketsResponse buckets
property nextPageToken
nextPageToken?: string | null;
ListBucketsResponse nextPageToken
interface IListExclusionsRequest
interface IListExclusionsRequest {}
Properties of a ListExclusionsRequest.
interface IListExclusionsResponse
interface IListExclusionsResponse {}
Properties of a ListExclusionsResponse.
property exclusions
exclusions?: google.logging.v2.ILogExclusion[] | null;
ListExclusionsResponse exclusions
property nextPageToken
nextPageToken?: string | null;
ListExclusionsResponse nextPageToken
interface IListLinksRequest
interface IListLinksRequest {}
Properties of a ListLinksRequest.
interface IListLinksResponse
interface IListLinksResponse {}
Properties of a ListLinksResponse.
property links
links?: google.logging.v2.ILink[] | null;
ListLinksResponse links
property nextPageToken
nextPageToken?: string | null;
ListLinksResponse nextPageToken
interface IListLogEntriesRequest
interface IListLogEntriesRequest {}
Properties of a ListLogEntriesRequest.
property filter
filter?: string | null;
ListLogEntriesRequest filter
property orderBy
orderBy?: string | null;
ListLogEntriesRequest orderBy
property pageSize
pageSize?: number | null;
ListLogEntriesRequest pageSize
property pageToken
pageToken?: string | null;
ListLogEntriesRequest pageToken
property resourceNames
resourceNames?: string[] | null;
ListLogEntriesRequest resourceNames
interface IListLogEntriesResponse
interface IListLogEntriesResponse {}
Properties of a ListLogEntriesResponse.
property entries
entries?: google.logging.v2.ILogEntry[] | null;
ListLogEntriesResponse entries
property nextPageToken
nextPageToken?: string | null;
ListLogEntriesResponse nextPageToken
interface IListLogMetricsRequest
interface IListLogMetricsRequest {}
Properties of a ListLogMetricsRequest.
interface IListLogMetricsResponse
interface IListLogMetricsResponse {}
Properties of a ListLogMetricsResponse.
property metrics
metrics?: google.logging.v2.ILogMetric[] | null;
ListLogMetricsResponse metrics
property nextPageToken
nextPageToken?: string | null;
ListLogMetricsResponse nextPageToken
interface IListLogsRequest
interface IListLogsRequest {}
Properties of a ListLogsRequest.
property pageSize
pageSize?: number | null;
ListLogsRequest pageSize
property pageToken
pageToken?: string | null;
ListLogsRequest pageToken
property parent
parent?: string | null;
ListLogsRequest parent
property resourceNames
resourceNames?: string[] | null;
ListLogsRequest resourceNames
interface IListLogsResponse
interface IListLogsResponse {}
Properties of a ListLogsResponse.
property logNames
logNames?: string[] | null;
ListLogsResponse logNames
property nextPageToken
nextPageToken?: string | null;
ListLogsResponse nextPageToken
interface IListMonitoredResourceDescriptorsRequest
interface IListMonitoredResourceDescriptorsRequest {}
Properties of a ListMonitoredResourceDescriptorsRequest.
interface IListMonitoredResourceDescriptorsResponse
interface IListMonitoredResourceDescriptorsResponse {}
Properties of a ListMonitoredResourceDescriptorsResponse.
property nextPageToken
nextPageToken?: string | null;
ListMonitoredResourceDescriptorsResponse nextPageToken
property resourceDescriptors
resourceDescriptors?: google.api.IMonitoredResourceDescriptor[] | null;
ListMonitoredResourceDescriptorsResponse resourceDescriptors
interface IListSinksRequest
interface IListSinksRequest {}
Properties of a ListSinksRequest.
interface IListSinksResponse
interface IListSinksResponse {}
Properties of a ListSinksResponse.
property nextPageToken
nextPageToken?: string | null;
ListSinksResponse nextPageToken
property sinks
sinks?: google.logging.v2.ILogSink[] | null;
ListSinksResponse sinks
interface IListViewsRequest
interface IListViewsRequest {}
Properties of a ListViewsRequest.
interface IListViewsResponse
interface IListViewsResponse {}
Properties of a ListViewsResponse.
property nextPageToken
nextPageToken?: string | null;
ListViewsResponse nextPageToken
property views
views?: google.logging.v2.ILogView[] | null;
ListViewsResponse views
interface ILocationMetadata
interface ILocationMetadata {}
Properties of a LocationMetadata.
property logAnalyticsEnabled
logAnalyticsEnabled?: boolean | null;
LocationMetadata logAnalyticsEnabled
interface ILogBucket
interface ILogBucket {}
Properties of a LogBucket.
property analyticsEnabled
analyticsEnabled?: boolean | null;
LogBucket analyticsEnabled
property cmekSettings
cmekSettings?: google.logging.v2.ICmekSettings | null;
LogBucket cmekSettings
property createTime
createTime?: google.protobuf.ITimestamp | null;
LogBucket createTime
property description
description?: string | null;
LogBucket description
property indexConfigs
indexConfigs?: google.logging.v2.IIndexConfig[] | null;
LogBucket indexConfigs
property lifecycleState
lifecycleState?: | google.logging.v2.LifecycleState | keyof typeof google.logging.v2.LifecycleState | null;
LogBucket lifecycleState
property locked
locked?: boolean | null;
LogBucket locked
property name
name?: string | null;
LogBucket name
property restrictedFields
restrictedFields?: string[] | null;
LogBucket restrictedFields
property retentionDays
retentionDays?: number | null;
LogBucket retentionDays
property updateTime
updateTime?: google.protobuf.ITimestamp | null;
LogBucket updateTime
interface ILogEntry
interface ILogEntry {}
Properties of a LogEntry.
property httpRequest
httpRequest?: google.logging.type.IHttpRequest | null;
LogEntry httpRequest
property insertId
insertId?: string | null;
LogEntry insertId
property jsonPayload
jsonPayload?: google.protobuf.IStruct | null;
LogEntry jsonPayload
property labels
labels?: { [k: string]: string } | null;
LogEntry labels
property logName
logName?: string | null;
LogEntry logName
property operation
operation?: google.logging.v2.ILogEntryOperation | null;
LogEntry operation
property protoPayload
protoPayload?: google.protobuf.IAny | null;
LogEntry protoPayload
property receiveTimestamp
receiveTimestamp?: google.protobuf.ITimestamp | null;
LogEntry receiveTimestamp
property resource
resource?: google.api.IMonitoredResource | null;
LogEntry resource
property severity
severity?: | google.logging.type.LogSeverity | keyof typeof google.logging.type.LogSeverity | null;
LogEntry severity
property sourceLocation
sourceLocation?: google.logging.v2.ILogEntrySourceLocation | null;
LogEntry sourceLocation
property spanId
spanId?: string | null;
LogEntry spanId
property split
split?: google.logging.v2.ILogSplit | null;
LogEntry split
property textPayload
textPayload?: string | null;
LogEntry textPayload
property timestamp
timestamp?: google.protobuf.ITimestamp | null;
LogEntry timestamp
property trace
trace?: string | null;
LogEntry trace
property traceSampled
traceSampled?: boolean | null;
LogEntry traceSampled
interface ILogEntryOperation
interface ILogEntryOperation {}
Properties of a LogEntryOperation.
interface ILogEntrySourceLocation
interface ILogEntrySourceLocation {}
Properties of a LogEntrySourceLocation.
property "function"
function?: string | null;
LogEntrySourceLocation function
property file
file?: string | null;
LogEntrySourceLocation file
property line
line?: number | Long | string | null;
LogEntrySourceLocation line
interface ILogExclusion
interface ILogExclusion {}
Properties of a LogExclusion.
property createTime
createTime?: google.protobuf.ITimestamp | null;
LogExclusion createTime
property description
description?: string | null;
LogExclusion description
property disabled
disabled?: boolean | null;
LogExclusion disabled
property filter
filter?: string | null;
LogExclusion filter
property name
name?: string | null;
LogExclusion name
property updateTime
updateTime?: google.protobuf.ITimestamp | null;
LogExclusion updateTime
interface ILogMetric
interface ILogMetric {}
Properties of a LogMetric.
property bucketName
bucketName?: string | null;
LogMetric bucketName
property bucketOptions
bucketOptions?: google.api.Distribution.IBucketOptions | null;
LogMetric bucketOptions
property createTime
createTime?: google.protobuf.ITimestamp | null;
LogMetric createTime
property description
description?: string | null;
LogMetric description
property disabled
disabled?: boolean | null;
LogMetric disabled
property filter
filter?: string | null;
LogMetric filter
property labelExtractors
labelExtractors?: { [k: string]: string } | null;
LogMetric labelExtractors
property metricDescriptor
metricDescriptor?: google.api.IMetricDescriptor | null;
LogMetric metricDescriptor
property name
name?: string | null;
LogMetric name
property updateTime
updateTime?: google.protobuf.ITimestamp | null;
LogMetric updateTime
property valueExtractor
valueExtractor?: string | null;
LogMetric valueExtractor
property version
version?: | google.logging.v2.LogMetric.ApiVersion | keyof typeof google.logging.v2.LogMetric.ApiVersion | null;
LogMetric version
interface ILogSink
interface ILogSink {}
Properties of a LogSink.
property bigqueryOptions
bigqueryOptions?: google.logging.v2.IBigQueryOptions | null;
LogSink bigqueryOptions
property createTime
createTime?: google.protobuf.ITimestamp | null;
LogSink createTime
property description
description?: string | null;
LogSink description
property destination
destination?: string | null;
LogSink destination
property disabled
disabled?: boolean | null;
LogSink disabled
property exclusions
exclusions?: google.logging.v2.ILogExclusion[] | null;
LogSink exclusions
property filter
filter?: string | null;
LogSink filter
property includeChildren
includeChildren?: boolean | null;
LogSink includeChildren
property name
name?: string | null;
LogSink name
property outputVersionFormat
outputVersionFormat?: | google.logging.v2.LogSink.VersionFormat | keyof typeof google.logging.v2.LogSink.VersionFormat | null;
LogSink outputVersionFormat
property updateTime
updateTime?: google.protobuf.ITimestamp | null;
LogSink updateTime
property writerIdentity
writerIdentity?: string | null;
LogSink writerIdentity
interface ILogSplit
interface ILogSplit {}
Properties of a LogSplit.
property index
index?: number | null;
LogSplit index
property totalSplits
totalSplits?: number | null;
LogSplit totalSplits
property uid
uid?: string | null;
LogSplit uid
interface ILogView
interface ILogView {}
Properties of a LogView.
property createTime
createTime?: google.protobuf.ITimestamp | null;
LogView createTime
property description
description?: string | null;
LogView description
property filter
filter?: string | null;
LogView filter
property name
name?: string | null;
LogView name
property updateTime
updateTime?: google.protobuf.ITimestamp | null;
LogView updateTime
interface ISettings
interface ISettings {}
Properties of a Settings.
property disableDefaultSink
disableDefaultSink?: boolean | null;
Settings disableDefaultSink
property kmsKeyName
kmsKeyName?: string | null;
Settings kmsKeyName
property kmsServiceAccountId
kmsServiceAccountId?: string | null;
Settings kmsServiceAccountId
property name
name?: string | null;
Settings name
property storageLocation
storageLocation?: string | null;
Settings storageLocation
interface ITailLogEntriesRequest
interface ITailLogEntriesRequest {}
Properties of a TailLogEntriesRequest.
property bufferWindow
bufferWindow?: google.protobuf.IDuration | null;
TailLogEntriesRequest bufferWindow
property filter
filter?: string | null;
TailLogEntriesRequest filter
property resourceNames
resourceNames?: string[] | null;
TailLogEntriesRequest resourceNames
interface ITailLogEntriesResponse
interface ITailLogEntriesResponse {}
Properties of a TailLogEntriesResponse.
property entries
entries?: google.logging.v2.ILogEntry[] | null;
TailLogEntriesResponse entries
property suppressionInfo
suppressionInfo?: | google.logging.v2.TailLogEntriesResponse.ISuppressionInfo[] | null;
TailLogEntriesResponse suppressionInfo
interface IUndeleteBucketRequest
interface IUndeleteBucketRequest {}
Properties of an UndeleteBucketRequest.
property name
name?: string | null;
UndeleteBucketRequest name
interface IUpdateBucketRequest
interface IUpdateBucketRequest {}
Properties of an UpdateBucketRequest.
property bucket
bucket?: google.logging.v2.ILogBucket | null;
UpdateBucketRequest bucket
property name
name?: string | null;
UpdateBucketRequest name
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateBucketRequest updateMask
interface IUpdateCmekSettingsRequest
interface IUpdateCmekSettingsRequest {}
Properties of an UpdateCmekSettingsRequest.
property cmekSettings
cmekSettings?: google.logging.v2.ICmekSettings | null;
UpdateCmekSettingsRequest cmekSettings
property name
name?: string | null;
UpdateCmekSettingsRequest name
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateCmekSettingsRequest updateMask
interface IUpdateExclusionRequest
interface IUpdateExclusionRequest {}
Properties of an UpdateExclusionRequest.
property exclusion
exclusion?: google.logging.v2.ILogExclusion | null;
UpdateExclusionRequest exclusion
property name
name?: string | null;
UpdateExclusionRequest name
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateExclusionRequest updateMask
interface IUpdateLogMetricRequest
interface IUpdateLogMetricRequest {}
Properties of an UpdateLogMetricRequest.
property metric
metric?: google.logging.v2.ILogMetric | null;
UpdateLogMetricRequest metric
property metricName
metricName?: string | null;
UpdateLogMetricRequest metricName
interface IUpdateSettingsRequest
interface IUpdateSettingsRequest {}
Properties of an UpdateSettingsRequest.
property name
name?: string | null;
UpdateSettingsRequest name
property settings
settings?: google.logging.v2.ISettings | null;
UpdateSettingsRequest settings
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateSettingsRequest updateMask
interface IUpdateSinkRequest
interface IUpdateSinkRequest {}
Properties of an UpdateSinkRequest.
property sink
sink?: google.logging.v2.ILogSink | null;
UpdateSinkRequest sink
property sinkName
sinkName?: string | null;
UpdateSinkRequest sinkName
property uniqueWriterIdentity
uniqueWriterIdentity?: boolean | null;
UpdateSinkRequest uniqueWriterIdentity
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateSinkRequest updateMask
interface IUpdateViewRequest
interface IUpdateViewRequest {}
Properties of an UpdateViewRequest.
property name
name?: string | null;
UpdateViewRequest name
property updateMask
updateMask?: google.protobuf.IFieldMask | null;
UpdateViewRequest updateMask
property view
view?: google.logging.v2.ILogView | null;
UpdateViewRequest view
interface IWriteLogEntriesPartialErrors
interface IWriteLogEntriesPartialErrors {}
Properties of a WriteLogEntriesPartialErrors.
property logEntryErrors
logEntryErrors?: { [k: string]: google.rpc.IStatus } | null;
WriteLogEntriesPartialErrors logEntryErrors
interface IWriteLogEntriesRequest
interface IWriteLogEntriesRequest {}
Properties of a WriteLogEntriesRequest.
property dryRun
dryRun?: boolean | null;
WriteLogEntriesRequest dryRun
property entries
entries?: google.logging.v2.ILogEntry[] | null;
WriteLogEntriesRequest entries
property labels
labels?: { [k: string]: string } | null;
WriteLogEntriesRequest labels
property logName
logName?: string | null;
WriteLogEntriesRequest logName
property partialSuccess
partialSuccess?: boolean | null;
WriteLogEntriesRequest partialSuccess
property resource
resource?: google.api.IMonitoredResource | null;
WriteLogEntriesRequest resource
interface IWriteLogEntriesResponse
interface IWriteLogEntriesResponse {}
Properties of a WriteLogEntriesResponse.
enum IndexType
enum IndexType { INDEX_TYPE_UNSPECIFIED = 0, INDEX_TYPE_STRING = 1, INDEX_TYPE_INTEGER = 2,}
IndexType enum.
member INDEX_TYPE_INTEGER
INDEX_TYPE_INTEGER = 2
member INDEX_TYPE_STRING
INDEX_TYPE_STRING = 1
member INDEX_TYPE_UNSPECIFIED
INDEX_TYPE_UNSPECIFIED = 0
enum LifecycleState
enum LifecycleState { LIFECYCLE_STATE_UNSPECIFIED = 0, ACTIVE = 1, DELETE_REQUESTED = 2, UPDATING = 3, CREATING = 4, FAILED = 5,}
LifecycleState enum.
member ACTIVE
ACTIVE = 1
member CREATING
CREATING = 4
member DELETE_REQUESTED
DELETE_REQUESTED = 2
member FAILED
FAILED = 5
member LIFECYCLE_STATE_UNSPECIFIED
LIFECYCLE_STATE_UNSPECIFIED = 0
member UPDATING
UPDATING = 3
enum OperationState
enum OperationState { OPERATION_STATE_UNSPECIFIED = 0, OPERATION_STATE_SCHEDULED = 1, OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2, OPERATION_STATE_RUNNING = 3, OPERATION_STATE_SUCCEEDED = 4, OPERATION_STATE_FAILED = 5, OPERATION_STATE_CANCELLED = 6,}
OperationState enum.
member OPERATION_STATE_CANCELLED
OPERATION_STATE_CANCELLED = 6
member OPERATION_STATE_FAILED
OPERATION_STATE_FAILED = 5
member OPERATION_STATE_RUNNING
OPERATION_STATE_RUNNING = 3
member OPERATION_STATE_SCHEDULED
OPERATION_STATE_SCHEDULED = 1
member OPERATION_STATE_SUCCEEDED
OPERATION_STATE_SUCCEEDED = 4
member OPERATION_STATE_UNSPECIFIED
OPERATION_STATE_UNSPECIFIED = 0
member OPERATION_STATE_WAITING_FOR_PERMISSIONS
OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2
namespace protos.google.logging.v2.ConfigServiceV2
namespace protos.google.logging.v2.ConfigServiceV2 {}
type CopyLogEntriesCallback
type CopyLogEntriesCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type CreateBucketAsyncCallback
type CreateBucketAsyncCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type CreateBucketCallback
type CreateBucketCallback = ( error: Error | null, response?: google.logging.v2.LogBucket) => void;
type CreateExclusionCallback
type CreateExclusionCallback = ( error: Error | null, response?: google.logging.v2.LogExclusion) => void;
type CreateLinkCallback
type CreateLinkCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type CreateSinkCallback
type CreateSinkCallback = ( error: Error | null, response?: google.logging.v2.LogSink) => void;
type CreateViewCallback
type CreateViewCallback = ( error: Error | null, response?: google.logging.v2.LogView) => void;
type DeleteBucketCallback
type DeleteBucketCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type DeleteExclusionCallback
type DeleteExclusionCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type DeleteLinkCallback
type DeleteLinkCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type DeleteSinkCallback
type DeleteSinkCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type DeleteViewCallback
type DeleteViewCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type GetBucketCallback
type GetBucketCallback = ( error: Error | null, response?: google.logging.v2.LogBucket) => void;
type GetCmekSettingsCallback
type GetCmekSettingsCallback = ( error: Error | null, response?: google.logging.v2.CmekSettings) => void;
type GetExclusionCallback
type GetExclusionCallback = ( error: Error | null, response?: google.logging.v2.LogExclusion) => void;
type GetLinkCallback
type GetLinkCallback = ( error: Error | null, response?: google.logging.v2.Link) => void;
type GetSettingsCallback
type GetSettingsCallback = ( error: Error | null, response?: google.logging.v2.Settings) => void;
type GetSinkCallback
type GetSinkCallback = ( error: Error | null, response?: google.logging.v2.LogSink) => void;
type GetViewCallback
type GetViewCallback = ( error: Error | null, response?: google.logging.v2.LogView) => void;
type ListBucketsCallback
type ListBucketsCallback = ( error: Error | null, response?: google.logging.v2.ListBucketsResponse) => void;
type ListExclusionsCallback
type ListExclusionsCallback = ( error: Error | null, response?: google.logging.v2.ListExclusionsResponse) => void;
Callback as used by listExclusions.
Parameter error
Error, if any
Parameter response
ListExclusionsResponse
type ListLinksCallback
type ListLinksCallback = ( error: Error | null, response?: google.logging.v2.ListLinksResponse) => void;
type ListSinksCallback
type ListSinksCallback = ( error: Error | null, response?: google.logging.v2.ListSinksResponse) => void;
type ListViewsCallback
type ListViewsCallback = ( error: Error | null, response?: google.logging.v2.ListViewsResponse) => void;
type UndeleteBucketCallback
type UndeleteBucketCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type UpdateBucketAsyncCallback
type UpdateBucketAsyncCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type UpdateBucketCallback
type UpdateBucketCallback = ( error: Error | null, response?: google.logging.v2.LogBucket) => void;
type UpdateCmekSettingsCallback
type UpdateCmekSettingsCallback = ( error: Error | null, response?: google.logging.v2.CmekSettings) => void;
type UpdateExclusionCallback
type UpdateExclusionCallback = ( error: Error | null, response?: google.logging.v2.LogExclusion) => void;
type UpdateSettingsCallback
type UpdateSettingsCallback = ( error: Error | null, response?: google.logging.v2.Settings) => void;
type UpdateSinkCallback
type UpdateSinkCallback = ( error: Error | null, response?: google.logging.v2.LogSink) => void;
type UpdateViewCallback
type UpdateViewCallback = ( error: Error | null, response?: google.logging.v2.LogView) => void;
namespace protos.google.logging.v2.LoggingServiceV2
namespace protos.google.logging.v2.LoggingServiceV2 {}
type DeleteLogCallback
type DeleteLogCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type ListLogEntriesCallback
type ListLogEntriesCallback = ( error: Error | null, response?: google.logging.v2.ListLogEntriesResponse) => void;
Callback as used by listLogEntries.
Parameter error
Error, if any
Parameter response
ListLogEntriesResponse
type ListLogsCallback
type ListLogsCallback = ( error: Error | null, response?: google.logging.v2.ListLogsResponse) => void;
type ListMonitoredResourceDescriptorsCallback
type ListMonitoredResourceDescriptorsCallback = ( error: Error | null, response?: google.logging.v2.ListMonitoredResourceDescriptorsResponse) => void;
Callback as used by listMonitoredResourceDescriptors.
Parameter error
Error, if any
Parameter response
ListMonitoredResourceDescriptorsResponse
type TailLogEntriesCallback
type TailLogEntriesCallback = ( error: Error | null, response?: google.logging.v2.TailLogEntriesResponse) => void;
Callback as used by tailLogEntries.
Parameter error
Error, if any
Parameter response
TailLogEntriesResponse
type WriteLogEntriesCallback
type WriteLogEntriesCallback = ( error: Error | null, response?: google.logging.v2.WriteLogEntriesResponse) => void;
Callback as used by writeLogEntries.
Parameter error
Error, if any
Parameter response
WriteLogEntriesResponse
namespace protos.google.logging.v2.LogMetric
namespace protos.google.logging.v2.LogMetric {}
enum ApiVersion
enum ApiVersion { V2 = 0, V1 = 1,}
ApiVersion enum.
namespace protos.google.logging.v2.LogSink
namespace protos.google.logging.v2.LogSink {}
enum VersionFormat
enum VersionFormat { VERSION_FORMAT_UNSPECIFIED = 0, V2 = 1, V1 = 2,}
VersionFormat enum.
namespace protos.google.logging.v2.MetricsServiceV2
namespace protos.google.logging.v2.MetricsServiceV2 {}
type CreateLogMetricCallback
type CreateLogMetricCallback = ( error: Error | null, response?: google.logging.v2.LogMetric) => void;
type DeleteLogMetricCallback
type DeleteLogMetricCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type GetLogMetricCallback
type GetLogMetricCallback = ( error: Error | null, response?: google.logging.v2.LogMetric) => void;
type ListLogMetricsCallback
type ListLogMetricsCallback = ( error: Error | null, response?: google.logging.v2.ListLogMetricsResponse) => void;
Callback as used by listLogMetrics.
Parameter error
Error, if any
Parameter response
ListLogMetricsResponse
type UpdateLogMetricCallback
type UpdateLogMetricCallback = ( error: Error | null, response?: google.logging.v2.LogMetric) => void;
namespace protos.google.logging.v2.TailLogEntriesResponse
namespace protos.google.logging.v2.TailLogEntriesResponse {}
class SuppressionInfo
class SuppressionInfo implements ISuppressionInfo {}
Represents a SuppressionInfo.
constructor
constructor(properties?: ISuppressionInfo);
Constructs a new SuppressionInfo.
Parameter properties
Properties to set
property reason
reason: | SuppressionInfo.Reason | 'REASON_UNSPECIFIED' | 'RATE_LIMIT' | 'NOT_CONSUMED';
SuppressionInfo reason.
property suppressedCount
suppressedCount: number;
SuppressionInfo suppressedCount.
method create
static create: ( properties?: google.logging.v2.TailLogEntriesResponse.ISuppressionInfo) => google.logging.v2.TailLogEntriesResponse.SuppressionInfo;
Creates a new SuppressionInfo instance using the specified properties.
Parameter properties
Properties to set
Returns
SuppressionInfo instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.logging.v2.TailLogEntriesResponse.SuppressionInfo;
Decodes a SuppressionInfo message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
SuppressionInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.logging.v2.TailLogEntriesResponse.SuppressionInfo;
Decodes a SuppressionInfo message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
SuppressionInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.logging.v2.TailLogEntriesResponse.ISuppressionInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified SuppressionInfo message. Does not implicitly verify messages.
Parameter message
SuppressionInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.logging.v2.TailLogEntriesResponse.ISuppressionInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified SuppressionInfo message, length delimited. Does not implicitly verify messages.
Parameter message
SuppressionInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.logging.v2.TailLogEntriesResponse.SuppressionInfo;
Creates a SuppressionInfo message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
SuppressionInfo
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for SuppressionInfo
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this SuppressionInfo to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.logging.v2.TailLogEntriesResponse.SuppressionInfo, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a SuppressionInfo message. Also converts values to other types if specified.
Parameter message
SuppressionInfo
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a SuppressionInfo message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface ISuppressionInfo
interface ISuppressionInfo {}
Properties of a SuppressionInfo.
property reason
reason?: | google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason | keyof typeof google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason | null;
SuppressionInfo reason
property suppressedCount
suppressedCount?: number | null;
SuppressionInfo suppressedCount
namespace protos.google.longrunning
namespace protos.google.longrunning {}
Namespace longrunning.
class CancelOperationRequest
class CancelOperationRequest implements ICancelOperationRequest {}
Represents a CancelOperationRequest.
constructor
constructor(properties?: ICancelOperationRequest);
Constructs a new CancelOperationRequest.
Parameter properties
Properties to set
property name
name: string;
CancelOperationRequest name.
method create
static create: ( properties?: google.longrunning.ICancelOperationRequest) => google.longrunning.CancelOperationRequest;
Creates a new CancelOperationRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
CancelOperationRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.CancelOperationRequest;
Decodes a CancelOperationRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
CancelOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.CancelOperationRequest;
Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
CancelOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CancelOperationRequest message. Does not implicitly verify messages.
Parameter message
CancelOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly verify messages.
Parameter message
CancelOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.CancelOperationRequest;
Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
CancelOperationRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for CancelOperationRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this CancelOperationRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
Parameter message
CancelOperationRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a CancelOperationRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DeleteOperationRequest
class DeleteOperationRequest implements IDeleteOperationRequest {}
Represents a DeleteOperationRequest.
constructor
constructor(properties?: IDeleteOperationRequest);
Constructs a new DeleteOperationRequest.
Parameter properties
Properties to set
property name
name: string;
DeleteOperationRequest name.
method create
static create: ( properties?: google.longrunning.IDeleteOperationRequest) => google.longrunning.DeleteOperationRequest;
Creates a new DeleteOperationRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
DeleteOperationRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.DeleteOperationRequest;
Decodes a DeleteOperationRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DeleteOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.DeleteOperationRequest;
Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DeleteOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteOperationRequest message. Does not implicitly verify messages.
Parameter message
DeleteOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly verify messages.
Parameter message
DeleteOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.DeleteOperationRequest;
Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DeleteOperationRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DeleteOperationRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DeleteOperationRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
Parameter message
DeleteOperationRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DeleteOperationRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GetOperationRequest
class GetOperationRequest implements IGetOperationRequest {}
Represents a GetOperationRequest.
constructor
constructor(properties?: IGetOperationRequest);
Constructs a new GetOperationRequest.
Parameter properties
Properties to set
property name
name: string;
GetOperationRequest name.
method create
static create: ( properties?: google.longrunning.IGetOperationRequest) => google.longrunning.GetOperationRequest;
Creates a new GetOperationRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
GetOperationRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.GetOperationRequest;
Decodes a GetOperationRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GetOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.GetOperationRequest;
Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GetOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetOperationRequest message. Does not implicitly verify messages.
Parameter message
GetOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GetOperationRequest message, length delimited. Does not implicitly verify messages.
Parameter message
GetOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.GetOperationRequest;
Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GetOperationRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GetOperationRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GetOperationRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
Parameter message
GetOperationRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GetOperationRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListOperationsRequest
class ListOperationsRequest implements IListOperationsRequest {}
Represents a ListOperationsRequest.
constructor
constructor(properties?: IListOperationsRequest);
Constructs a new ListOperationsRequest.
Parameter properties
Properties to set
property filter
filter: string;
ListOperationsRequest filter.
property name
name: string;
ListOperationsRequest name.
property pageSize
pageSize: number;
ListOperationsRequest pageSize.
property pageToken
pageToken: string;
ListOperationsRequest pageToken.
method create
static create: ( properties?: google.longrunning.IListOperationsRequest) => google.longrunning.ListOperationsRequest;
Creates a new ListOperationsRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
ListOperationsRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.ListOperationsRequest;
Decodes a ListOperationsRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListOperationsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.ListOperationsRequest;
Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListOperationsRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListOperationsRequest message. Does not implicitly verify messages.
Parameter message
ListOperationsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly verify messages.
Parameter message
ListOperationsRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.ListOperationsRequest;
Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListOperationsRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListOperationsRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListOperationsRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
Parameter message
ListOperationsRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListOperationsRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListOperationsResponse
class ListOperationsResponse implements IListOperationsResponse {}
Represents a ListOperationsResponse.
constructor
constructor(properties?: IListOperationsResponse);
Constructs a new ListOperationsResponse.
Parameter properties
Properties to set
property nextPageToken
nextPageToken: string;
ListOperationsResponse nextPageToken.
property operations
operations: IOperation[];
ListOperationsResponse operations.
method create
static create: ( properties?: google.longrunning.IListOperationsResponse) => google.longrunning.ListOperationsResponse;
Creates a new ListOperationsResponse instance using the specified properties.
Parameter properties
Properties to set
Returns
ListOperationsResponse instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.ListOperationsResponse;
Decodes a ListOperationsResponse message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListOperationsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.ListOperationsResponse;
Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListOperationsResponse
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListOperationsResponse message. Does not implicitly verify messages.
Parameter message
ListOperationsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly verify messages.
Parameter message
ListOperationsResponse message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.ListOperationsResponse;
Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListOperationsResponse
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListOperationsResponse
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListOperationsResponse to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
Parameter message
ListOperationsResponse
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListOperationsResponse message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Operation
class Operation implements IOperation {}
Represents an Operation.
constructor
constructor(properties?: IOperation);
Constructs a new Operation.
Parameter properties
Properties to set
property done
done: boolean;
Operation done.
property error
error?: rpc.IStatus;
Operation error.
property metadata
metadata?: protobuf.IAny;
Operation metadata.
property name
name: string;
Operation name.
property response
response?: protobuf.IAny;
Operation response.
property result
result?: 'error' | 'response';
Operation result.
method create
static create: ( properties?: google.longrunning.IOperation) => google.longrunning.Operation;
Creates a new Operation instance using the specified properties.
Parameter properties
Properties to set
Returns
Operation instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.Operation;
Decodes an Operation message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Operation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.Operation;
Decodes an Operation message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Operation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IOperation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Operation message. Does not implicitly verify messages.
Parameter message
Operation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IOperation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Operation message, length delimited. Does not implicitly verify messages.
Parameter message
Operation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.Operation;
Creates an Operation message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Operation
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Operation
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Operation to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.Operation, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Operation message. Also converts values to other types if specified.
Parameter message
Operation
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Operation message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class OperationInfo
class OperationInfo implements IOperationInfo {}
Represents an OperationInfo.
constructor
constructor(properties?: IOperationInfo);
Constructs a new OperationInfo.
Parameter properties
Properties to set
property metadataType
metadataType: string;
OperationInfo metadataType.
property responseType
responseType: string;
OperationInfo responseType.
method create
static create: ( properties?: google.longrunning.IOperationInfo) => google.longrunning.OperationInfo;
Creates a new OperationInfo instance using the specified properties.
Parameter properties
Properties to set
Returns
OperationInfo instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.OperationInfo;
Decodes an OperationInfo message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
OperationInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.OperationInfo;
Decodes an OperationInfo message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
OperationInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OperationInfo message. Does not implicitly verify messages.
Parameter message
OperationInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OperationInfo message, length delimited. Does not implicitly verify messages.
Parameter message
OperationInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.OperationInfo;
Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
OperationInfo
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for OperationInfo
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this OperationInfo to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
Parameter message
OperationInfo
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an OperationInfo message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Operations
class Operations extends $protobuf.rpc.Service {}
Represents an Operations
constructor
constructor( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Operations service.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
method cancelOperation
cancelOperation: { ( request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback ): void; (request: ICancelOperationRequest): Promise<protobuf.Empty>;};
Calls CancelOperation.
Parameter request
CancelOperationRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls CancelOperation.
Parameter request
CancelOperationRequest message or plain object
Returns
Promise
method create
static create: ( rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean) => Operations;
Creates new Operations service using the specified rpc implementation.
Parameter rpcImpl
RPC implementation
Parameter requestDelimited
Whether requests are length-delimited
Parameter responseDelimited
Whether responses are length-delimited
Returns
RPC service. Useful where requests and/or responses are streamed.
method deleteOperation
deleteOperation: { ( request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback ): void; (request: IDeleteOperationRequest): Promise<protobuf.Empty>;};
Calls DeleteOperation.
Parameter request
DeleteOperationRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Empty
Calls DeleteOperation.
Parameter request
DeleteOperationRequest message or plain object
Returns
Promise
method getOperation
getOperation: { ( request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback ): void; (request: IGetOperationRequest): Promise<Operation>;};
Calls GetOperation.
Parameter request
GetOperationRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls GetOperation.
Parameter request
GetOperationRequest message or plain object
Returns
Promise
method listOperations
listOperations: { ( request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback ): void; (request: IListOperationsRequest): Promise<ListOperationsResponse>;};
Calls ListOperations.
Parameter request
ListOperationsRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and ListOperationsResponse
Calls ListOperations.
Parameter request
ListOperationsRequest message or plain object
Returns
Promise
method waitOperation
waitOperation: { ( request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback ): void; (request: IWaitOperationRequest): Promise<Operation>;};
Calls WaitOperation.
Parameter request
WaitOperationRequest message or plain object
Parameter callback
Node-style callback called with the error, if any, and Operation
Calls WaitOperation.
Parameter request
WaitOperationRequest message or plain object
Returns
Promise
class WaitOperationRequest
class WaitOperationRequest implements IWaitOperationRequest {}
Represents a WaitOperationRequest.
constructor
constructor(properties?: IWaitOperationRequest);
Constructs a new WaitOperationRequest.
Parameter properties
Properties to set
property name
name: string;
WaitOperationRequest name.
property timeout
timeout?: protobuf.IDuration;
WaitOperationRequest timeout.
method create
static create: ( properties?: google.longrunning.IWaitOperationRequest) => google.longrunning.WaitOperationRequest;
Creates a new WaitOperationRequest instance using the specified properties.
Parameter properties
Properties to set
Returns
WaitOperationRequest instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.longrunning.WaitOperationRequest;
Decodes a WaitOperationRequest message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
WaitOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.longrunning.WaitOperationRequest;
Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
WaitOperationRequest
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WaitOperationRequest message. Does not implicitly verify messages.
Parameter message
WaitOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly verify messages.
Parameter message
WaitOperationRequest message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.longrunning.WaitOperationRequest;
Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
WaitOperationRequest
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for WaitOperationRequest
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this WaitOperationRequest to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
Parameter message
WaitOperationRequest
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a WaitOperationRequest message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface ICancelOperationRequest
interface ICancelOperationRequest {}
Properties of a CancelOperationRequest.
property name
name?: string | null;
CancelOperationRequest name
interface IDeleteOperationRequest
interface IDeleteOperationRequest {}
Properties of a DeleteOperationRequest.
property name
name?: string | null;
DeleteOperationRequest name
interface IGetOperationRequest
interface IGetOperationRequest {}
Properties of a GetOperationRequest.
property name
name?: string | null;
GetOperationRequest name
interface IListOperationsRequest
interface IListOperationsRequest {}
Properties of a ListOperationsRequest.
interface IListOperationsResponse
interface IListOperationsResponse {}
Properties of a ListOperationsResponse.
property nextPageToken
nextPageToken?: string | null;
ListOperationsResponse nextPageToken
property operations
operations?: google.longrunning.IOperation[] | null;
ListOperationsResponse operations
interface IOperation
interface IOperation {}
Properties of an Operation.
property done
done?: boolean | null;
Operation done
property error
error?: google.rpc.IStatus | null;
Operation error
property metadata
metadata?: google.protobuf.IAny | null;
Operation metadata
property name
name?: string | null;
Operation name
property response
response?: google.protobuf.IAny | null;
Operation response
interface IOperationInfo
interface IOperationInfo {}
Properties of an OperationInfo.
property metadataType
metadataType?: string | null;
OperationInfo metadataType
property responseType
responseType?: string | null;
OperationInfo responseType
interface IWaitOperationRequest
interface IWaitOperationRequest {}
Properties of a WaitOperationRequest.
namespace protos.google.longrunning.Operations
namespace protos.google.longrunning.Operations {}
type CancelOperationCallback
type CancelOperationCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type DeleteOperationCallback
type DeleteOperationCallback = ( error: Error | null, response?: google.protobuf.Empty) => void;
type GetOperationCallback
type GetOperationCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
type ListOperationsCallback
type ListOperationsCallback = ( error: Error | null, response?: google.longrunning.ListOperationsResponse) => void;
Callback as used by listOperations.
Parameter error
Error, if any
Parameter response
ListOperationsResponse
type WaitOperationCallback
type WaitOperationCallback = ( error: Error | null, response?: google.longrunning.Operation) => void;
namespace protos.google.protobuf
namespace protos.google.protobuf {}
Namespace protobuf.
class Any
class Any implements IAny {}
Represents an Any.
constructor
constructor(properties?: IAny);
Constructs a new Any.
Parameter properties
Properties to set
property type_url
type_url: string;
Any type_url.
property value
value: string | Uint8Array;
Any value.
method create
static create: (properties?: google.protobuf.IAny) => google.protobuf.Any;
Creates a new Any instance using the specified properties.
Parameter properties
Properties to set
Returns
Any instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Any;
Decodes an Any message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Any
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Any;
Decodes an Any message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Any
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IAny, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Any message. Does not implicitly verify messages.
Parameter message
Any message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IAny, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Any message, length delimited. Does not implicitly verify messages.
Parameter message
Any message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Any;
Creates an Any message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Any
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Any
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Any to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Any, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Any message. Also converts values to other types if specified.
Parameter message
Any
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Any message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class DescriptorProto
class DescriptorProto implements IDescriptorProto {}
Represents a DescriptorProto.
constructor
constructor(properties?: IDescriptorProto);
Constructs a new DescriptorProto.
Parameter properties
Properties to set
property enumType
enumType: IEnumDescriptorProto[];
DescriptorProto enumType.
property extension
extension: IFieldDescriptorProto[];
DescriptorProto extension.
property extensionRange
extensionRange: DescriptorProto.IExtensionRange[];
DescriptorProto extensionRange.
property field
field: IFieldDescriptorProto[];
DescriptorProto field.
property name
name: string;
DescriptorProto name.
property nestedType
nestedType: IDescriptorProto[];
DescriptorProto nestedType.
property oneofDecl
oneofDecl: IOneofDescriptorProto[];
DescriptorProto oneofDecl.
property options
options?: IMessageOptions;
DescriptorProto options.
property reservedName
reservedName: string[];
DescriptorProto reservedName.
property reservedRange
reservedRange: DescriptorProto.IReservedRange[];
DescriptorProto reservedRange.
method create
static create: ( properties?: google.protobuf.IDescriptorProto) => google.protobuf.DescriptorProto;
Creates a new DescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
DescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.DescriptorProto;
Decodes a DescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
DescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.DescriptorProto;
Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
DescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DescriptorProto message. Does not implicitly verify messages.
Parameter message
DescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified DescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
DescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.DescriptorProto;
Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
DescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for DescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this DescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
Parameter message
DescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a DescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Duration
class Duration implements IDuration {}
Represents a Duration.
constructor
constructor(properties?: IDuration);
Constructs a new Duration.
Parameter properties
Properties to set
property nanos
nanos: number;
Duration nanos.
property seconds
seconds: any;
Duration seconds.
method create
static create: ( properties?: google.protobuf.IDuration) => google.protobuf.Duration;
Creates a new Duration instance using the specified properties.
Parameter properties
Properties to set
Returns
Duration instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Duration;
Decodes a Duration message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Duration
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Duration;
Decodes a Duration message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Duration
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IDuration, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Duration message. Does not implicitly verify messages.
Parameter message
Duration message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IDuration, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Duration message, length delimited. Does not implicitly verify messages.
Parameter message
Duration message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Duration;
Creates a Duration message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Duration
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Duration
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Duration to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Duration, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Duration message. Also converts values to other types if specified.
Parameter message
Duration
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Duration message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Empty
class Empty implements IEmpty {}
Represents an Empty.
constructor
constructor(properties?: IEmpty);
Constructs a new Empty.
Parameter properties
Properties to set
method create
static create: (properties?: google.protobuf.IEmpty) => google.protobuf.Empty;
Creates a new Empty instance using the specified properties.
Parameter properties
Properties to set
Returns
Empty instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Empty;
Decodes an Empty message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Empty
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Empty;
Decodes an Empty message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Empty
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IEmpty, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Empty message. Does not implicitly verify messages.
Parameter message
Empty message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IEmpty, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Empty message, length delimited. Does not implicitly verify messages.
Parameter message
Empty message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Empty;
Creates an Empty message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Empty
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Empty
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Empty to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Empty, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Empty message. Also converts values to other types if specified.
Parameter message
Empty
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Empty message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class EnumDescriptorProto
class EnumDescriptorProto implements IEnumDescriptorProto {}
Represents an EnumDescriptorProto.
constructor
constructor(properties?: IEnumDescriptorProto);
Constructs a new EnumDescriptorProto.
Parameter properties
Properties to set
property name
name: string;
EnumDescriptorProto name.
property options
options?: IEnumOptions;
EnumDescriptorProto options.
property reservedName
reservedName: string[];
EnumDescriptorProto reservedName.
property reservedRange
reservedRange: EnumDescriptorProto.IEnumReservedRange[];
EnumDescriptorProto reservedRange.
property value
value: IEnumValueDescriptorProto[];
EnumDescriptorProto value.
method create
static create: ( properties?: google.protobuf.IEnumDescriptorProto) => google.protobuf.EnumDescriptorProto;
Creates a new EnumDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
EnumDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.EnumDescriptorProto;
Decodes an EnumDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EnumDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.EnumDescriptorProto;
Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EnumDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumDescriptorProto message. Does not implicitly verify messages.
Parameter message
EnumDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
EnumDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.EnumDescriptorProto;
Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EnumDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EnumDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EnumDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
Parameter message
EnumDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EnumDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class EnumOptions
class EnumOptions implements IEnumOptions {}
Represents an EnumOptions.
constructor
constructor(properties?: IEnumOptions);
Constructs a new EnumOptions.
Parameter properties
Properties to set
property allowAlias
allowAlias: boolean;
EnumOptions allowAlias.
property deprecated
deprecated: boolean;
EnumOptions deprecated.
property deprecatedLegacyJsonFieldConflicts
deprecatedLegacyJsonFieldConflicts: boolean;
EnumOptions deprecatedLegacyJsonFieldConflicts.
property features
features?: IFeatureSet;
EnumOptions features.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
EnumOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IEnumOptions) => google.protobuf.EnumOptions;
Creates a new EnumOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
EnumOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.EnumOptions;
Decodes an EnumOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EnumOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.EnumOptions;
Decodes an EnumOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EnumOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumOptions message. Does not implicitly verify messages.
Parameter message
EnumOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumOptions message, length delimited. Does not implicitly verify messages.
Parameter message
EnumOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.EnumOptions;
Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EnumOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EnumOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EnumOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
Parameter message
EnumOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EnumOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class EnumValueDescriptorProto
class EnumValueDescriptorProto implements IEnumValueDescriptorProto {}
Represents an EnumValueDescriptorProto.
constructor
constructor(properties?: IEnumValueDescriptorProto);
Constructs a new EnumValueDescriptorProto.
Parameter properties
Properties to set
property name
name: string;
EnumValueDescriptorProto name.
property number
number: number;
EnumValueDescriptorProto number.
property options
options?: IEnumValueOptions;
EnumValueDescriptorProto options.
method create
static create: ( properties?: google.protobuf.IEnumValueDescriptorProto) => google.protobuf.EnumValueDescriptorProto;
Creates a new EnumValueDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
EnumValueDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.EnumValueDescriptorProto;
Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EnumValueDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.EnumValueDescriptorProto;
Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EnumValueDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumValueDescriptorProto message. Does not implicitly verify messages.
Parameter message
EnumValueDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
EnumValueDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.EnumValueDescriptorProto;
Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EnumValueDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EnumValueDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EnumValueDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
Parameter message
EnumValueDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EnumValueDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class EnumValueOptions
class EnumValueOptions implements IEnumValueOptions {}
Represents an EnumValueOptions.
constructor
constructor(properties?: IEnumValueOptions);
Constructs a new EnumValueOptions.
Parameter properties
Properties to set
property debugRedact
debugRedact: boolean;
EnumValueOptions debugRedact.
property deprecated
deprecated: boolean;
EnumValueOptions deprecated.
property features
features?: IFeatureSet;
EnumValueOptions features.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
EnumValueOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IEnumValueOptions) => google.protobuf.EnumValueOptions;
Creates a new EnumValueOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
EnumValueOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.EnumValueOptions;
Decodes an EnumValueOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EnumValueOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.EnumValueOptions;
Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EnumValueOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumValueOptions message. Does not implicitly verify messages.
Parameter message
EnumValueOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumValueOptions message, length delimited. Does not implicitly verify messages.
Parameter message
EnumValueOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.EnumValueOptions;
Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EnumValueOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EnumValueOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EnumValueOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
Parameter message
EnumValueOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EnumValueOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ExtensionRangeOptions
class ExtensionRangeOptions implements IExtensionRangeOptions {}
Represents an ExtensionRangeOptions.
constructor
constructor(properties?: IExtensionRangeOptions);
Constructs a new ExtensionRangeOptions.
Parameter properties
Properties to set
property declaration
declaration: ExtensionRangeOptions.IDeclaration[];
ExtensionRangeOptions declaration.
property features
features?: IFeatureSet;
ExtensionRangeOptions features.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
ExtensionRangeOptions uninterpretedOption.
property verification
verification: | ExtensionRangeOptions.VerificationState | 'DECLARATION' | 'UNVERIFIED';
ExtensionRangeOptions verification.
method create
static create: ( properties?: google.protobuf.IExtensionRangeOptions) => google.protobuf.ExtensionRangeOptions;
Creates a new ExtensionRangeOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
ExtensionRangeOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.ExtensionRangeOptions;
Decodes an ExtensionRangeOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ExtensionRangeOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.ExtensionRangeOptions;
Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ExtensionRangeOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ExtensionRangeOptions message. Does not implicitly verify messages.
Parameter message
ExtensionRangeOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly verify messages.
Parameter message
ExtensionRangeOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.ExtensionRangeOptions;
Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ExtensionRangeOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ExtensionRangeOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ExtensionRangeOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
Parameter message
ExtensionRangeOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an ExtensionRangeOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FeatureSet
class FeatureSet implements IFeatureSet {}
Represents a FeatureSet.
constructor
constructor(properties?: IFeatureSet);
Constructs a new FeatureSet.
Parameter properties
Properties to set
property enumType
enumType: FeatureSet.EnumType | 'ENUM_TYPE_UNKNOWN' | 'OPEN' | 'CLOSED';
FeatureSet enumType.
property fieldPresence
fieldPresence: | FeatureSet.FieldPresence | 'FIELD_PRESENCE_UNKNOWN' | 'EXPLICIT' | 'IMPLICIT' | 'LEGACY_REQUIRED';
FeatureSet fieldPresence.
property jsonFormat
jsonFormat: | FeatureSet.JsonFormat | 'JSON_FORMAT_UNKNOWN' | 'ALLOW' | 'LEGACY_BEST_EFFORT';
FeatureSet jsonFormat.
property messageEncoding
messageEncoding: | FeatureSet.MessageEncoding | 'MESSAGE_ENCODING_UNKNOWN' | 'LENGTH_PREFIXED' | 'DELIMITED';
FeatureSet messageEncoding.
property repeatedFieldEncoding
repeatedFieldEncoding: | FeatureSet.RepeatedFieldEncoding | 'REPEATED_FIELD_ENCODING_UNKNOWN' | 'PACKED' | 'EXPANDED';
FeatureSet repeatedFieldEncoding.
property utf8Validation
utf8Validation: | FeatureSet.Utf8Validation | 'UTF8_VALIDATION_UNKNOWN' | 'VERIFY' | 'NONE';
FeatureSet utf8Validation.
method create
static create: ( properties?: google.protobuf.IFeatureSet) => google.protobuf.FeatureSet;
Creates a new FeatureSet instance using the specified properties.
Parameter properties
Properties to set
Returns
FeatureSet instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FeatureSet;
Decodes a FeatureSet message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FeatureSet
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FeatureSet;
Decodes a FeatureSet message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FeatureSet
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSet message. Does not implicitly verify messages.
Parameter message
FeatureSet message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSet message, length delimited. Does not implicitly verify messages.
Parameter message
FeatureSet message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.FeatureSet;
Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FeatureSet
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FeatureSet
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FeatureSet to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
Parameter message
FeatureSet
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FeatureSet message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FeatureSetDefaults
class FeatureSetDefaults implements IFeatureSetDefaults {}
Represents a FeatureSetDefaults.
constructor
constructor(properties?: IFeatureSetDefaults);
Constructs a new FeatureSetDefaults.
Parameter properties
Properties to set
property defaults
defaults: FeatureSetDefaults.IFeatureSetEditionDefault[];
FeatureSetDefaults defaults.
property maximumEdition
maximumEdition: | Edition | 'EDITION_UNKNOWN' | 'EDITION_PROTO2' | 'EDITION_PROTO3' | 'EDITION_2023' | 'EDITION_2024' | 'EDITION_1_TEST_ONLY' | 'EDITION_2_TEST_ONLY' | 'EDITION_99997_TEST_ONLY' | 'EDITION_99998_TEST_ONLY' | 'EDITION_99999_TEST_ONLY' | 'EDITION_MAX';
FeatureSetDefaults maximumEdition.
property minimumEdition
minimumEdition: | Edition | 'EDITION_UNKNOWN' | 'EDITION_PROTO2' | 'EDITION_PROTO3' | 'EDITION_2023' | 'EDITION_2024' | 'EDITION_1_TEST_ONLY' | 'EDITION_2_TEST_ONLY' | 'EDITION_99997_TEST_ONLY' | 'EDITION_99998_TEST_ONLY' | 'EDITION_99999_TEST_ONLY' | 'EDITION_MAX';
FeatureSetDefaults minimumEdition.
method create
static create: ( properties?: google.protobuf.IFeatureSetDefaults) => google.protobuf.FeatureSetDefaults;
Creates a new FeatureSetDefaults instance using the specified properties.
Parameter properties
Properties to set
Returns
FeatureSetDefaults instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FeatureSetDefaults;
Decodes a FeatureSetDefaults message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FeatureSetDefaults
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FeatureSetDefaults;
Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FeatureSetDefaults
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSetDefaults message. Does not implicitly verify messages.
Parameter message
FeatureSetDefaults message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly verify messages.
Parameter message
FeatureSetDefaults message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FeatureSetDefaults;
Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FeatureSetDefaults
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FeatureSetDefaults
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FeatureSetDefaults to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
Parameter message
FeatureSetDefaults
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FeatureSetDefaults message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FieldDescriptorProto
class FieldDescriptorProto implements IFieldDescriptorProto {}
Represents a FieldDescriptorProto.
constructor
constructor(properties?: IFieldDescriptorProto);
Constructs a new FieldDescriptorProto.
Parameter properties
Properties to set
property defaultValue
defaultValue: string;
FieldDescriptorProto defaultValue.
property extendee
extendee: string;
FieldDescriptorProto extendee.
property jsonName
jsonName: string;
FieldDescriptorProto jsonName.
property label
label: | FieldDescriptorProto.Label | 'LABEL_OPTIONAL' | 'LABEL_REPEATED' | 'LABEL_REQUIRED';
FieldDescriptorProto label.
property name
name: string;
FieldDescriptorProto name.
property number
number: number;
FieldDescriptorProto number.
property oneofIndex
oneofIndex: number;
FieldDescriptorProto oneofIndex.
property options
options?: IFieldOptions;
FieldDescriptorProto options.
property proto3Optional
proto3Optional: boolean;
FieldDescriptorProto proto3Optional.
property type
type: | FieldDescriptorProto.Type | 'TYPE_DOUBLE' | 'TYPE_FLOAT' | 'TYPE_INT64' | 'TYPE_UINT64' | 'TYPE_INT32' | 'TYPE_FIXED64' | 'TYPE_FIXED32' | 'TYPE_BOOL' | 'TYPE_STRING' | 'TYPE_GROUP' | 'TYPE_MESSAGE' | 'TYPE_BYTES' | 'TYPE_UINT32' | 'TYPE_ENUM' | 'TYPE_SFIXED32' | 'TYPE_SFIXED64' | 'TYPE_SINT32' | 'TYPE_SINT64';
FieldDescriptorProto type.
property typeName
typeName: string;
FieldDescriptorProto typeName.
method create
static create: ( properties?: google.protobuf.IFieldDescriptorProto) => google.protobuf.FieldDescriptorProto;
Creates a new FieldDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
FieldDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FieldDescriptorProto;
Decodes a FieldDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FieldDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FieldDescriptorProto;
Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FieldDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldDescriptorProto message. Does not implicitly verify messages.
Parameter message
FieldDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
FieldDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FieldDescriptorProto;
Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FieldDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FieldDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FieldDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
Parameter message
FieldDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FieldDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FieldMask
class FieldMask implements IFieldMask {}
Represents a FieldMask.
constructor
constructor(properties?: IFieldMask);
Constructs a new FieldMask.
Parameter properties
Properties to set
property paths
paths: string[];
FieldMask paths.
method create
static create: ( properties?: google.protobuf.IFieldMask) => google.protobuf.FieldMask;
Creates a new FieldMask instance using the specified properties.
Parameter properties
Properties to set
Returns
FieldMask instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FieldMask;
Decodes a FieldMask message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FieldMask
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FieldMask;
Decodes a FieldMask message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FieldMask
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFieldMask, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldMask message. Does not implicitly verify messages.
Parameter message
FieldMask message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFieldMask, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldMask message, length delimited. Does not implicitly verify messages.
Parameter message
FieldMask message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.FieldMask;
Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FieldMask
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FieldMask
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FieldMask to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FieldMask message. Also converts values to other types if specified.
Parameter message
FieldMask
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FieldMask message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FieldOptions
class FieldOptions implements IFieldOptions {}
Represents a FieldOptions.
constructor
constructor(properties?: IFieldOptions);
Constructs a new FieldOptions.
Parameter properties
Properties to set
property ctype
ctype: FieldOptions.CType | 'STRING' | 'CORD' | 'STRING_PIECE';
FieldOptions ctype.
property debugRedact
debugRedact: boolean;
FieldOptions debugRedact.
property deprecated
deprecated: boolean;
FieldOptions deprecated.
property editionDefaults
editionDefaults: FieldOptions.IEditionDefault[];
FieldOptions editionDefaults.
property features
features?: IFeatureSet;
FieldOptions features.
property jstype
jstype: FieldOptions.JSType | 'JS_NORMAL' | 'JS_STRING' | 'JS_NUMBER';
FieldOptions jstype.
property lazy
lazy: boolean;
FieldOptions lazy.
property packed
packed: boolean;
FieldOptions packed.
property retention
retention: | FieldOptions.OptionRetention | 'RETENTION_UNKNOWN' | 'RETENTION_RUNTIME' | 'RETENTION_SOURCE';
FieldOptions retention.
property targets
targets: FieldOptions.OptionTargetType[];
FieldOptions targets.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
FieldOptions uninterpretedOption.
property unverifiedLazy
unverifiedLazy: boolean;
FieldOptions unverifiedLazy.
property weak
weak: boolean;
FieldOptions weak.
method create
static create: ( properties?: google.protobuf.IFieldOptions) => google.protobuf.FieldOptions;
Creates a new FieldOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
FieldOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FieldOptions;
Decodes a FieldOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FieldOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FieldOptions;
Decodes a FieldOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FieldOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldOptions message. Does not implicitly verify messages.
Parameter message
FieldOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FieldOptions message, length delimited. Does not implicitly verify messages.
Parameter message
FieldOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FieldOptions;
Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FieldOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FieldOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FieldOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
Parameter message
FieldOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FieldOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FileDescriptorProto
class FileDescriptorProto implements IFileDescriptorProto {}
Represents a FileDescriptorProto.
constructor
constructor(properties?: IFileDescriptorProto);
Constructs a new FileDescriptorProto.
Parameter properties
Properties to set
property dependency
dependency: string[];
FileDescriptorProto dependency.
property edition
edition: | Edition | 'EDITION_UNKNOWN' | 'EDITION_PROTO2' | 'EDITION_PROTO3' | 'EDITION_2023' | 'EDITION_2024' | 'EDITION_1_TEST_ONLY' | 'EDITION_2_TEST_ONLY' | 'EDITION_99997_TEST_ONLY' | 'EDITION_99998_TEST_ONLY' | 'EDITION_99999_TEST_ONLY' | 'EDITION_MAX';
FileDescriptorProto edition.
property enumType
enumType: IEnumDescriptorProto[];
FileDescriptorProto enumType.
property extension
extension: IFieldDescriptorProto[];
FileDescriptorProto extension.
property messageType
messageType: IDescriptorProto[];
FileDescriptorProto messageType.
property name
name: string;
FileDescriptorProto name.
property options
options?: IFileOptions;
FileDescriptorProto options.
property package
package: string;
FileDescriptorProto package.
property publicDependency
publicDependency: number[];
FileDescriptorProto publicDependency.
property service
service: IServiceDescriptorProto[];
FileDescriptorProto service.
property sourceCodeInfo
sourceCodeInfo?: ISourceCodeInfo;
FileDescriptorProto sourceCodeInfo.
property syntax
syntax: string;
FileDescriptorProto syntax.
property weakDependency
weakDependency: number[];
FileDescriptorProto weakDependency.
method create
static create: ( properties?: google.protobuf.IFileDescriptorProto) => google.protobuf.FileDescriptorProto;
Creates a new FileDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
FileDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FileDescriptorProto;
Decodes a FileDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FileDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FileDescriptorProto;
Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FileDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileDescriptorProto message. Does not implicitly verify messages.
Parameter message
FileDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
FileDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FileDescriptorProto;
Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FileDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FileDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FileDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
Parameter message
FileDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FileDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FileDescriptorSet
class FileDescriptorSet implements IFileDescriptorSet {}
Represents a FileDescriptorSet.
constructor
constructor(properties?: IFileDescriptorSet);
Constructs a new FileDescriptorSet.
Parameter properties
Properties to set
property file
file: IFileDescriptorProto[];
FileDescriptorSet file.
method create
static create: ( properties?: google.protobuf.IFileDescriptorSet) => google.protobuf.FileDescriptorSet;
Creates a new FileDescriptorSet instance using the specified properties.
Parameter properties
Properties to set
Returns
FileDescriptorSet instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FileDescriptorSet;
Decodes a FileDescriptorSet message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FileDescriptorSet
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FileDescriptorSet;
Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FileDescriptorSet
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileDescriptorSet message. Does not implicitly verify messages.
Parameter message
FileDescriptorSet message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly verify messages.
Parameter message
FileDescriptorSet message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FileDescriptorSet;
Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FileDescriptorSet
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FileDescriptorSet
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FileDescriptorSet to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
Parameter message
FileDescriptorSet
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FileDescriptorSet message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class FileOptions
class FileOptions implements IFileOptions {}
Represents a FileOptions.
constructor
constructor(properties?: IFileOptions);
Constructs a new FileOptions.
Parameter properties
Properties to set
property ccEnableArenas
ccEnableArenas: boolean;
FileOptions ccEnableArenas.
property ccGenericServices
ccGenericServices: boolean;
FileOptions ccGenericServices.
property csharpNamespace
csharpNamespace: string;
FileOptions csharpNamespace.
property deprecated
deprecated: boolean;
FileOptions deprecated.
property features
features?: IFeatureSet;
FileOptions features.
property goPackage
goPackage: string;
FileOptions goPackage.
property javaGenerateEqualsAndHash
javaGenerateEqualsAndHash: boolean;
FileOptions javaGenerateEqualsAndHash.
property javaGenericServices
javaGenericServices: boolean;
FileOptions javaGenericServices.
property javaMultipleFiles
javaMultipleFiles: boolean;
FileOptions javaMultipleFiles.
property javaOuterClassname
javaOuterClassname: string;
FileOptions javaOuterClassname.
property javaPackage
javaPackage: string;
FileOptions javaPackage.
property javaStringCheckUtf8
javaStringCheckUtf8: boolean;
FileOptions javaStringCheckUtf8.
property objcClassPrefix
objcClassPrefix: string;
FileOptions objcClassPrefix.
property optimizeFor
optimizeFor: FileOptions.OptimizeMode | 'SPEED' | 'CODE_SIZE' | 'LITE_RUNTIME';
FileOptions optimizeFor.
property phpClassPrefix
phpClassPrefix: string;
FileOptions phpClassPrefix.
property phpMetadataNamespace
phpMetadataNamespace: string;
FileOptions phpMetadataNamespace.
property phpNamespace
phpNamespace: string;
FileOptions phpNamespace.
property pyGenericServices
pyGenericServices: boolean;
FileOptions pyGenericServices.
property rubyPackage
rubyPackage: string;
FileOptions rubyPackage.
property swiftPrefix
swiftPrefix: string;
FileOptions swiftPrefix.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
FileOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IFileOptions) => google.protobuf.FileOptions;
Creates a new FileOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
FileOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FileOptions;
Decodes a FileOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FileOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FileOptions;
Decodes a FileOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FileOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IFileOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileOptions message. Does not implicitly verify messages.
Parameter message
FileOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IFileOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FileOptions message, length delimited. Does not implicitly verify messages.
Parameter message
FileOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.FileOptions;
Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FileOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FileOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FileOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FileOptions message. Also converts values to other types if specified.
Parameter message
FileOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FileOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class GeneratedCodeInfo
class GeneratedCodeInfo implements IGeneratedCodeInfo {}
Represents a GeneratedCodeInfo.
constructor
constructor(properties?: IGeneratedCodeInfo);
Constructs a new GeneratedCodeInfo.
Parameter properties
Properties to set
property annotation
annotation: GeneratedCodeInfo.IAnnotation[];
GeneratedCodeInfo annotation.
method create
static create: ( properties?: google.protobuf.IGeneratedCodeInfo) => google.protobuf.GeneratedCodeInfo;
Creates a new GeneratedCodeInfo instance using the specified properties.
Parameter properties
Properties to set
Returns
GeneratedCodeInfo instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.GeneratedCodeInfo;
Decodes a GeneratedCodeInfo message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
GeneratedCodeInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.GeneratedCodeInfo;
Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
GeneratedCodeInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GeneratedCodeInfo message. Does not implicitly verify messages.
Parameter message
GeneratedCodeInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly verify messages.
Parameter message
GeneratedCodeInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.GeneratedCodeInfo;
Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
GeneratedCodeInfo
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for GeneratedCodeInfo
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this GeneratedCodeInfo to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
Parameter message
GeneratedCodeInfo
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a GeneratedCodeInfo message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ListValue
class ListValue implements IListValue {}
Represents a ListValue.
constructor
constructor(properties?: IListValue);
Constructs a new ListValue.
Parameter properties
Properties to set
property values
values: IValue[];
ListValue values.
method create
static create: ( properties?: google.protobuf.IListValue) => google.protobuf.ListValue;
Creates a new ListValue instance using the specified properties.
Parameter properties
Properties to set
Returns
ListValue instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.ListValue;
Decodes a ListValue message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ListValue
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.ListValue;
Decodes a ListValue message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ListValue
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IListValue, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListValue message. Does not implicitly verify messages.
Parameter message
ListValue message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IListValue, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ListValue message, length delimited. Does not implicitly verify messages.
Parameter message
ListValue message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.ListValue;
Creates a ListValue message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ListValue
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ListValue
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ListValue to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ListValue message. Also converts values to other types if specified.
Parameter message
ListValue
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ListValue message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MessageOptions
class MessageOptions implements IMessageOptions {}
Represents a MessageOptions.
constructor
constructor(properties?: IMessageOptions);
Constructs a new MessageOptions.
Parameter properties
Properties to set
property deprecated
deprecated: boolean;
MessageOptions deprecated.
property deprecatedLegacyJsonFieldConflicts
deprecatedLegacyJsonFieldConflicts: boolean;
MessageOptions deprecatedLegacyJsonFieldConflicts.
property features
features?: IFeatureSet;
MessageOptions features.
property mapEntry
mapEntry: boolean;
MessageOptions mapEntry.
property messageSetWireFormat
messageSetWireFormat: boolean;
MessageOptions messageSetWireFormat.
property noStandardDescriptorAccessor
noStandardDescriptorAccessor: boolean;
MessageOptions noStandardDescriptorAccessor.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
MessageOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IMessageOptions) => google.protobuf.MessageOptions;
Creates a new MessageOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
MessageOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.MessageOptions;
Decodes a MessageOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MessageOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.MessageOptions;
Decodes a MessageOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MessageOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MessageOptions message. Does not implicitly verify messages.
Parameter message
MessageOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MessageOptions message, length delimited. Does not implicitly verify messages.
Parameter message
MessageOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.MessageOptions;
Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MessageOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MessageOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MessageOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
Parameter message
MessageOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MessageOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MethodDescriptorProto
class MethodDescriptorProto implements IMethodDescriptorProto {}
Represents a MethodDescriptorProto.
constructor
constructor(properties?: IMethodDescriptorProto);
Constructs a new MethodDescriptorProto.
Parameter properties
Properties to set
property clientStreaming
clientStreaming: boolean;
MethodDescriptorProto clientStreaming.
property inputType
inputType: string;
MethodDescriptorProto inputType.
property name
name: string;
MethodDescriptorProto name.
property options
options?: IMethodOptions;
MethodDescriptorProto options.
property outputType
outputType: string;
MethodDescriptorProto outputType.
property serverStreaming
serverStreaming: boolean;
MethodDescriptorProto serverStreaming.
method create
static create: ( properties?: google.protobuf.IMethodDescriptorProto) => google.protobuf.MethodDescriptorProto;
Creates a new MethodDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
MethodDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.MethodDescriptorProto;
Decodes a MethodDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MethodDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.MethodDescriptorProto;
Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MethodDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodDescriptorProto message. Does not implicitly verify messages.
Parameter message
MethodDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
MethodDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.MethodDescriptorProto;
Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MethodDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MethodDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MethodDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
Parameter message
MethodDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MethodDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class MethodOptions
class MethodOptions implements IMethodOptions {}
Represents a MethodOptions.
constructor
constructor(properties?: IMethodOptions);
Constructs a new MethodOptions.
Parameter properties
Properties to set
property deprecated
deprecated: boolean;
MethodOptions deprecated.
property features
features?: IFeatureSet;
MethodOptions features.
property idempotencyLevel
idempotencyLevel: | MethodOptions.IdempotencyLevel | 'IDEMPOTENCY_UNKNOWN' | 'NO_SIDE_EFFECTS' | 'IDEMPOTENT';
MethodOptions idempotencyLevel.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
MethodOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IMethodOptions) => google.protobuf.MethodOptions;
Creates a new MethodOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
MethodOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.MethodOptions;
Decodes a MethodOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
MethodOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.MethodOptions;
Decodes a MethodOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
MethodOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodOptions message. Does not implicitly verify messages.
Parameter message
MethodOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified MethodOptions message, length delimited. Does not implicitly verify messages.
Parameter message
MethodOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.MethodOptions;
Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
MethodOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for MethodOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this MethodOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
Parameter message
MethodOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a MethodOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class OneofDescriptorProto
class OneofDescriptorProto implements IOneofDescriptorProto {}
Represents an OneofDescriptorProto.
constructor
constructor(properties?: IOneofDescriptorProto);
Constructs a new OneofDescriptorProto.
Parameter properties
Properties to set
property name
name: string;
OneofDescriptorProto name.
property options
options?: IOneofOptions;
OneofDescriptorProto options.
method create
static create: ( properties?: google.protobuf.IOneofDescriptorProto) => google.protobuf.OneofDescriptorProto;
Creates a new OneofDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
OneofDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.OneofDescriptorProto;
Decodes an OneofDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
OneofDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.OneofDescriptorProto;
Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
OneofDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OneofDescriptorProto message. Does not implicitly verify messages.
Parameter message
OneofDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
OneofDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.OneofDescriptorProto;
Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
OneofDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for OneofDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this OneofDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
Parameter message
OneofDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an OneofDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class OneofOptions
class OneofOptions implements IOneofOptions {}
Represents an OneofOptions.
constructor
constructor(properties?: IOneofOptions);
Constructs a new OneofOptions.
Parameter properties
Properties to set
property features
features?: IFeatureSet;
OneofOptions features.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
OneofOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IOneofOptions) => google.protobuf.OneofOptions;
Creates a new OneofOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
OneofOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.OneofOptions;
Decodes an OneofOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
OneofOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.OneofOptions;
Decodes an OneofOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
OneofOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OneofOptions message. Does not implicitly verify messages.
Parameter message
OneofOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified OneofOptions message, length delimited. Does not implicitly verify messages.
Parameter message
OneofOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.OneofOptions;
Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
OneofOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for OneofOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this OneofOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
Parameter message
OneofOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an OneofOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ServiceDescriptorProto
class ServiceDescriptorProto implements IServiceDescriptorProto {}
Represents a ServiceDescriptorProto.
constructor
constructor(properties?: IServiceDescriptorProto);
Constructs a new ServiceDescriptorProto.
Parameter properties
Properties to set
property method
method: IMethodDescriptorProto[];
ServiceDescriptorProto method.
property name
name: string;
ServiceDescriptorProto name.
property options
options?: IServiceOptions;
ServiceDescriptorProto options.
method create
static create: ( properties?: google.protobuf.IServiceDescriptorProto) => google.protobuf.ServiceDescriptorProto;
Creates a new ServiceDescriptorProto instance using the specified properties.
Parameter properties
Properties to set
Returns
ServiceDescriptorProto instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.ServiceDescriptorProto;
Decodes a ServiceDescriptorProto message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ServiceDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.ServiceDescriptorProto;
Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ServiceDescriptorProto
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ServiceDescriptorProto message. Does not implicitly verify messages.
Parameter message
ServiceDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly verify messages.
Parameter message
ServiceDescriptorProto message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.ServiceDescriptorProto;
Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ServiceDescriptorProto
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ServiceDescriptorProto
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ServiceDescriptorProto to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
Parameter message
ServiceDescriptorProto
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ServiceDescriptorProto message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ServiceOptions
class ServiceOptions implements IServiceOptions {}
Represents a ServiceOptions.
constructor
constructor(properties?: IServiceOptions);
Constructs a new ServiceOptions.
Parameter properties
Properties to set
property deprecated
deprecated: boolean;
ServiceOptions deprecated.
property features
features?: IFeatureSet;
ServiceOptions features.
property uninterpretedOption
uninterpretedOption: IUninterpretedOption[];
ServiceOptions uninterpretedOption.
method create
static create: ( properties?: google.protobuf.IServiceOptions) => google.protobuf.ServiceOptions;
Creates a new ServiceOptions instance using the specified properties.
Parameter properties
Properties to set
Returns
ServiceOptions instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.ServiceOptions;
Decodes a ServiceOptions message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ServiceOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.ServiceOptions;
Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ServiceOptions
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ServiceOptions message. Does not implicitly verify messages.
Parameter message
ServiceOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ServiceOptions message, length delimited. Does not implicitly verify messages.
Parameter message
ServiceOptions message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.ServiceOptions;
Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ServiceOptions
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ServiceOptions
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ServiceOptions to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
Parameter message
ServiceOptions
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ServiceOptions message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class SourceCodeInfo
class SourceCodeInfo implements ISourceCodeInfo {}
Represents a SourceCodeInfo.
constructor
constructor(properties?: ISourceCodeInfo);
Constructs a new SourceCodeInfo.
Parameter properties
Properties to set
property location
location: SourceCodeInfo.ILocation[];
SourceCodeInfo location.
method create
static create: ( properties?: google.protobuf.ISourceCodeInfo) => google.protobuf.SourceCodeInfo;
Creates a new SourceCodeInfo instance using the specified properties.
Parameter properties
Properties to set
Returns
SourceCodeInfo instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.SourceCodeInfo;
Decodes a SourceCodeInfo message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
SourceCodeInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.SourceCodeInfo;
Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
SourceCodeInfo
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified SourceCodeInfo message. Does not implicitly verify messages.
Parameter message
SourceCodeInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly verify messages.
Parameter message
SourceCodeInfo message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.SourceCodeInfo;
Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
SourceCodeInfo
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for SourceCodeInfo
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this SourceCodeInfo to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
Parameter message
SourceCodeInfo
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a SourceCodeInfo message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Struct
class Struct implements IStruct {}
Represents a Struct.
constructor
constructor(properties?: IStruct);
Constructs a new Struct.
Parameter properties
Properties to set
property fields
fields: { [k: string]: IValue };
Struct fields.
method create
static create: (properties?: google.protobuf.IStruct) => google.protobuf.Struct;
Creates a new Struct instance using the specified properties.
Parameter properties
Properties to set
Returns
Struct instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Struct;
Decodes a Struct message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Struct
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Struct;
Decodes a Struct message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Struct
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IStruct, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Struct message. Does not implicitly verify messages.
Parameter message
Struct message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IStruct, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Struct message, length delimited. Does not implicitly verify messages.
Parameter message
Struct message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Struct;
Creates a Struct message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Struct
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Struct
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Struct to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Struct, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Struct message. Also converts values to other types if specified.
Parameter message
Struct
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Struct message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Timestamp
class Timestamp implements ITimestamp {}
Represents a Timestamp.
constructor
constructor(properties?: ITimestamp);
Constructs a new Timestamp.
Parameter properties
Properties to set
property nanos
nanos: number;
Timestamp nanos.
property seconds
seconds: any;
Timestamp seconds.
method create
static create: ( properties?: google.protobuf.ITimestamp) => google.protobuf.Timestamp;
Creates a new Timestamp instance using the specified properties.
Parameter properties
Properties to set
Returns
Timestamp instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Timestamp;
Decodes a Timestamp message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Timestamp
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Timestamp;
Decodes a Timestamp message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Timestamp
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.ITimestamp, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Timestamp message. Does not implicitly verify messages.
Parameter message
Timestamp message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.ITimestamp, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Timestamp message, length delimited. Does not implicitly verify messages.
Parameter message
Timestamp message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Timestamp;
Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Timestamp
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Timestamp
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Timestamp to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Timestamp message. Also converts values to other types if specified.
Parameter message
Timestamp
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Timestamp message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class UninterpretedOption
class UninterpretedOption implements IUninterpretedOption {}
Represents an UninterpretedOption.
constructor
constructor(properties?: IUninterpretedOption);
Constructs a new UninterpretedOption.
Parameter properties
Properties to set
property aggregateValue
aggregateValue: string;
UninterpretedOption aggregateValue.
property doubleValue
doubleValue: number;
UninterpretedOption doubleValue.
property identifierValue
identifierValue: string;
UninterpretedOption identifierValue.
property name
name: UninterpretedOption.INamePart[];
UninterpretedOption name.
property negativeIntValue
negativeIntValue: any;
UninterpretedOption negativeIntValue.
property positiveIntValue
positiveIntValue: any;
UninterpretedOption positiveIntValue.
property stringValue
stringValue: string | Uint8Array;
UninterpretedOption stringValue.
method create
static create: ( properties?: google.protobuf.IUninterpretedOption) => google.protobuf.UninterpretedOption;
Creates a new UninterpretedOption instance using the specified properties.
Parameter properties
Properties to set
Returns
UninterpretedOption instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.UninterpretedOption;
Decodes an UninterpretedOption message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
UninterpretedOption
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.UninterpretedOption;
Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
UninterpretedOption
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UninterpretedOption message. Does not implicitly verify messages.
Parameter message
UninterpretedOption message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified UninterpretedOption message, length delimited. Does not implicitly verify messages.
Parameter message
UninterpretedOption message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.UninterpretedOption;
Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
UninterpretedOption
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for UninterpretedOption
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this UninterpretedOption to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
Parameter message
UninterpretedOption
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an UninterpretedOption message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class Value
class Value implements IValue {}
Represents a Value.
constructor
constructor(properties?: IValue);
Constructs a new Value.
Parameter properties
Properties to set
property boolValue
boolValue?: boolean;
Value boolValue.
property kind
kind?: | 'nullValue' | 'numberValue' | 'stringValue' | 'boolValue' | 'structValue' | 'listValue';
Value kind.
property listValue
listValue?: IListValue;
Value listValue.
property nullValue
nullValue?: NullValue | 'NULL_VALUE';
Value nullValue.
property numberValue
numberValue?: number;
Value numberValue.
property stringValue
stringValue?: string;
Value stringValue.
property structValue
structValue?: IStruct;
Value structValue.
method create
static create: (properties?: google.protobuf.IValue) => google.protobuf.Value;
Creates a new Value instance using the specified properties.
Parameter properties
Properties to set
Returns
Value instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.Value;
Decodes a Value message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Value
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.Value;
Decodes a Value message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Value
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.IValue, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Value message. Does not implicitly verify messages.
Parameter message
Value message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.IValue, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Value message, length delimited. Does not implicitly verify messages.
Parameter message
Value message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.protobuf.Value;
Creates a Value message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Value
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Value
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Value to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.Value, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Value message. Also converts values to other types if specified.
Parameter message
Value
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Value message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IAny
interface IAny {}
Properties of an Any.
interface IDescriptorProto
interface IDescriptorProto {}
Properties of a DescriptorProto.
property enumType
enumType?: google.protobuf.IEnumDescriptorProto[] | null;
DescriptorProto enumType
property extension
extension?: google.protobuf.IFieldDescriptorProto[] | null;
DescriptorProto extension
property extensionRange
extensionRange?: google.protobuf.DescriptorProto.IExtensionRange[] | null;
DescriptorProto extensionRange
property field
field?: google.protobuf.IFieldDescriptorProto[] | null;
DescriptorProto field
property name
name?: string | null;
DescriptorProto name
property nestedType
nestedType?: google.protobuf.IDescriptorProto[] | null;
DescriptorProto nestedType
property oneofDecl
oneofDecl?: google.protobuf.IOneofDescriptorProto[] | null;
DescriptorProto oneofDecl
property options
options?: google.protobuf.IMessageOptions | null;
DescriptorProto options
property reservedName
reservedName?: string[] | null;
DescriptorProto reservedName
property reservedRange
reservedRange?: google.protobuf.DescriptorProto.IReservedRange[] | null;
DescriptorProto reservedRange
interface IDuration
interface IDuration {}
Properties of a Duration.
interface IEmpty
interface IEmpty {}
Properties of an Empty.
interface IEnumDescriptorProto
interface IEnumDescriptorProto {}
Properties of an EnumDescriptorProto.
property name
name?: string | null;
EnumDescriptorProto name
property options
options?: google.protobuf.IEnumOptions | null;
EnumDescriptorProto options
property reservedName
reservedName?: string[] | null;
EnumDescriptorProto reservedName
property reservedRange
reservedRange?: google.protobuf.EnumDescriptorProto.IEnumReservedRange[] | null;
EnumDescriptorProto reservedRange
property value
value?: google.protobuf.IEnumValueDescriptorProto[] | null;
EnumDescriptorProto value
interface IEnumOptions
interface IEnumOptions {}
Properties of an EnumOptions.
property allowAlias
allowAlias?: boolean | null;
EnumOptions allowAlias
property deprecated
deprecated?: boolean | null;
EnumOptions deprecated
property deprecatedLegacyJsonFieldConflicts
deprecatedLegacyJsonFieldConflicts?: boolean | null;
EnumOptions deprecatedLegacyJsonFieldConflicts
property features
features?: google.protobuf.IFeatureSet | null;
EnumOptions features
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
EnumOptions uninterpretedOption
interface IEnumValueDescriptorProto
interface IEnumValueDescriptorProto {}
Properties of an EnumValueDescriptorProto.
interface IEnumValueOptions
interface IEnumValueOptions {}
Properties of an EnumValueOptions.
property debugRedact
debugRedact?: boolean | null;
EnumValueOptions debugRedact
property deprecated
deprecated?: boolean | null;
EnumValueOptions deprecated
property features
features?: google.protobuf.IFeatureSet | null;
EnumValueOptions features
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
EnumValueOptions uninterpretedOption
interface IExtensionRangeOptions
interface IExtensionRangeOptions {}
Properties of an ExtensionRangeOptions.
property declaration
declaration?: google.protobuf.ExtensionRangeOptions.IDeclaration[] | null;
ExtensionRangeOptions declaration
property features
features?: google.protobuf.IFeatureSet | null;
ExtensionRangeOptions features
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
ExtensionRangeOptions uninterpretedOption
property verification
verification?: | google.protobuf.ExtensionRangeOptions.VerificationState | keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState | null;
ExtensionRangeOptions verification
interface IFeatureSet
interface IFeatureSet {}
Properties of a FeatureSet.
property enumType
enumType?: | google.protobuf.FeatureSet.EnumType | keyof typeof google.protobuf.FeatureSet.EnumType | null;
FeatureSet enumType
property fieldPresence
fieldPresence?: | google.protobuf.FeatureSet.FieldPresence | keyof typeof google.protobuf.FeatureSet.FieldPresence | null;
FeatureSet fieldPresence
property jsonFormat
jsonFormat?: | google.protobuf.FeatureSet.JsonFormat | keyof typeof google.protobuf.FeatureSet.JsonFormat | null;
FeatureSet jsonFormat
property messageEncoding
messageEncoding?: | google.protobuf.FeatureSet.MessageEncoding | keyof typeof google.protobuf.FeatureSet.MessageEncoding | null;
FeatureSet messageEncoding
property repeatedFieldEncoding
repeatedFieldEncoding?: | google.protobuf.FeatureSet.RepeatedFieldEncoding | keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding | null;
FeatureSet repeatedFieldEncoding
property utf8Validation
utf8Validation?: | google.protobuf.FeatureSet.Utf8Validation | keyof typeof google.protobuf.FeatureSet.Utf8Validation | null;
FeatureSet utf8Validation
interface IFeatureSetDefaults
interface IFeatureSetDefaults {}
Properties of a FeatureSetDefaults.
property defaults
defaults?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[] | null;
FeatureSetDefaults defaults
property maximumEdition
maximumEdition?: | google.protobuf.Edition | keyof typeof google.protobuf.Edition | null;
FeatureSetDefaults maximumEdition
property minimumEdition
minimumEdition?: | google.protobuf.Edition | keyof typeof google.protobuf.Edition | null;
FeatureSetDefaults minimumEdition
interface IFieldDescriptorProto
interface IFieldDescriptorProto {}
Properties of a FieldDescriptorProto.
property defaultValue
defaultValue?: string | null;
FieldDescriptorProto defaultValue
property extendee
extendee?: string | null;
FieldDescriptorProto extendee
property jsonName
jsonName?: string | null;
FieldDescriptorProto jsonName
property label
label?: | google.protobuf.FieldDescriptorProto.Label | keyof typeof google.protobuf.FieldDescriptorProto.Label | null;
FieldDescriptorProto label
property name
name?: string | null;
FieldDescriptorProto name
property number
number?: number | null;
FieldDescriptorProto number
property oneofIndex
oneofIndex?: number | null;
FieldDescriptorProto oneofIndex
property options
options?: google.protobuf.IFieldOptions | null;
FieldDescriptorProto options
property proto3Optional
proto3Optional?: boolean | null;
FieldDescriptorProto proto3Optional
property type
type?: | google.protobuf.FieldDescriptorProto.Type | keyof typeof google.protobuf.FieldDescriptorProto.Type | null;
FieldDescriptorProto type
property typeName
typeName?: string | null;
FieldDescriptorProto typeName
interface IFieldMask
interface IFieldMask {}
Properties of a FieldMask.
property paths
paths?: string[] | null;
FieldMask paths
interface IFieldOptions
interface IFieldOptions {}
Properties of a FieldOptions.
property ".google.api.fieldBehavior"
'.google.api.fieldBehavior'?: google.api.FieldBehavior[] | null;
FieldOptions .google.api.fieldBehavior
property ".google.api.resourceReference"
'.google.api.resourceReference'?: google.api.IResourceReference | null;
FieldOptions .google.api.resourceReference
property ctype
ctype?: | google.protobuf.FieldOptions.CType | keyof typeof google.protobuf.FieldOptions.CType | null;
FieldOptions ctype
property debugRedact
debugRedact?: boolean | null;
FieldOptions debugRedact
property deprecated
deprecated?: boolean | null;
FieldOptions deprecated
property editionDefaults
editionDefaults?: google.protobuf.FieldOptions.IEditionDefault[] | null;
FieldOptions editionDefaults
property features
features?: google.protobuf.IFeatureSet | null;
FieldOptions features
property jstype
jstype?: | google.protobuf.FieldOptions.JSType | keyof typeof google.protobuf.FieldOptions.JSType | null;
FieldOptions jstype
property lazy
lazy?: boolean | null;
FieldOptions lazy
property packed
packed?: boolean | null;
FieldOptions packed
property retention
retention?: | google.protobuf.FieldOptions.OptionRetention | keyof typeof google.protobuf.FieldOptions.OptionRetention | null;
FieldOptions retention
property targets
targets?: google.protobuf.FieldOptions.OptionTargetType[] | null;
FieldOptions targets
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
FieldOptions uninterpretedOption
property unverifiedLazy
unverifiedLazy?: boolean | null;
FieldOptions unverifiedLazy
property weak
weak?: boolean | null;
FieldOptions weak
interface IFileDescriptorProto
interface IFileDescriptorProto {}
Properties of a FileDescriptorProto.
property "package"
package?: string | null;
FileDescriptorProto package
property dependency
dependency?: string[] | null;
FileDescriptorProto dependency
property edition
edition?: google.protobuf.Edition | keyof typeof google.protobuf.Edition | null;
FileDescriptorProto edition
property enumType
enumType?: google.protobuf.IEnumDescriptorProto[] | null;
FileDescriptorProto enumType
property extension
extension?: google.protobuf.IFieldDescriptorProto[] | null;
FileDescriptorProto extension
property messageType
messageType?: google.protobuf.IDescriptorProto[] | null;
FileDescriptorProto messageType
property name
name?: string | null;
FileDescriptorProto name
property options
options?: google.protobuf.IFileOptions | null;
FileDescriptorProto options
property publicDependency
publicDependency?: number[] | null;
FileDescriptorProto publicDependency
property service
service?: google.protobuf.IServiceDescriptorProto[] | null;
FileDescriptorProto service
property sourceCodeInfo
sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null;
FileDescriptorProto sourceCodeInfo
property syntax
syntax?: string | null;
FileDescriptorProto syntax
property weakDependency
weakDependency?: number[] | null;
FileDescriptorProto weakDependency
interface IFileDescriptorSet
interface IFileDescriptorSet {}
Properties of a FileDescriptorSet.
property file
file?: google.protobuf.IFileDescriptorProto[] | null;
FileDescriptorSet file
interface IFileOptions
interface IFileOptions {}
Properties of a FileOptions.
property ".google.api.resourceDefinition"
'.google.api.resourceDefinition'?: google.api.IResourceDescriptor[] | null;
FileOptions .google.api.resourceDefinition
property ccEnableArenas
ccEnableArenas?: boolean | null;
FileOptions ccEnableArenas
property ccGenericServices
ccGenericServices?: boolean | null;
FileOptions ccGenericServices
property csharpNamespace
csharpNamespace?: string | null;
FileOptions csharpNamespace
property deprecated
deprecated?: boolean | null;
FileOptions deprecated
property features
features?: google.protobuf.IFeatureSet | null;
FileOptions features
property goPackage
goPackage?: string | null;
FileOptions goPackage
property javaGenerateEqualsAndHash
javaGenerateEqualsAndHash?: boolean | null;
FileOptions javaGenerateEqualsAndHash
property javaGenericServices
javaGenericServices?: boolean | null;
FileOptions javaGenericServices
property javaMultipleFiles
javaMultipleFiles?: boolean | null;
FileOptions javaMultipleFiles
property javaOuterClassname
javaOuterClassname?: string | null;
FileOptions javaOuterClassname
property javaPackage
javaPackage?: string | null;
FileOptions javaPackage
property javaStringCheckUtf8
javaStringCheckUtf8?: boolean | null;
FileOptions javaStringCheckUtf8
property objcClassPrefix
objcClassPrefix?: string | null;
FileOptions objcClassPrefix
property optimizeFor
optimizeFor?: | google.protobuf.FileOptions.OptimizeMode | keyof typeof google.protobuf.FileOptions.OptimizeMode | null;
FileOptions optimizeFor
property phpClassPrefix
phpClassPrefix?: string | null;
FileOptions phpClassPrefix
property phpMetadataNamespace
phpMetadataNamespace?: string | null;
FileOptions phpMetadataNamespace
property phpNamespace
phpNamespace?: string | null;
FileOptions phpNamespace
property pyGenericServices
pyGenericServices?: boolean | null;
FileOptions pyGenericServices
property rubyPackage
rubyPackage?: string | null;
FileOptions rubyPackage
property swiftPrefix
swiftPrefix?: string | null;
FileOptions swiftPrefix
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
FileOptions uninterpretedOption
interface IGeneratedCodeInfo
interface IGeneratedCodeInfo {}
Properties of a GeneratedCodeInfo.
property annotation
annotation?: google.protobuf.GeneratedCodeInfo.IAnnotation[] | null;
GeneratedCodeInfo annotation
interface IListValue
interface IListValue {}
Properties of a ListValue.
property values
values?: google.protobuf.IValue[] | null;
ListValue values
interface IMessageOptions
interface IMessageOptions {}
Properties of a MessageOptions.
property ".google.api.resource"
'.google.api.resource'?: google.api.IResourceDescriptor | null;
MessageOptions .google.api.resource
property deprecated
deprecated?: boolean | null;
MessageOptions deprecated
property deprecatedLegacyJsonFieldConflicts
deprecatedLegacyJsonFieldConflicts?: boolean | null;
MessageOptions deprecatedLegacyJsonFieldConflicts
property features
features?: google.protobuf.IFeatureSet | null;
MessageOptions features
property mapEntry
mapEntry?: boolean | null;
MessageOptions mapEntry
property messageSetWireFormat
messageSetWireFormat?: boolean | null;
MessageOptions messageSetWireFormat
property noStandardDescriptorAccessor
noStandardDescriptorAccessor?: boolean | null;
MessageOptions noStandardDescriptorAccessor
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
MessageOptions uninterpretedOption
interface IMethodDescriptorProto
interface IMethodDescriptorProto {}
Properties of a MethodDescriptorProto.
property clientStreaming
clientStreaming?: boolean | null;
MethodDescriptorProto clientStreaming
property inputType
inputType?: string | null;
MethodDescriptorProto inputType
property name
name?: string | null;
MethodDescriptorProto name
property options
options?: google.protobuf.IMethodOptions | null;
MethodDescriptorProto options
property outputType
outputType?: string | null;
MethodDescriptorProto outputType
property serverStreaming
serverStreaming?: boolean | null;
MethodDescriptorProto serverStreaming
interface IMethodOptions
interface IMethodOptions {}
Properties of a MethodOptions.
property ".google.api.http"
'.google.api.http'?: google.api.IHttpRule | null;
MethodOptions .google.api.http
property ".google.api.methodSignature"
'.google.api.methodSignature'?: string[] | null;
MethodOptions .google.api.methodSignature
property ".google.longrunning.operationInfo"
'.google.longrunning.operationInfo'?: google.longrunning.IOperationInfo | null;
MethodOptions .google.longrunning.operationInfo
property deprecated
deprecated?: boolean | null;
MethodOptions deprecated
property features
features?: google.protobuf.IFeatureSet | null;
MethodOptions features
property idempotencyLevel
idempotencyLevel?: | google.protobuf.MethodOptions.IdempotencyLevel | keyof typeof google.protobuf.MethodOptions.IdempotencyLevel | null;
MethodOptions idempotencyLevel
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
MethodOptions uninterpretedOption
interface IOneofDescriptorProto
interface IOneofDescriptorProto {}
Properties of an OneofDescriptorProto.
interface IOneofOptions
interface IOneofOptions {}
Properties of an OneofOptions.
property features
features?: google.protobuf.IFeatureSet | null;
OneofOptions features
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
OneofOptions uninterpretedOption
interface IServiceDescriptorProto
interface IServiceDescriptorProto {}
Properties of a ServiceDescriptorProto.
interface IServiceOptions
interface IServiceOptions {}
Properties of a ServiceOptions.
property ".google.api.apiVersion"
'.google.api.apiVersion'?: string | null;
ServiceOptions .google.api.apiVersion
property ".google.api.defaultHost"
'.google.api.defaultHost'?: string | null;
ServiceOptions .google.api.defaultHost
property ".google.api.oauthScopes"
'.google.api.oauthScopes'?: string | null;
ServiceOptions .google.api.oauthScopes
property deprecated
deprecated?: boolean | null;
ServiceOptions deprecated
property features
features?: google.protobuf.IFeatureSet | null;
ServiceOptions features
property uninterpretedOption
uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null;
ServiceOptions uninterpretedOption
interface ISourceCodeInfo
interface ISourceCodeInfo {}
Properties of a SourceCodeInfo.
property location
location?: google.protobuf.SourceCodeInfo.ILocation[] | null;
SourceCodeInfo location
interface IStruct
interface IStruct {}
Properties of a Struct.
property fields
fields?: { [k: string]: google.protobuf.IValue } | null;
Struct fields
interface ITimestamp
interface ITimestamp {}
Properties of a Timestamp.
interface IUninterpretedOption
interface IUninterpretedOption {}
Properties of an UninterpretedOption.
property aggregateValue
aggregateValue?: string | null;
UninterpretedOption aggregateValue
property doubleValue
doubleValue?: number | null;
UninterpretedOption doubleValue
property identifierValue
identifierValue?: string | null;
UninterpretedOption identifierValue
property name
name?: google.protobuf.UninterpretedOption.INamePart[] | null;
UninterpretedOption name
property negativeIntValue
negativeIntValue?: number | Long | string | null;
UninterpretedOption negativeIntValue
property positiveIntValue
positiveIntValue?: number | Long | string | null;
UninterpretedOption positiveIntValue
property stringValue
stringValue?: Uint8Array | string | null;
UninterpretedOption stringValue
interface IValue
interface IValue {}
Properties of a Value.
property boolValue
boolValue?: boolean | null;
Value boolValue
property listValue
listValue?: google.protobuf.IListValue | null;
Value listValue
property nullValue
nullValue?: | google.protobuf.NullValue | keyof typeof google.protobuf.NullValue | null;
Value nullValue
property numberValue
numberValue?: number | null;
Value numberValue
property stringValue
stringValue?: string | null;
Value stringValue
property structValue
structValue?: google.protobuf.IStruct | null;
Value structValue
enum Edition
enum Edition { EDITION_UNKNOWN = 0, EDITION_PROTO2 = 998, EDITION_PROTO3 = 999, EDITION_2023 = 1000, EDITION_2024 = 1001, EDITION_1_TEST_ONLY = 1, EDITION_2_TEST_ONLY = 2, EDITION_99997_TEST_ONLY = 99997, EDITION_99998_TEST_ONLY = 99998, EDITION_99999_TEST_ONLY = 99999, EDITION_MAX = 2147483647,}
Edition enum.
member EDITION_1_TEST_ONLY
EDITION_1_TEST_ONLY = 1
member EDITION_2_TEST_ONLY
EDITION_2_TEST_ONLY = 2
member EDITION_2023
EDITION_2023 = 1000
member EDITION_2024
EDITION_2024 = 1001
member EDITION_99997_TEST_ONLY
EDITION_99997_TEST_ONLY = 99997
member EDITION_99998_TEST_ONLY
EDITION_99998_TEST_ONLY = 99998
member EDITION_99999_TEST_ONLY
EDITION_99999_TEST_ONLY = 99999
member EDITION_MAX
EDITION_MAX = 2147483647
member EDITION_PROTO2
EDITION_PROTO2 = 998
member EDITION_PROTO3
EDITION_PROTO3 = 999
member EDITION_UNKNOWN
EDITION_UNKNOWN = 0
enum NullValue
enum NullValue { NULL_VALUE = 0,}
NullValue enum.
member NULL_VALUE
NULL_VALUE = 0
namespace protos.google.protobuf.DescriptorProto
namespace protos.google.protobuf.DescriptorProto {}
class ExtensionRange
class ExtensionRange implements IExtensionRange {}
Represents an ExtensionRange.
constructor
constructor(properties?: IExtensionRange);
Constructs a new ExtensionRange.
Parameter properties
Properties to set
property end
end: number;
ExtensionRange end.
property options
options?: IExtensionRangeOptions;
ExtensionRange options.
property start
start: number;
ExtensionRange start.
method create
static create: ( properties?: google.protobuf.DescriptorProto.IExtensionRange) => google.protobuf.DescriptorProto.ExtensionRange;
Creates a new ExtensionRange instance using the specified properties.
Parameter properties
Properties to set
Returns
ExtensionRange instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.DescriptorProto.ExtensionRange;
Decodes an ExtensionRange message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ExtensionRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.DescriptorProto.ExtensionRange;
Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ExtensionRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ExtensionRange message. Does not implicitly verify messages.
Parameter message
ExtensionRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ExtensionRange message, length delimited. Does not implicitly verify messages.
Parameter message
ExtensionRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.DescriptorProto.ExtensionRange;
Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ExtensionRange
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ExtensionRange
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ExtensionRange to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
Parameter message
ExtensionRange
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an ExtensionRange message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
class ReservedRange
class ReservedRange implements IReservedRange {}
Represents a ReservedRange.
constructor
constructor(properties?: IReservedRange);
Constructs a new ReservedRange.
Parameter properties
Properties to set
property end
end: number;
ReservedRange end.
property start
start: number;
ReservedRange start.
method create
static create: ( properties?: google.protobuf.DescriptorProto.IReservedRange) => google.protobuf.DescriptorProto.ReservedRange;
Creates a new ReservedRange instance using the specified properties.
Parameter properties
Properties to set
Returns
ReservedRange instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.DescriptorProto.ReservedRange;
Decodes a ReservedRange message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
ReservedRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.DescriptorProto.ReservedRange;
Decodes a ReservedRange message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
ReservedRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ReservedRange message. Does not implicitly verify messages.
Parameter message
ReservedRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified ReservedRange message, length delimited. Does not implicitly verify messages.
Parameter message
ReservedRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.DescriptorProto.ReservedRange;
Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
ReservedRange
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for ReservedRange
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this ReservedRange to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
Parameter message
ReservedRange
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a ReservedRange message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IExtensionRange
interface IExtensionRange {}
Properties of an ExtensionRange.
interface IReservedRange
interface IReservedRange {}
Properties of a ReservedRange.
namespace protos.google.protobuf.EnumDescriptorProto
namespace protos.google.protobuf.EnumDescriptorProto {}
class EnumReservedRange
class EnumReservedRange implements IEnumReservedRange {}
Represents an EnumReservedRange.
constructor
constructor(properties?: IEnumReservedRange);
Constructs a new EnumReservedRange.
Parameter properties
Properties to set
property end
end: number;
EnumReservedRange end.
property start
start: number;
EnumReservedRange start.
method create
static create: ( properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange) => google.protobuf.EnumDescriptorProto.EnumReservedRange;
Creates a new EnumReservedRange instance using the specified properties.
Parameter properties
Properties to set
Returns
EnumReservedRange instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.EnumDescriptorProto.EnumReservedRange;
Decodes an EnumReservedRange message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EnumReservedRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.EnumDescriptorProto.EnumReservedRange;
Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EnumReservedRange
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumReservedRange message. Does not implicitly verify messages.
Parameter message
EnumReservedRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EnumReservedRange message, length delimited. Does not implicitly verify messages.
Parameter message
EnumReservedRange message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.EnumDescriptorProto.EnumReservedRange;
Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EnumReservedRange
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EnumReservedRange
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EnumReservedRange to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
Parameter message
EnumReservedRange
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EnumReservedRange message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IEnumReservedRange
interface IEnumReservedRange {}
Properties of an EnumReservedRange.
namespace protos.google.protobuf.ExtensionRangeOptions
namespace protos.google.protobuf.ExtensionRangeOptions {}
class Declaration
class Declaration implements IDeclaration {}
Represents a Declaration.
constructor
constructor(properties?: IDeclaration);
Constructs a new Declaration.
Parameter properties
Properties to set
property fullName
fullName: string;
Declaration fullName.
property number
number: number;
Declaration number.
property repeated
repeated: boolean;
Declaration repeated.
property reserved
reserved: boolean;
Declaration reserved.
property type
type: string;
Declaration type.
method create
static create: ( properties?: google.protobuf.ExtensionRangeOptions.IDeclaration) => google.protobuf.ExtensionRangeOptions.Declaration;
Creates a new Declaration instance using the specified properties.
Parameter properties
Properties to set
Returns
Declaration instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.ExtensionRangeOptions.Declaration;
Decodes a Declaration message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Declaration
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.ExtensionRangeOptions.Declaration;
Decodes a Declaration message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Declaration
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Declaration message. Does not implicitly verify messages.
Parameter message
Declaration message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Declaration message, length delimited. Does not implicitly verify messages.
Parameter message
Declaration message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.ExtensionRangeOptions.Declaration;
Creates a Declaration message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Declaration
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Declaration
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Declaration to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Declaration message. Also converts values to other types if specified.
Parameter message
Declaration
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Declaration message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IDeclaration
interface IDeclaration {}
Properties of a Declaration.
enum VerificationState
enum VerificationState { DECLARATION = 0, UNVERIFIED = 1,}
VerificationState enum.
member DECLARATION
DECLARATION = 0
member UNVERIFIED
UNVERIFIED = 1
namespace protos.google.protobuf.FeatureSet
namespace protos.google.protobuf.FeatureSet {}
enum EnumType
enum EnumType { ENUM_TYPE_UNKNOWN = 0, OPEN = 1, CLOSED = 2,}
EnumType enum.
enum FieldPresence
enum FieldPresence { FIELD_PRESENCE_UNKNOWN = 0, EXPLICIT = 1, IMPLICIT = 2, LEGACY_REQUIRED = 3,}
FieldPresence enum.
member EXPLICIT
EXPLICIT = 1
member FIELD_PRESENCE_UNKNOWN
FIELD_PRESENCE_UNKNOWN = 0
member IMPLICIT
IMPLICIT = 2
member LEGACY_REQUIRED
LEGACY_REQUIRED = 3
enum JsonFormat
enum JsonFormat { JSON_FORMAT_UNKNOWN = 0, ALLOW = 1, LEGACY_BEST_EFFORT = 2,}
JsonFormat enum.
member ALLOW
ALLOW = 1
member JSON_FORMAT_UNKNOWN
JSON_FORMAT_UNKNOWN = 0
member LEGACY_BEST_EFFORT
LEGACY_BEST_EFFORT = 2
enum MessageEncoding
enum MessageEncoding { MESSAGE_ENCODING_UNKNOWN = 0, LENGTH_PREFIXED = 1, DELIMITED = 2,}
MessageEncoding enum.
member DELIMITED
DELIMITED = 2
member LENGTH_PREFIXED
LENGTH_PREFIXED = 1
member MESSAGE_ENCODING_UNKNOWN
MESSAGE_ENCODING_UNKNOWN = 0
enum RepeatedFieldEncoding
enum RepeatedFieldEncoding { REPEATED_FIELD_ENCODING_UNKNOWN = 0, PACKED = 1, EXPANDED = 2,}
RepeatedFieldEncoding enum.
member EXPANDED
EXPANDED = 2
member PACKED
PACKED = 1
member REPEATED_FIELD_ENCODING_UNKNOWN
REPEATED_FIELD_ENCODING_UNKNOWN = 0
enum Utf8Validation
enum Utf8Validation { UTF8_VALIDATION_UNKNOWN = 0, VERIFY = 2, NONE = 3,}
Utf8Validation enum.
namespace protos.google.protobuf.FeatureSetDefaults
namespace protos.google.protobuf.FeatureSetDefaults {}
class FeatureSetEditionDefault
class FeatureSetEditionDefault implements IFeatureSetEditionDefault {}
Represents a FeatureSetEditionDefault.
constructor
constructor(properties?: IFeatureSetEditionDefault);
Constructs a new FeatureSetEditionDefault.
Parameter properties
Properties to set
property edition
edition: | Edition | 'EDITION_UNKNOWN' | 'EDITION_PROTO2' | 'EDITION_PROTO3' | 'EDITION_2023' | 'EDITION_2024' | 'EDITION_1_TEST_ONLY' | 'EDITION_2_TEST_ONLY' | 'EDITION_99997_TEST_ONLY' | 'EDITION_99998_TEST_ONLY' | 'EDITION_99999_TEST_ONLY' | 'EDITION_MAX';
FeatureSetEditionDefault edition.
property features
features?: IFeatureSet;
FeatureSetEditionDefault features.
method create
static create: ( properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault) => google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
Creates a new FeatureSetEditionDefault instance using the specified properties.
Parameter properties
Properties to set
Returns
FeatureSetEditionDefault instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
FeatureSetEditionDefault
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
FeatureSetEditionDefault
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSetEditionDefault message. Does not implicitly verify messages.
Parameter message
FeatureSetEditionDefault message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly verify messages.
Parameter message
FeatureSetEditionDefault message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
FeatureSetEditionDefault
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for FeatureSetEditionDefault
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this FeatureSetEditionDefault to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
Parameter message
FeatureSetEditionDefault
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a FeatureSetEditionDefault message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IFeatureSetEditionDefault
interface IFeatureSetEditionDefault {}
Properties of a FeatureSetEditionDefault.
namespace protos.google.protobuf.FieldDescriptorProto
namespace protos.google.protobuf.FieldDescriptorProto {}
enum Label
enum Label { LABEL_OPTIONAL = 1, LABEL_REPEATED = 3, LABEL_REQUIRED = 2,}
Label enum.
member LABEL_OPTIONAL
LABEL_OPTIONAL = 1
member LABEL_REPEATED
LABEL_REPEATED = 3
member LABEL_REQUIRED
LABEL_REQUIRED = 2
enum Type
enum Type { TYPE_DOUBLE = 1, TYPE_FLOAT = 2, TYPE_INT64 = 3, TYPE_UINT64 = 4, TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8, TYPE_STRING = 9, TYPE_GROUP = 10, TYPE_MESSAGE = 11, TYPE_BYTES = 12, TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16, TYPE_SINT32 = 17, TYPE_SINT64 = 18,}
Type enum.
member TYPE_BOOL
TYPE_BOOL = 8
member TYPE_BYTES
TYPE_BYTES = 12
member TYPE_DOUBLE
TYPE_DOUBLE = 1
member TYPE_ENUM
TYPE_ENUM = 14
member TYPE_FIXED32
TYPE_FIXED32 = 7
member TYPE_FIXED64
TYPE_FIXED64 = 6
member TYPE_FLOAT
TYPE_FLOAT = 2
member TYPE_GROUP
TYPE_GROUP = 10
member TYPE_INT32
TYPE_INT32 = 5
member TYPE_INT64
TYPE_INT64 = 3
member TYPE_MESSAGE
TYPE_MESSAGE = 11
member TYPE_SFIXED32
TYPE_SFIXED32 = 15
member TYPE_SFIXED64
TYPE_SFIXED64 = 16
member TYPE_SINT32
TYPE_SINT32 = 17
member TYPE_SINT64
TYPE_SINT64 = 18
member TYPE_STRING
TYPE_STRING = 9
member TYPE_UINT32
TYPE_UINT32 = 13
member TYPE_UINT64
TYPE_UINT64 = 4
namespace protos.google.protobuf.FieldOptions
namespace protos.google.protobuf.FieldOptions {}
class EditionDefault
class EditionDefault implements IEditionDefault {}
Represents an EditionDefault.
constructor
constructor(properties?: IEditionDefault);
Constructs a new EditionDefault.
Parameter properties
Properties to set
property edition
edition: | Edition | 'EDITION_UNKNOWN' | 'EDITION_PROTO2' | 'EDITION_PROTO3' | 'EDITION_2023' | 'EDITION_2024' | 'EDITION_1_TEST_ONLY' | 'EDITION_2_TEST_ONLY' | 'EDITION_99997_TEST_ONLY' | 'EDITION_99998_TEST_ONLY' | 'EDITION_99999_TEST_ONLY' | 'EDITION_MAX';
EditionDefault edition.
property value
value: string;
EditionDefault value.
method create
static create: ( properties?: google.protobuf.FieldOptions.IEditionDefault) => google.protobuf.FieldOptions.EditionDefault;
Creates a new EditionDefault instance using the specified properties.
Parameter properties
Properties to set
Returns
EditionDefault instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.FieldOptions.EditionDefault;
Decodes an EditionDefault message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
EditionDefault
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.FieldOptions.EditionDefault;
Decodes an EditionDefault message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
EditionDefault
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EditionDefault message. Does not implicitly verify messages.
Parameter message
EditionDefault message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified EditionDefault message, length delimited. Does not implicitly verify messages.
Parameter message
EditionDefault message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.FieldOptions.EditionDefault;
Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
EditionDefault
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for EditionDefault
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this EditionDefault to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
Parameter message
EditionDefault
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an EditionDefault message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IEditionDefault
interface IEditionDefault {}
Properties of an EditionDefault.
enum CType
enum CType { STRING = 0, CORD = 1, STRING_PIECE = 2,}
CType enum.
enum JSType
enum JSType { JS_NORMAL = 0, JS_STRING = 1, JS_NUMBER = 2,}
JSType enum.
enum OptionRetention
enum OptionRetention { RETENTION_UNKNOWN = 0, RETENTION_RUNTIME = 1, RETENTION_SOURCE = 2,}
OptionRetention enum.
member RETENTION_RUNTIME
RETENTION_RUNTIME = 1
member RETENTION_SOURCE
RETENTION_SOURCE = 2
member RETENTION_UNKNOWN
RETENTION_UNKNOWN = 0
enum OptionTargetType
enum OptionTargetType { TARGET_TYPE_UNKNOWN = 0, TARGET_TYPE_FILE = 1, TARGET_TYPE_EXTENSION_RANGE = 2, TARGET_TYPE_MESSAGE = 3, TARGET_TYPE_FIELD = 4, TARGET_TYPE_ONEOF = 5, TARGET_TYPE_ENUM = 6, TARGET_TYPE_ENUM_ENTRY = 7, TARGET_TYPE_SERVICE = 8, TARGET_TYPE_METHOD = 9,}
OptionTargetType enum.
member TARGET_TYPE_ENUM
TARGET_TYPE_ENUM = 6
member TARGET_TYPE_ENUM_ENTRY
TARGET_TYPE_ENUM_ENTRY = 7
member TARGET_TYPE_EXTENSION_RANGE
TARGET_TYPE_EXTENSION_RANGE = 2
member TARGET_TYPE_FIELD
TARGET_TYPE_FIELD = 4
member TARGET_TYPE_FILE
TARGET_TYPE_FILE = 1
member TARGET_TYPE_MESSAGE
TARGET_TYPE_MESSAGE = 3
member TARGET_TYPE_METHOD
TARGET_TYPE_METHOD = 9
member TARGET_TYPE_ONEOF
TARGET_TYPE_ONEOF = 5
member TARGET_TYPE_SERVICE
TARGET_TYPE_SERVICE = 8
member TARGET_TYPE_UNKNOWN
TARGET_TYPE_UNKNOWN = 0
namespace protos.google.protobuf.FileOptions
namespace protos.google.protobuf.FileOptions {}
enum OptimizeMode
enum OptimizeMode { SPEED = 1, CODE_SIZE = 2, LITE_RUNTIME = 3,}
OptimizeMode enum.
namespace protos.google.protobuf.GeneratedCodeInfo
namespace protos.google.protobuf.GeneratedCodeInfo {}
class Annotation
class Annotation implements IAnnotation {}
Represents an Annotation.
constructor
constructor(properties?: IAnnotation);
Constructs a new Annotation.
Parameter properties
Properties to set
property begin
begin: number;
Annotation begin.
property end
end: number;
Annotation end.
property path
path: number[];
Annotation path.
property semantic
semantic: 'NONE' | Annotation.Semantic | 'SET' | 'ALIAS';
Annotation semantic.
property sourceFile
sourceFile: string;
Annotation sourceFile.
method create
static create: ( properties?: google.protobuf.GeneratedCodeInfo.IAnnotation) => google.protobuf.GeneratedCodeInfo.Annotation;
Creates a new Annotation instance using the specified properties.
Parameter properties
Properties to set
Returns
Annotation instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.GeneratedCodeInfo.Annotation;
Decodes an Annotation message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Annotation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.GeneratedCodeInfo.Annotation;
Decodes an Annotation message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Annotation
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Annotation message. Does not implicitly verify messages.
Parameter message
Annotation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Annotation message, length delimited. Does not implicitly verify messages.
Parameter message
Annotation message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.GeneratedCodeInfo.Annotation;
Creates an Annotation message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Annotation
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Annotation
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Annotation to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from an Annotation message. Also converts values to other types if specified.
Parameter message
Annotation
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies an Annotation message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface IAnnotation
interface IAnnotation {}
Properties of an Annotation.
property begin
begin?: number | null;
Annotation begin
property end
end?: number | null;
Annotation end
property path
path?: number[] | null;
Annotation path
property semantic
semantic?: | google.protobuf.GeneratedCodeInfo.Annotation.Semantic | keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic | null;
Annotation semantic
property sourceFile
sourceFile?: string | null;
Annotation sourceFile
namespace protos.google.protobuf.GeneratedCodeInfo.Annotation
namespace protos.google.protobuf.GeneratedCodeInfo.Annotation {}
namespace protos.google.protobuf.MethodOptions
namespace protos.google.protobuf.MethodOptions {}
enum IdempotencyLevel
enum IdempotencyLevel { IDEMPOTENCY_UNKNOWN = 0, NO_SIDE_EFFECTS = 1, IDEMPOTENT = 2,}
IdempotencyLevel enum.
member IDEMPOTENCY_UNKNOWN
IDEMPOTENCY_UNKNOWN = 0
member IDEMPOTENT
IDEMPOTENT = 2
member NO_SIDE_EFFECTS
NO_SIDE_EFFECTS = 1
namespace protos.google.protobuf.SourceCodeInfo
namespace protos.google.protobuf.SourceCodeInfo {}
class Location
class Location implements ILocation {}
Represents a Location.
constructor
constructor(properties?: ILocation);
Constructs a new Location.
Parameter properties
Properties to set
property leadingComments
leadingComments: string;
Location leadingComments.
property leadingDetachedComments
leadingDetachedComments: string[];
Location leadingDetachedComments.
property path
path: number[];
Location path.
property span
span: number[];
Location span.
property trailingComments
trailingComments: string;
Location trailingComments.
method create
static create: ( properties?: google.protobuf.SourceCodeInfo.ILocation) => google.protobuf.SourceCodeInfo.Location;
Creates a new Location instance using the specified properties.
Parameter properties
Properties to set
Returns
Location instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.SourceCodeInfo.Location;
Decodes a Location message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Location
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.SourceCodeInfo.Location;
Decodes a Location message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Location
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Location message. Does not implicitly verify messages.
Parameter message
Location message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Location message, length delimited. Does not implicitly verify messages.
Parameter message
Location message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.SourceCodeInfo.Location;
Creates a Location message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Location
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Location
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Location to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Location message. Also converts values to other types if specified.
Parameter message
Location
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Location message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface ILocation
interface ILocation {}
Properties of a Location.
property leadingComments
leadingComments?: string | null;
Location leadingComments
property leadingDetachedComments
leadingDetachedComments?: string[] | null;
Location leadingDetachedComments
property path
path?: number[] | null;
Location path
property span
span?: number[] | null;
Location span
property trailingComments
trailingComments?: string | null;
Location trailingComments
namespace protos.google.protobuf.UninterpretedOption
namespace protos.google.protobuf.UninterpretedOption {}
class NamePart
class NamePart implements INamePart {}
Represents a NamePart.
constructor
constructor(properties?: INamePart);
Constructs a new NamePart.
Parameter properties
Properties to set
property isExtension
isExtension: boolean;
NamePart isExtension.
property namePart
namePart: string;
NamePart namePart.
method create
static create: ( properties?: google.protobuf.UninterpretedOption.INamePart) => google.protobuf.UninterpretedOption.NamePart;
Creates a new NamePart instance using the specified properties.
Parameter properties
Properties to set
Returns
NamePart instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.protobuf.UninterpretedOption.NamePart;
Decodes a NamePart message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
NamePart
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.protobuf.UninterpretedOption.NamePart;
Decodes a NamePart message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
NamePart
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified NamePart message. Does not implicitly verify messages.
Parameter message
NamePart message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified NamePart message, length delimited. Does not implicitly verify messages.
Parameter message
NamePart message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any;}) => google.protobuf.UninterpretedOption.NamePart;
Creates a NamePart message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
NamePart
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for NamePart
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this NamePart to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a NamePart message. Also converts values to other types if specified.
Parameter message
NamePart
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a NamePart message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
interface INamePart
interface INamePart {}
Properties of a NamePart.
property isExtension
isExtension: boolean;
NamePart isExtension
property namePart
namePart: string;
NamePart namePart
namespace protos.google.rpc
namespace protos.google.rpc {}
Namespace rpc.
class Status
class Status implements IStatus {}
Represents a Status.
constructor
constructor(properties?: IStatus);
Constructs a new Status.
Parameter properties
Properties to set
property code
code: number;
Status code.
property details
details: protobuf.IAny[];
Status details.
property message
message: string;
Status message.
method create
static create: (properties?: google.rpc.IStatus) => google.rpc.Status;
Creates a new Status instance using the specified properties.
Parameter properties
Properties to set
Returns
Status instance
method decode
static decode: ( reader: $protobuf.Reader | Uint8Array, length?: number) => google.rpc.Status;
Decodes a Status message from the specified reader or buffer.
Parameter reader
Reader or buffer to decode from
Parameter length
Message length if known beforehand
Returns
Status
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method decodeDelimited
static decodeDelimited: ( reader: $protobuf.Reader | Uint8Array) => google.rpc.Status;
Decodes a Status message from the specified reader or buffer, length delimited.
Parameter reader
Reader or buffer to decode from
Returns
Status
Throws
{Error} If the payload is not a reader or valid buffer
Throws
{$protobuf.util.ProtocolError} If required fields are missing
method encode
static encode: ( message: google.rpc.IStatus, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Status message. Does not implicitly verify messages.
Parameter message
Status message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method encodeDelimited
static encodeDelimited: ( message: google.rpc.IStatus, writer?: $protobuf.Writer) => $protobuf.Writer;
Encodes the specified Status message, length delimited. Does not implicitly verify messages.
Parameter message
Status message or plain object to encode
Parameter writer
Writer to encode to
Returns
Writer
method fromObject
static fromObject: (object: { [k: string]: any }) => google.rpc.Status;
Creates a Status message from a plain object. Also converts values to their respective internal types.
Parameter object
Plain object
Returns
Status
method getTypeUrl
static getTypeUrl: (typeUrlPrefix?: string) => string;
Gets the default type url for Status
Parameter typeUrlPrefix
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
The default type url
method toJSON
toJSON: () => { [k: string]: any };
Converts this Status to JSON.
Returns
JSON object
method toObject
static toObject: ( message: google.rpc.Status, options?: $protobuf.IConversionOptions) => { [k: string]: any };
Creates a plain object from a Status message. Also converts values to other types if specified.
Parameter message
Status
Parameter options
Conversion options
Returns
Plain object
method verify
static verify: (message: { [k: string]: any }) => string | null;
Verifies a Status message.
Parameter message
Plain object to verify
Returns
null
if valid, otherwise the reason why it is not
Package Files (12)
- build/protos/protos.d.ts
- build/src/entry.d.ts
- build/src/index.d.ts
- build/src/log-sync.d.ts
- build/src/log.d.ts
- build/src/middleware/express/index.d.ts
- build/src/middleware/express/make-middleware.d.ts
- build/src/middleware/index.d.ts
- build/src/sink.d.ts
- build/src/utils/http-request.d.ts
- build/src/utils/log-common.d.ts
- build/src/utils/metadata.d.ts
Dependencies (16)
Dev Dependencies (39)
- @google-cloud/bigquery
- @google-cloud/opentelemetry-cloud-trace-exporter
- @google-cloud/pubsub
- @google-cloud/storage
- @opentelemetry/api
- @opentelemetry/resources
- @opentelemetry/sdk-node
- @opentelemetry/sdk-trace-base
- @opentelemetry/sdk-trace-node
- @opentelemetry/semantic-conventions
- @types/extend
- @types/mocha
- @types/node
- @types/on-finished
- @types/proxyquire
- @types/pumpify
- @types/sinon
- @types/uuid
- bignumber.js
- c8
- codecov
- gapic-tools
- gts
- http2spy
- jsdoc
- jsdoc-fresh
- jsdoc-region-tag
- linkinator
- mocha
- nock
- null-loader
- pack-n-play
- proxyquire
- sinon
- ts-loader
- typescript
- uglify-js
- webpack
- webpack-cli
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@google-cloud/logging
.
- Markdown[](https://www.jsdocs.io/package/@google-cloud/logging)
- HTML<a href="https://www.jsdocs.io/package/@google-cloud/logging"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 28679 ms. - Missing or incorrect documentation? Open an issue for this package.