public static final class Logging.Builder extends GeneratedMessageV3.Builder<Logging.Builder> implements LoggingOrBuilder
Logging configuration of the service.
The following example shows how to configure logs to be sent to the
producer and consumer projects. In the example, the activity_history
log is sent to both the producer and consumer projects, whereas the
purchase_history
log is only sent to the producer project.
monitored_resources:
- type: library.googleapis.com/branch
labels:
- key: /city
description: The city where the library branch is located in.
- key: /name
description: The name of the branch.
logs:
- name: activity_history
labels:
- name: purchase_history
logging:
producer_destinations:
- monitored_resource: library.googleapis.com/branch
logs:
- activity_history
- purchase_history
consumer_destinations:
- monitored_resource: library.googleapis.com/branch
logs:
Protobuf type google.api.Logging
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllConsumerDestinations(Iterable<? extends Logging.LoggingDestination> values)
public Logging.Builder addAllConsumerDestinations(Iterable<? extends Logging.LoggingDestination> values)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.api.Logging.LoggingDestination>
|
addAllProducerDestinations(Iterable<? extends Logging.LoggingDestination> values)
public Logging.Builder addAllProducerDestinations(Iterable<? extends Logging.LoggingDestination> values)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.api.Logging.LoggingDestination>
|
addConsumerDestinations(Logging.LoggingDestination value)
public Logging.Builder addConsumerDestinations(Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
addConsumerDestinations(Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder addConsumerDestinations(Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
addConsumerDestinations(int index, Logging.LoggingDestination value)
public Logging.Builder addConsumerDestinations(int index, Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
addConsumerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder addConsumerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
addConsumerDestinationsBuilder()
public Logging.LoggingDestination.Builder addConsumerDestinationsBuilder()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
addConsumerDestinationsBuilder(int index)
public Logging.LoggingDestination.Builder addConsumerDestinationsBuilder(int index)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
index | int
|
addProducerDestinations(Logging.LoggingDestination value)
public Logging.Builder addProducerDestinations(Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
addProducerDestinations(Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder addProducerDestinations(Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
addProducerDestinations(int index, Logging.LoggingDestination value)
public Logging.Builder addProducerDestinations(int index, Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
addProducerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder addProducerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
addProducerDestinationsBuilder()
public Logging.LoggingDestination.Builder addProducerDestinationsBuilder()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
addProducerDestinationsBuilder(int index)
public Logging.LoggingDestination.Builder addProducerDestinationsBuilder(int index)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Logging.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Logging buildPartial()
clear()
public Logging.Builder clear()
Overrides
clearConsumerDestinations()
public Logging.Builder clearConsumerDestinations()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
clearField(Descriptors.FieldDescriptor field)
public Logging.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Logging.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProducerDestinations()
public Logging.Builder clearProducerDestinations()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
clone()
public Logging.Builder clone()
Overrides
getConsumerDestinations(int index)
public Logging.LoggingDestination getConsumerDestinations(int index)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
index | int
|
getConsumerDestinationsBuilder(int index)
public Logging.LoggingDestination.Builder getConsumerDestinationsBuilder(int index)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
index | int
|
getConsumerDestinationsBuilderList()
public List<Logging.LoggingDestination.Builder> getConsumerDestinationsBuilderList()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
getConsumerDestinationsCount()
public int getConsumerDestinationsCount()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Returns |
---|
Type | Description |
int | |
getConsumerDestinationsList()
public List<Logging.LoggingDestination> getConsumerDestinationsList()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
getConsumerDestinationsOrBuilder(int index)
public Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
index | int
|
getConsumerDestinationsOrBuilderList()
public List<? extends Logging.LoggingDestinationOrBuilder> getConsumerDestinationsOrBuilderList()
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Returns |
---|
Type | Description |
List<? extends com.google.api.Logging.LoggingDestinationOrBuilder> | |
getDefaultInstanceForType()
public Logging getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getProducerDestinations(int index)
public Logging.LoggingDestination getProducerDestinations(int index)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
index | int
|
getProducerDestinationsBuilder(int index)
public Logging.LoggingDestination.Builder getProducerDestinationsBuilder(int index)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
index | int
|
getProducerDestinationsBuilderList()
public List<Logging.LoggingDestination.Builder> getProducerDestinationsBuilderList()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
getProducerDestinationsCount()
public int getProducerDestinationsCount()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Returns |
---|
Type | Description |
int | |
getProducerDestinationsList()
public List<Logging.LoggingDestination> getProducerDestinationsList()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
getProducerDestinationsOrBuilder(int index)
public Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(int index)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
index | int
|
getProducerDestinationsOrBuilderList()
public List<? extends Logging.LoggingDestinationOrBuilder> getProducerDestinationsOrBuilderList()
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Returns |
---|
Type | Description |
List<? extends com.google.api.Logging.LoggingDestinationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Logging other)
public Logging.Builder mergeFrom(Logging other)
Parameter |
---|
Name | Description |
other | Logging
|
public Logging.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Logging.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Logging.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeConsumerDestinations(int index)
public Logging.Builder removeConsumerDestinations(int index)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
Parameter |
---|
Name | Description |
index | int
|
removeProducerDestinations(int index)
public Logging.Builder removeProducerDestinations(int index)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
Parameter |
---|
Name | Description |
index | int
|
setConsumerDestinations(int index, Logging.LoggingDestination value)
public Logging.Builder setConsumerDestinations(int index, Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
setConsumerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder setConsumerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
There can be multiple consumer destinations, each one must have a
different monitored resource type. A log can be used in at most
one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public Logging.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setProducerDestinations(int index, Logging.LoggingDestination value)
public Logging.Builder setProducerDestinations(int index, Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
setProducerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
public Logging.Builder setProducerDestinations(int index, Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
There can be multiple producer destinations, each one must have a
different monitored resource type. A log can be used in at most
one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Logging.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Logging.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides