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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Interface LoggingOrBuilder (2.60.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.60.0 (latest)](/java/docs/reference/proto-google-common-protos/latest/com.google.api.LoggingOrBuilder)\n- [2.59.2](/java/docs/reference/proto-google-common-protos/2.59.2/com.google.api.LoggingOrBuilder)\n- [2.58.0](/java/docs/reference/proto-google-common-protos/2.58.0/com.google.api.LoggingOrBuilder)\n- [2.57.0](/java/docs/reference/proto-google-common-protos/2.57.0/com.google.api.LoggingOrBuilder)\n- [2.56.0](/java/docs/reference/proto-google-common-protos/2.56.0/com.google.api.LoggingOrBuilder)\n- [2.54.1](/java/docs/reference/proto-google-common-protos/2.54.1/com.google.api.LoggingOrBuilder)\n- [2.53.0](/java/docs/reference/proto-google-common-protos/2.53.0/com.google.api.LoggingOrBuilder)\n- [2.52.0](/java/docs/reference/proto-google-common-protos/2.52.0/com.google.api.LoggingOrBuilder)\n- [2.51.0](/java/docs/reference/proto-google-common-protos/2.51.0/com.google.api.LoggingOrBuilder)\n- [2.50.1](/java/docs/reference/proto-google-common-protos/2.50.1/com.google.api.LoggingOrBuilder)\n- [2.49.0](/java/docs/reference/proto-google-common-protos/2.49.0/com.google.api.LoggingOrBuilder)\n- [2.48.0](/java/docs/reference/proto-google-common-protos/2.48.0/com.google.api.LoggingOrBuilder)\n- [2.46.0](/java/docs/reference/proto-google-common-protos/2.46.0/com.google.api.LoggingOrBuilder)\n- [2.45.1](/java/docs/reference/proto-google-common-protos/2.45.1/com.google.api.LoggingOrBuilder)\n- [2.44.0](/java/docs/reference/proto-google-common-protos/2.44.0/com.google.api.LoggingOrBuilder)\n- [2.43.0](/java/docs/reference/proto-google-common-protos/2.43.0/com.google.api.LoggingOrBuilder)\n- [2.42.0](/java/docs/reference/proto-google-common-protos/2.42.0/com.google.api.LoggingOrBuilder)\n- [2.41.0](/java/docs/reference/proto-google-common-protos/2.41.0/com.google.api.LoggingOrBuilder)\n- [2.40.0](/java/docs/reference/proto-google-common-protos/2.40.0/com.google.api.LoggingOrBuilder)\n- [2.39.1](/java/docs/reference/proto-google-common-protos/2.39.1/com.google.api.LoggingOrBuilder)\n- [2.38.0](/java/docs/reference/proto-google-common-protos/2.38.0/com.google.api.LoggingOrBuilder)\n- [2.37.1](/java/docs/reference/proto-google-common-protos/2.37.1/com.google.api.LoggingOrBuilder)\n- [2.36.0](/java/docs/reference/proto-google-common-protos/2.36.0/com.google.api.LoggingOrBuilder)\n- [2.34.0](/java/docs/reference/proto-google-common-protos/2.34.0/com.google.api.LoggingOrBuilder)\n- [2.33.0](/java/docs/reference/proto-google-common-protos/2.33.0/com.google.api.LoggingOrBuilder)\n- [2.32.0](/java/docs/reference/proto-google-common-protos/2.32.0/com.google.api.LoggingOrBuilder)\n- [2.30.0](/java/docs/reference/proto-google-common-protos/2.30.0/com.google.api.LoggingOrBuilder)\n- [2.29.0](/java/docs/reference/proto-google-common-protos/2.29.0/com.google.api.LoggingOrBuilder)\n- [2.28.0](/java/docs/reference/proto-google-common-protos/2.28.0/com.google.api.LoggingOrBuilder)\n- [2.27.0](/java/docs/reference/proto-google-common-protos/2.27.0/com.google.api.LoggingOrBuilder)\n- [2.26.0](/java/docs/reference/proto-google-common-protos/2.26.0/com.google.api.LoggingOrBuilder)\n- [2.25.1](/java/docs/reference/proto-google-common-protos/2.25.1/com.google.api.LoggingOrBuilder)\n- [2.24.0](/java/docs/reference/proto-google-common-protos/2.24.0/com.google.api.LoggingOrBuilder)\n- [2.23.1](/java/docs/reference/proto-google-common-protos/2.23.1/com.google.api.LoggingOrBuilder)\n- [2.22.1](/java/docs/reference/proto-google-common-protos/2.22.1/com.google.api.LoggingOrBuilder)\n- [2.21.1](/java/docs/reference/proto-google-common-protos/2.21.1/com.google.api.LoggingOrBuilder)\n- [2.15.0](/java/docs/reference/proto-google-common-protos/2.15.0/com.google.api.LoggingOrBuilder)\n- [2.14.3](/java/docs/reference/proto-google-common-protos/2.14.3/com.google.api.LoggingOrBuilder)\n- [2.13.0](/java/docs/reference/proto-google-common-protos/2.13.0/com.google.api.LoggingOrBuilder)\n- [2.12.0](/java/docs/reference/proto-google-common-protos/2.12.0/com.google.api.LoggingOrBuilder)\n- [2.11.0](/java/docs/reference/proto-google-common-protos/2.11.0/com.google.api.LoggingOrBuilder)\n- [2.10.0](/java/docs/reference/proto-google-common-protos/2.10.0/com.google.api.LoggingOrBuilder)\n- [2.9.6](/java/docs/reference/proto-google-common-protos/2.9.6/com.google.api.LoggingOrBuilder)\n- [2.8.4](/java/docs/reference/proto-google-common-protos/2.8.4/com.google.api.LoggingOrBuilder)\n- [2.7.4](/java/docs/reference/proto-google-common-protos/2.7.4/com.google.api.LoggingOrBuilder) \n\n public interface LoggingOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getConsumerDestinations(int index)\n\n public abstract Logging.LoggingDestination getConsumerDestinations(int index)\n\nLogging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.\n\n`repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;`\n\n### getConsumerDestinationsCount()\n\n public abstract int getConsumerDestinationsCount()\n\nLogging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.\n\n`repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;`\n\n### getConsumerDestinationsList()\n\n public abstract List\u003cLogging.LoggingDestination\u003e getConsumerDestinationsList()\n\nLogging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.\n\n`repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;`\n\n### getConsumerDestinationsOrBuilder(int index)\n\n public abstract Logging.LoggingDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)\n\nLogging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.\n\n`repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;`\n\n### getConsumerDestinationsOrBuilderList()\n\n public abstract List\u003c? extends Logging.LoggingDestinationOrBuilder\u003e getConsumerDestinationsOrBuilderList()\n\nLogging configurations for sending logs to the consumer project.\nThere can be multiple consumer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none consumer destination.\n\n`repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;`\n\n### getProducerDestinations(int index)\n\n public abstract Logging.LoggingDestination getProducerDestinations(int index)\n\nLogging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.\n\n`repeated .google.api.Logging.LoggingDestination producer_destinations = 1;`\n\n### getProducerDestinationsCount()\n\n public abstract int getProducerDestinationsCount()\n\nLogging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.\n\n`repeated .google.api.Logging.LoggingDestination producer_destinations = 1;`\n\n### getProducerDestinationsList()\n\n public abstract List\u003cLogging.LoggingDestination\u003e getProducerDestinationsList()\n\nLogging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.\n\n`repeated .google.api.Logging.LoggingDestination producer_destinations = 1;`\n\n### getProducerDestinationsOrBuilder(int index)\n\n public abstract Logging.LoggingDestinationOrBuilder getProducerDestinationsOrBuilder(int index)\n\nLogging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.\n\n`repeated .google.api.Logging.LoggingDestination producer_destinations = 1;`\n\n### getProducerDestinationsOrBuilderList()\n\n public abstract List\u003c? extends Logging.LoggingDestinationOrBuilder\u003e getProducerDestinationsOrBuilderList()\n\nLogging configurations for sending logs to the producer project.\nThere can be multiple producer destinations, each one must have a\ndifferent monitored resource type. A log can be used in at most\none producer destination.\n\n`repeated .google.api.Logging.LoggingDestination producer_destinations = 1;`"]]