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_historyProtobuf type
google.api.Logging
Modifier and Type | Method and Description |
---|---|
Logging.Builder |
addAllConsumerDestinations(Iterable<? extends Logging.LoggingDestination> values)
Logging configurations for sending logs to the consumer project.
|
Logging.Builder |
addAllProducerDestinations(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,
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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,
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,
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, 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
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public Logging getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Logging build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Logging buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Logging.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
public Logging.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Logging.Builder>
IOException
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;
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(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 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 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 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(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 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 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
Copyright © 2021 Google LLC. All rights reserved.