public static final class LogExclusion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder> implements LogExclusionOrBuilder
Specifies a set of log entries that are not to be stored in Logging. If your GCP resource receives a large volume of logs, you can use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Note that organization-level and folder-level exclusions don't apply to child resources, and that you can't exclude audit log entries.Protobuf type
google.logging.v2.LogExclusion| Modifier and Type | Method and Description |
|---|---|
LogExclusion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LogExclusion |
build() |
LogExclusion |
buildPartial() |
LogExclusion.Builder |
clear() |
LogExclusion.Builder |
clearCreateTime()
Output only.
|
LogExclusion.Builder |
clearDescription()
Optional.
|
LogExclusion.Builder |
clearDisabled()
Optional.
|
LogExclusion.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
LogExclusion.Builder |
clearFilter()
Required.
|
LogExclusion.Builder |
clearName()
Required.
|
LogExclusion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
LogExclusion.Builder |
clearUpdateTime()
Output only.
|
LogExclusion.Builder |
clone() |
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
LogExclusion |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDisabled()
Optional.
|
String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
LogExclusion.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
LogExclusion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
LogExclusion.Builder |
mergeFrom(LogExclusion other) |
LogExclusion.Builder |
mergeFrom(com.google.protobuf.Message other) |
LogExclusion.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LogExclusion.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
LogExclusion.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
LogExclusion.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
LogExclusion.Builder |
setDescription(String value)
Optional.
|
LogExclusion.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.
|
LogExclusion.Builder |
setDisabled(boolean value)
Optional.
|
LogExclusion.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
LogExclusion.Builder |
setFilter(String value)
Required.
|
LogExclusion.Builder |
setFilterBytes(com.google.protobuf.ByteString value)
Required.
|
LogExclusion.Builder |
setName(String value)
Required.
|
LogExclusion.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
LogExclusion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
LogExclusion.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
LogExclusion.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
LogExclusion.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic LogExclusion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic LogExclusion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic LogExclusion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(LogExclusion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<LogExclusion.Builder>IOExceptionpublic String 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;getName in interface LogExclusionOrBuilderpublic com.google.protobuf.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;getNameBytes in interface LogExclusionOrBuilderpublic LogExclusion.Builder setName(String value)
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;value - The name to set.public LogExclusion.Builder clearName()
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;public LogExclusion.Builder setNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for name to set.public String getDescription()
Optional. A description of this exclusion.
string description = 2;getDescription in interface LogExclusionOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Optional. A description of this exclusion.
string description = 2;getDescriptionBytes in interface LogExclusionOrBuilderpublic LogExclusion.Builder setDescription(String value)
Optional. A description of this exclusion.
string description = 2;value - The description to set.public LogExclusion.Builder clearDescription()
Optional. A description of this exclusion.
string description = 2;public LogExclusion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. A description of this exclusion.
string description = 2;value - The bytes for description to set.public String getFilter()
Required. An [advanced logs filter](/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the [sample function](/logging/docs/view/advanced-queries#sample), 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;getFilter in interface LogExclusionOrBuilderpublic com.google.protobuf.ByteString getFilterBytes()
Required. An [advanced logs filter](/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the [sample function](/logging/docs/view/advanced-queries#sample), 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;getFilterBytes in interface LogExclusionOrBuilderpublic LogExclusion.Builder setFilter(String value)
Required. An [advanced logs filter](/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the [sample function](/logging/docs/view/advanced-queries#sample), 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;value - The filter to set.public LogExclusion.Builder clearFilter()
Required. An [advanced logs filter](/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the [sample function](/logging/docs/view/advanced-queries#sample), 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;public LogExclusion.Builder setFilterBytes(com.google.protobuf.ByteString value)
Required. An [advanced logs filter](/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the [sample function](/logging/docs/view/advanced-queries#sample), 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;value - The bytes for filter to set.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][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the value of this field.
bool disabled = 4;getDisabled in interface LogExclusionOrBuilderpublic LogExclusion.Builder setDisabled(boolean value)
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can [update an exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the value of this field.
bool disabled = 4;value - The disabled to set.public LogExclusion.Builder clearDisabled()
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can [update an exclusion][google.logging.v2.ConfigServiceV2.UpdateExclusion] to change the value of this field.
bool disabled = 4;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;hasCreateTime in interface LogExclusionOrBuilderpublic com.google.protobuf.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;getCreateTime in interface LogExclusionOrBuilderpublic LogExclusion.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5;public LogExclusion.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5;public LogExclusion.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5;public LogExclusion.Builder clearCreateTime()
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp create_time = 5;public com.google.protobuf.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;getCreateTimeOrBuilder in interface LogExclusionOrBuilderpublic 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;hasUpdateTime in interface LogExclusionOrBuilderpublic com.google.protobuf.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;getUpdateTime in interface LogExclusionOrBuilderpublic LogExclusion.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6;public LogExclusion.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6;public LogExclusion.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6;public LogExclusion.Builder clearUpdateTime()
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6;public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions.
.google.protobuf.Timestamp update_time = 6;public com.google.protobuf.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;getUpdateTimeOrBuilder in interface LogExclusionOrBuilderpublic final LogExclusion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>public final LogExclusion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LogExclusion.Builder>Copyright © 2020 Google LLC. All rights reserved.