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:
- key: /customer_id
- 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:
- activity_history
Protobuf type google.api.Logging| Modifier and Type | Method and Description |
|---|---|
Logging.Builder |
addAllConsumerDestinations(java.lang.Iterable<? extends Logging.LoggingDestination> values)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addAllProducerDestinations(java.lang.Iterable<? extends Logging.LoggingDestination> values)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
addConsumerDestinations(int index,
Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addConsumerDestinations(int index,
Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addConsumerDestinations(Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addConsumerDestinations(Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
|
Logging.LoggingDestination.Builder |
addConsumerDestinationsBuilder()
Logging configurations for sending logs to the consumer project.
|
Logging.LoggingDestination.Builder |
addConsumerDestinationsBuilder(int index)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addProducerDestinations(int index,
Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
addProducerDestinations(int index,
Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
addProducerDestinations(Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
addProducerDestinations(Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
|
Logging.LoggingDestination.Builder |
addProducerDestinationsBuilder()
Logging configurations for sending logs to the producer project.
|
Logging.LoggingDestination.Builder |
addProducerDestinationsBuilder(int index)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Logging |
build() |
Logging |
buildPartial() |
Logging.Builder |
clear() |
Logging.Builder |
clearConsumerDestinations()
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
clearField(Descriptors.FieldDescriptor field) |
Logging.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Logging.Builder |
clearProducerDestinations()
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
clone() |
Logging.LoggingDestination |
getConsumerDestinations(int index)
Logging configurations for sending logs to the consumer project.
|
Logging.LoggingDestination.Builder |
getConsumerDestinationsBuilder(int index)
Logging configurations for sending logs to the consumer project.
|
java.util.List<Logging.LoggingDestination.Builder> |
getConsumerDestinationsBuilderList()
Logging configurations for sending logs to the consumer project.
|
int |
getConsumerDestinationsCount()
Logging configurations for sending logs to the consumer project.
|
java.util.List<Logging.LoggingDestination> |
getConsumerDestinationsList()
Logging configurations for sending logs to the consumer project.
|
Logging.LoggingDestinationOrBuilder |
getConsumerDestinationsOrBuilder(int index)
Logging configurations for sending logs to the consumer project.
|
java.util.List<? extends Logging.LoggingDestinationOrBuilder> |
getConsumerDestinationsOrBuilderList()
Logging configurations for sending logs to the consumer project.
|
Logging |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Logging.LoggingDestination |
getProducerDestinations(int index)
Logging configurations for sending logs to the producer project.
|
Logging.LoggingDestination.Builder |
getProducerDestinationsBuilder(int index)
Logging configurations for sending logs to the producer project.
|
java.util.List<Logging.LoggingDestination.Builder> |
getProducerDestinationsBuilderList()
Logging configurations for sending logs to the producer project.
|
int |
getProducerDestinationsCount()
Logging configurations for sending logs to the producer project.
|
java.util.List<Logging.LoggingDestination> |
getProducerDestinationsList()
Logging configurations for sending logs to the producer project.
|
Logging.LoggingDestinationOrBuilder |
getProducerDestinationsOrBuilder(int index)
Logging configurations for sending logs to the producer project.
|
java.util.List<? extends Logging.LoggingDestinationOrBuilder> |
getProducerDestinationsOrBuilderList()
Logging configurations for sending logs to the producer project.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Logging.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Logging.Builder |
mergeFrom(Logging other) |
Logging.Builder |
mergeFrom(Message other) |
Logging.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Logging.Builder |
removeConsumerDestinations(int index)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
removeProducerDestinations(int index)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
setConsumerDestinations(int index,
Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
setConsumerDestinations(int index,
Logging.LoggingDestination value)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Logging.Builder |
setProducerDestinations(int index,
Logging.LoggingDestination.Builder builderForValue)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
setProducerDestinations(int index,
Logging.LoggingDestination value)
Logging configurations for sending logs to the producer project.
|
Logging.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Logging.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Logging.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Logging.Builder>public Logging getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Logging build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Logging buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Logging.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Logging.Builder>public Logging.Builder mergeFrom(Logging other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Logging.Builder>java.io.IOExceptionpublic java.util.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;getProducerDestinationsList in interface LoggingOrBuilderpublic 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;getProducerDestinationsCount in interface LoggingOrBuilderpublic 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;getProducerDestinations in interface LoggingOrBuilderpublic 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;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;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;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;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;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;public Logging.Builder addAllProducerDestinations(java.lang.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;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;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;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;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;getProducerDestinationsOrBuilder in interface LoggingOrBuilderpublic java.util.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;getProducerDestinationsOrBuilderList in interface LoggingOrBuilderpublic 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;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;public java.util.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;public java.util.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;getConsumerDestinationsList in interface LoggingOrBuilderpublic 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;getConsumerDestinationsCount in interface LoggingOrBuilderpublic 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;getConsumerDestinations in interface LoggingOrBuilderpublic 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;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;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;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;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;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;public Logging.Builder addAllConsumerDestinations(java.lang.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;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;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;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;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;getConsumerDestinationsOrBuilder in interface LoggingOrBuilderpublic java.util.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;getConsumerDestinationsOrBuilderList in interface LoggingOrBuilderpublic 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;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;public java.util.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;public final Logging.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Logging.Builder>public final Logging.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Logging.Builder>