Class Logging.LoggingDestination.Builder (2.39.1)

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
Type Description
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
Name Description
values Iterable<String>

The logs to add.

Returns
Type Description
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
Name Description
value String

The logs to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the logs to add.

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Logging.LoggingDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

build()

public Logging.LoggingDestination build()
Returns
Type Description
Logging.LoggingDestination

buildPartial()

public Logging.LoggingDestination buildPartial()
Returns
Type Description
Logging.LoggingDestination

clear()

public Logging.LoggingDestination.Builder clear()
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Logging.LoggingDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

clearLogs()

public Logging.LoggingDestination.Builder clearLogs()

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;

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

clearMonitoredResource()

public Logging.LoggingDestination.Builder clearMonitoredResource()

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Logging.LoggingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

clone()

public Logging.LoggingDestination.Builder clone()
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

getDefaultInstanceForType()

public Logging.LoggingDestination getDefaultInstanceForType()
Returns
Type Description
Logging.LoggingDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLogs(int index)

public String getLogs(int index)

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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The logs at the given index.

getLogsBytes(int index)

public ByteString getLogsBytes(int index)

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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the logs at the given index.

getLogsCount()

public int getLogsCount()

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;

Returns
Type Description
int

The count of logs.

getLogsList()

public ProtocolStringList getLogsList()

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;

Returns
Type Description
ProtocolStringList

A list containing the logs.

getMonitoredResource()

public String getMonitoredResource()

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Returns
Type Description
String

The monitoredResource.

getMonitoredResourceBytes()

public ByteString getMonitoredResourceBytes()

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Returns
Type Description
ByteString

The bytes for monitoredResource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Logging.LoggingDestination other)

public Logging.LoggingDestination.Builder mergeFrom(Logging.LoggingDestination other)
Parameter
Name Description
other Logging.LoggingDestination
Returns
Type Description
Logging.LoggingDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Logging.LoggingDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Logging.LoggingDestination.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Logging.LoggingDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Logging.LoggingDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

setLogs(int index, String value)

public Logging.LoggingDestination.Builder setLogs(int index, 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;

Parameters
Name Description
index int

The index to set the value at.

value String

The logs to set.

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

setMonitoredResource(String value)

public Logging.LoggingDestination.Builder setMonitoredResource(String value)

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Parameter
Name Description
value String

The monitoredResource to set.

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

setMonitoredResourceBytes(ByteString value)

public Logging.LoggingDestination.Builder setMonitoredResourceBytes(ByteString value)

The monitored resource type. The type must be defined in the Service.monitored_resources section.

string monitored_resource = 3;

Parameter
Name Description
value ByteString

The bytes for monitoredResource to set.

Returns
Type Description
Logging.LoggingDestination.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Logging.LoggingDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Logging.LoggingDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Logging.LoggingDestination.Builder
Overrides