Class Logging.LoggingDestination.Builder (2.11.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Logging.LoggingDestination.Builder extends GeneratedMessageV3.Builder<Logging.LoggingDestination.Builder> implements Logging.LoggingDestinationOrBuilder

Configuration of a specific logging destination (the producer project or the consumer project).

Protobuf type google.api.Logging.LoggingDestination

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLogs(Iterable<String> values)

public Logging.LoggingDestination.Builder addAllLogs(Iterable<String> values)

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Parameter
NameDescription
valuesIterable<String>

The logs to add.

Returns
TypeDescription
Logging.LoggingDestination.Builder

This builder for chaining.

addLogs(String value)

public Logging.LoggingDestination.Builder addLogs(String value)

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Parameter
NameDescription
valueString

The logs to add.

Returns
TypeDescription
Logging.LoggingDestination.Builder

This builder for chaining.

addLogsBytes(ByteString value)

public Logging.LoggingDestination.Builder addLogsBytes(ByteString value)

Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

repeated string logs = 1;

Parameter
NameDescription
valueByteString

The bytes of the logs to add.

Returns
TypeDescription
Logging.LoggingDestination.Builder

This builder for chaining.