Class Logging.LoggingDestination.Builder (2.13.0)

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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Logging.LoggingDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

build()

public Logging.LoggingDestination build()
Returns
TypeDescription
Logging.LoggingDestination

buildPartial()

public Logging.LoggingDestination buildPartial()
Returns
TypeDescription
Logging.LoggingDestination

clear()

public Logging.LoggingDestination.Builder clear()
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Logging.LoggingDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Logging.LoggingDestination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Logging.LoggingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

clone()

public Logging.LoggingDestination.Builder clone()
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

getDefaultInstanceForType()

public Logging.LoggingDestination getDefaultInstanceForType()
Returns
TypeDescription
Logging.LoggingDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for monitoredResource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Logging.LoggingDestination other)

public Logging.LoggingDestination.Builder mergeFrom(Logging.LoggingDestination other)
Parameter
NameDescription
otherLogging.LoggingDestination
Returns
TypeDescription
Logging.LoggingDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Logging.LoggingDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Logging.LoggingDestination.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Logging.LoggingDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Logging.LoggingDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The logs to set.

Returns
TypeDescription
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
NameDescription
valueString

The monitoredResource to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for monitoredResource to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Logging.LoggingDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Logging.LoggingDestination.Builder
Overrides