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_historyProtobuf 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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Logging.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Logging build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Logging buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Logging.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Logging.Builder>
public Logging.Builder mergeFrom(Logging other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Logging.Builder>
java.io.IOException
public 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 LoggingOrBuilder
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;
getProducerDestinationsCount
in interface LoggingOrBuilder
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;
getProducerDestinations
in interface LoggingOrBuilder
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;
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 LoggingOrBuilder
public 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 LoggingOrBuilder
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;
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 LoggingOrBuilder
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;
getConsumerDestinationsCount
in interface LoggingOrBuilder
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;
getConsumerDestinations
in interface LoggingOrBuilder
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;
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 LoggingOrBuilder
public 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 LoggingOrBuilder
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;
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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Logging.Builder>
public final Logging.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Logging.Builder>