Represents a LoggingServiceV2
Inheritance
$protobuf.rpc.Service > protos.google.logging.v2.LoggingServiceV2Package
@google-cloud/loggingConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new LoggingServiceV2 service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
request |
google.logging.v2.IDeleteLogRequest
DeleteLogRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.DeleteLogCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteLog(request)
public deleteLog(request: google.logging.v2.IDeleteLogRequest): Promise<google.protobuf.Empty>;
Calls DeleteLog.
Name | Description |
request |
google.logging.v2.IDeleteLogRequest
DeleteLogRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
listLogEntries(request, callback)
public listLogEntries(request: google.logging.v2.IListLogEntriesRequest, callback: google.logging.v2.LoggingServiceV2.ListLogEntriesCallback): void;
Calls ListLogEntries.
Name | Description |
request |
google.logging.v2.IListLogEntriesRequest
ListLogEntriesRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.ListLogEntriesCallback
Node-style callback called with the error, if any, and ListLogEntriesResponse |
Type | Description |
void |
listLogEntries(request)
public listLogEntries(request: google.logging.v2.IListLogEntriesRequest): Promise<google.logging.v2.ListLogEntriesResponse>;
Calls ListLogEntries.
Name | Description |
request |
google.logging.v2.IListLogEntriesRequest
ListLogEntriesRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IListLogsRequest
ListLogsRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.ListLogsCallback
Node-style callback called with the error, if any, and ListLogsResponse |
Type | Description |
void |
listLogs(request)
public listLogs(request: google.logging.v2.IListLogsRequest): Promise<google.logging.v2.ListLogsResponse>;
Calls ListLogs.
Name | Description |
request |
IListLogsRequest
ListLogsRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
google.logging.v2.IListMonitoredResourceDescriptorsRequest
ListMonitoredResourceDescriptorsRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptorsCallback
Node-style callback called with the error, if any, and ListMonitoredResourceDescriptorsResponse |
Type | Description |
void |
listMonitoredResourceDescriptors(request)
public listMonitoredResourceDescriptors(request: google.logging.v2.IListMonitoredResourceDescriptorsRequest): Promise<google.logging.v2.ListMonitoredResourceDescriptorsResponse>;
Calls ListMonitoredResourceDescriptors.
Name | Description |
request |
google.logging.v2.IListMonitoredResourceDescriptorsRequest
ListMonitoredResourceDescriptorsRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
ITailLogEntriesRequest
TailLogEntriesRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.TailLogEntriesCallback
Node-style callback called with the error, if any, and TailLogEntriesResponse |
Type | Description |
void |
tailLogEntries(request)
public tailLogEntries(request: google.logging.v2.ITailLogEntriesRequest): Promise<google.logging.v2.TailLogEntriesResponse>;
Calls TailLogEntries.
Name | Description |
request |
ITailLogEntriesRequest
TailLogEntriesRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
google.logging.v2.IWriteLogEntriesRequest
WriteLogEntriesRequest message or plain object |
callback |
google.logging.v2.LoggingServiceV2.WriteLogEntriesCallback
Node-style callback called with the error, if any, and WriteLogEntriesResponse |
Type | Description |
void |
writeLogEntries(request)
public writeLogEntries(request: google.logging.v2.IWriteLogEntriesRequest): Promise<google.logging.v2.WriteLogEntriesResponse>;
Calls WriteLogEntries.
Name | Description |
request |
google.logging.v2.IWriteLogEntriesRequest
WriteLogEntriesRequest message or plain object |
Type | Description |
Promise<google.logging.v2.WriteLogEntriesResponse> | Promise |