public final class Logging extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONSUMER_DESTINATIONS_FIELD_NUMBER
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PRODUCER_DESTINATIONS_FIELD_NUMBER
public static final int PRODUCER_DESTINATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Logging getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Logging.Builder newBuilder()
newBuilder(Logging prototype)
public static Logging.Builder newBuilder(Logging prototype)
Parameter |
---|
Name | Description |
prototype | Logging
|
public static Logging parseDelimitedFrom(InputStream input)
public static Logging parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Logging parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Logging parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Logging parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Logging parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Logging parseFrom(CodedInputStream input)
public static Logging parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Logging parseFrom(InputStream input)
public static Logging parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Logging parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Logging parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Logging> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getConsumerDestinations(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
int | |
getConsumerDestinationsList()
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;
getConsumerDestinationsOrBuilder(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
getConsumerDestinationsOrBuilderList()
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;
Returns |
---|
Type | Description |
List<? extends com.google.api.Logging.LoggingDestinationOrBuilder> | |
getDefaultInstanceForType()
public Logging getDefaultInstanceForType()
getParserForType()
public Parser<Logging> getParserForType()
Overrides
getProducerDestinations(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
int | |
getProducerDestinationsList()
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;
getProducerDestinationsOrBuilder(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
getProducerDestinationsOrBuilderList()
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;
Returns |
---|
Type | Description |
List<? extends com.google.api.Logging.LoggingDestinationOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Logging.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Logging.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Logging.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides