Package com.google.api
Class Logging.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
com.google.api.Logging.Builder
- All Implemented Interfaces:
LoggingOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Logging
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllConsumerDestinations
(Iterable<? extends Logging.LoggingDestination> values) Logging configurations for sending logs to the consumer project.addAllProducerDestinations
(Iterable<? extends Logging.LoggingDestination> values) Logging configurations for sending logs to the producer project.addConsumerDestinations
(int index, Logging.LoggingDestination value) Logging configurations for sending logs to the consumer project.addConsumerDestinations
(int index, Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the consumer project.Logging configurations for sending logs to the consumer project.addConsumerDestinations
(Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the consumer project.Logging configurations for sending logs to the consumer project.addConsumerDestinationsBuilder
(int index) Logging configurations for sending logs to the consumer project.addProducerDestinations
(int index, Logging.LoggingDestination value) Logging configurations for sending logs to the producer project.addProducerDestinations
(int index, Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the producer project.Logging configurations for sending logs to the producer project.addProducerDestinations
(Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the producer project.Logging configurations for sending logs to the producer project.addProducerDestinationsBuilder
(int index) Logging configurations for sending logs to the producer project.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Logging configurations for sending logs to the consumer project.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Logging configurations for sending logs to the producer project.clone()
getConsumerDestinations
(int index) Logging configurations for sending logs to the consumer project.getConsumerDestinationsBuilder
(int index) Logging configurations for sending logs to the consumer project.Logging configurations for sending logs to the consumer project.int
Logging configurations for sending logs to the consumer project.Logging configurations for sending logs to the consumer project.getConsumerDestinationsOrBuilder
(int index) Logging configurations for sending logs to the consumer project.List<? extends Logging.LoggingDestinationOrBuilder>
Logging configurations for sending logs to the consumer project.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getProducerDestinations
(int index) Logging configurations for sending logs to the producer project.getProducerDestinationsBuilder
(int index) Logging configurations for sending logs to the producer project.Logging configurations for sending logs to the producer project.int
Logging configurations for sending logs to the producer project.Logging configurations for sending logs to the producer project.getProducerDestinationsOrBuilder
(int index) Logging configurations for sending logs to the producer project.List<? extends Logging.LoggingDestinationOrBuilder>
Logging configurations for sending logs to the producer project.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final Logging.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeConsumerDestinations
(int index) Logging configurations for sending logs to the consumer project.removeProducerDestinations
(int index) Logging configurations for sending logs to the producer project.setConsumerDestinations
(int index, Logging.LoggingDestination value) Logging configurations for sending logs to the consumer project.setConsumerDestinations
(int index, Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the consumer project.setProducerDestinations
(int index, Logging.LoggingDestination value) Logging configurations for sending logs to the producer project.setProducerDestinations
(int index, Logging.LoggingDestination.Builder builderForValue) Logging configurations for sending logs to the producer project.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Logging.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
setField
public Logging.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
setRepeatedField
public Logging.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
addRepeatedField
public Logging.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Logging.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
mergeFrom
public Logging.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Logging.Builder>
- Throws:
IOException
-
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;
- Specified by:
getProducerDestinationsList
in interfaceLoggingOrBuilder
-
getProducerDestinationsCount
public int getProducerDestinationsCount()Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
- Specified by:
getProducerDestinationsCount
in interfaceLoggingOrBuilder
-
getProducerDestinations
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;
- Specified by:
getProducerDestinations
in interfaceLoggingOrBuilder
-
setProducerDestinations
Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
-
setProducerDestinations
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;
-
addProducerDestinations
Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
-
addProducerDestinations
Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
-
addProducerDestinations
Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
-
addProducerDestinations
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;
-
addAllProducerDestinations
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;
-
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;
-
removeProducerDestinations
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;
-
getProducerDestinationsBuilder
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
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;
- Specified by:
getProducerDestinationsOrBuilder
in interfaceLoggingOrBuilder
-
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;
- Specified by:
getProducerDestinationsOrBuilderList
in interfaceLoggingOrBuilder
-
addProducerDestinationsBuilder
Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be used in at most one producer destination.
repeated .google.api.Logging.LoggingDestination producer_destinations = 1;
-
addProducerDestinationsBuilder
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;
-
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;
-
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;
- Specified by:
getConsumerDestinationsList
in interfaceLoggingOrBuilder
-
getConsumerDestinationsCount
public int getConsumerDestinationsCount()Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
- Specified by:
getConsumerDestinationsCount
in interfaceLoggingOrBuilder
-
getConsumerDestinations
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;
- Specified by:
getConsumerDestinations
in interfaceLoggingOrBuilder
-
setConsumerDestinations
Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
-
setConsumerDestinations
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;
-
addConsumerDestinations
Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
-
addConsumerDestinations
Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
-
addConsumerDestinations
Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
-
addConsumerDestinations
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;
-
addAllConsumerDestinations
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;
-
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;
-
removeConsumerDestinations
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;
-
getConsumerDestinationsBuilder
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
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;
- Specified by:
getConsumerDestinationsOrBuilder
in interfaceLoggingOrBuilder
-
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;
- Specified by:
getConsumerDestinationsOrBuilderList
in interfaceLoggingOrBuilder
-
addConsumerDestinationsBuilder
Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be used in at most one consumer destination.
repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;
-
addConsumerDestinationsBuilder
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;
-
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;
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Logging.Builder>
-