public static final class Logging.Builder extends com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
Logging.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Logging.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Logging.Builder |
mergeFrom(Logging other) |
Logging.Builder |
mergeFrom(com.google.protobuf.Message other) |
Logging.Builder |
mergeUnknownFields(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Logging.Builder |
setUnknownFields(com.google.protobuf.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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Logging build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Logging buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Logging.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Logging.Builder>public Logging.Builder mergeFrom(Logging other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public Logging.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>public final Logging.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>