Send feedback Class LogExclusion (3.7.6) Stay organized with collections Save and categorize content based on your preferences.
Version 3.7.6keyboard_arrow_down
public final class LogExclusion extends GeneratedMessageV3 implements LogExclusionOrBuilder
Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don't apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.
Protobuf type google.logging.v2.LogExclusion
Static Fields CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
Field Value FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Field Value NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value Static Methods getDefaultInstance()
public static LogExclusion getDefaultInstance ()
Returns getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns newBuilder()
public static LogExclusion . Builder newBuilder ()
Returns newBuilder(LogExclusion )
public static LogExclusion . Builder newBuilder ( LogExclusion )
Parameter Returns
public static LogExclusion parseDelimitedFrom ( InputStream input )
Parameter Returns Exceptions
public static LogExclusion parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(byte[] data)
public static LogExclusion parseFrom ( byte [] data )
Parameter Name Description data byte []
Returns Exceptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LogExclusion parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(ByteString data)
public static LogExclusion parseFrom ( ByteString data )
Parameter Returns Exceptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LogExclusion parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions
public static LogExclusion parseFrom ( CodedInputStream input )
Parameter Returns Exceptions
public static LogExclusion parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions
public static LogExclusion parseFrom ( InputStream input )
Parameter Returns Exceptions
public static LogExclusion parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parseFrom(ByteBuffer data)
public static LogExclusion parseFrom ( ByteBuffer data )
Parameter Returns Exceptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LogExclusion parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters Returns Exceptions parser()
public static Parser<LogExclusion> parser ()
Returns Methods equals(Object obj)
public boolean equals ( Object obj )
Parameter Returns Overrides getCreateTime()
public Timestamp getCreateTime ()
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder ()
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns getDefaultInstanceForType()
public LogExclusion getDefaultInstanceForType ()
Returns getDescription()
public String getDescription ()
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns Type Description String The description.
getDescriptionBytes()
public ByteString getDescriptionBytes ()
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns Type Description ByteString The bytes for description.
getDisabled()
public boolean getDisabled ()
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns Type Description boolean The disabled.
getFilter()
public String getFilter ()
Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function , you can exclude less than 100% of the matching log entries. For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets: resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
string filter = 3 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description String The filter.
getFilterBytes()
public ByteString getFilterBytes ()
Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function , you can exclude less than 100% of the matching log entries. For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets: resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
string filter = 3 [(.google.api.field_behavior) = REQUIRED];
Returns getName() Required. A client-assigned identifier, such as "load-balancer-exclusion"
. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description String The name.
getNameBytes()
public ByteString getNameBytes ()
Required. A client-assigned identifier, such as "load-balancer-exclusion"
. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns getParserForType()
public Parser<LogExclusion> getParserForType ()
Returns Overrides getSerializedSize()
public int getSerializedSize ()
Returns Overrides getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns Overrides getUpdateTime()
public Timestamp getUpdateTime ()
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder ()
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns hasCreateTime()
public boolean hasCreateTime ()
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description boolean Whether the createTime field is set.
hasUpdateTime()
public boolean hasUpdateTime ()
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns Type Description boolean Whether the updateTime field is set.
hashCode() Returns Overrides internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns Overrides isInitialized()
public final boolean isInitialized ()
Returns Overrides newBuilderForType()
public LogExclusion . Builder newBuilderForType ()
Returns newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LogExclusion . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter Returns Overrides newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter Returns Overrides toBuilder()
public LogExclusion . Builder toBuilder ()
Returns writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter Overrides Exceptions Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-05 UTC.
Need to tell us more? [[["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-06-05 UTC."],[],[]]