Class protos.google.logging.v2.LoggingServiceV2 (11.0.0)

Represents a LoggingServiceV2

Inheritance

$protobuf.rpc.Service > protos.google.logging.v2.LoggingServiceV2

Package

@google-cloud/logging

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new LoggingServiceV2 service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): LoggingServiceV2;

Creates new LoggingServiceV2 service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
LoggingServiceV2

RPC service. Useful where requests and/or responses are streamed.

deleteLog(request, callback)

public deleteLog(request: google.logging.v2.IDeleteLogRequest, callback: google.logging.v2.LoggingServiceV2.DeleteLogCallback): void;

Calls DeleteLog.

Parameters
NameDescription
request IDeleteLogRequest

DeleteLogRequest message or plain object

callback DeleteLogCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteLog(request)

public deleteLog(request: google.logging.v2.IDeleteLogRequest): Promise<google.protobuf.Empty>;

Calls DeleteLog.

Parameter
NameDescription
request IDeleteLogRequest

DeleteLogRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

listLogEntries(request, callback)

public listLogEntries(request: google.logging.v2.IListLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.ListLogEntriesCallback): void;

Calls ListLogEntries.

Parameters
NameDescription
request IListLogEntriesRequest

ListLogEntriesRequest message or plain object

callback ListLogEntriesCallback

Node-style callback called with the error, if any, and ListLogEntriesResponse

Returns
TypeDescription
void

listLogEntries(request)

public listLogEntries(request: google.logging.v2.IListLogEntriesRequest): Promise<google.logging.v2.ListLogEntriesResponse>;

Calls ListLogEntries.

Parameter
NameDescription
request IListLogEntriesRequest

ListLogEntriesRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.ListLogEntriesResponse>

Promise

listLogs(request, callback)

public listLogs(request: google.logging.v2.IListLogsRequest, callback: google.logging.v2.LoggingServiceV2.ListLogsCallback): void;

Calls ListLogs.

Parameters
NameDescription
request IListLogsRequest

ListLogsRequest message or plain object

callback ListLogsCallback

Node-style callback called with the error, if any, and ListLogsResponse

Returns
TypeDescription
void

listLogs(request)

public listLogs(request: google.logging.v2.IListLogsRequest): Promise<google.logging.v2.ListLogsResponse>;

Calls ListLogs.

Parameter
NameDescription
request IListLogsRequest

ListLogsRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.ListLogsResponse>

Promise

listMonitoredResourceDescriptors(request, callback)

public listMonitoredResourceDescriptors(request: google.logging.v2.IListMonitoredResourceDescriptorsRequest, callback: google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptorsCallback): void;

Calls ListMonitoredResourceDescriptors.

Parameters
NameDescription
request IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

callback ListMonitoredResourceDescriptorsCallback

Node-style callback called with the error, if any, and ListMonitoredResourceDescriptorsResponse

Returns
TypeDescription
void

listMonitoredResourceDescriptors(request)

public listMonitoredResourceDescriptors(request: google.logging.v2.IListMonitoredResourceDescriptorsRequest): Promise<google.logging.v2.ListMonitoredResourceDescriptorsResponse>;

Calls ListMonitoredResourceDescriptors.

Parameter
NameDescription
request IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.ListMonitoredResourceDescriptorsResponse>

Promise

tailLogEntries(request, callback)

public tailLogEntries(request: google.logging.v2.ITailLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.TailLogEntriesCallback): void;

Calls TailLogEntries.

Parameters
NameDescription
request ITailLogEntriesRequest

TailLogEntriesRequest message or plain object

callback TailLogEntriesCallback

Node-style callback called with the error, if any, and TailLogEntriesResponse

Returns
TypeDescription
void

tailLogEntries(request)

public tailLogEntries(request: google.logging.v2.ITailLogEntriesRequest): Promise<google.logging.v2.TailLogEntriesResponse>;

Calls TailLogEntries.

Parameter
NameDescription
request ITailLogEntriesRequest

TailLogEntriesRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.TailLogEntriesResponse>

Promise

writeLogEntries(request, callback)

public writeLogEntries(request: google.logging.v2.IWriteLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.WriteLogEntriesCallback): void;

Calls WriteLogEntries.

Parameters
NameDescription
request IWriteLogEntriesRequest

WriteLogEntriesRequest message or plain object

callback WriteLogEntriesCallback

Node-style callback called with the error, if any, and WriteLogEntriesResponse

Returns
TypeDescription
void

writeLogEntries(request)

public writeLogEntries(request: google.logging.v2.IWriteLogEntriesRequest): Promise<google.logging.v2.WriteLogEntriesResponse>;

Calls WriteLogEntries.

Parameter
NameDescription
request IWriteLogEntriesRequest

WriteLogEntriesRequest message or plain object

Returns
TypeDescription
Promise<google.logging.v2.WriteLogEntriesResponse>

Promise