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 Stackdriver Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded.Protobuf type
google.logging.v2.LogExclusion| Modifier and Type | Method and Description |
|---|---|
LogExclusion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
LogExclusion |
build() |
LogExclusion |
buildPartial() |
LogExclusion.Builder |
clear() |
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 |
clone() |
LogExclusion |
getDefaultInstanceForType() |
java.lang.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.
|
java.lang.String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
java.lang.String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 |
setDescription(java.lang.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,
java.lang.Object value) |
LogExclusion.Builder |
setFilter(java.lang.String value)
Required.
|
LogExclusion.Builder |
setFilterBytes(com.google.protobuf.ByteString value)
Required.
|
LogExclusion.Builder |
setName(java.lang.String value)
Required.
|
LogExclusion.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
LogExclusion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
LogExclusion.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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, java.lang.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, java.lang.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, java.lang.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 java.io.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>java.io.IOExceptionpublic java.lang.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.
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.
string name = 1;getNameBytes in interface LogExclusionOrBuilderpublic LogExclusion.Builder setName(java.lang.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.
string name = 1;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.
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.
string name = 1;public java.lang.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(java.lang.String value)
Optional. A description of this exclusion.
string description = 2;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;public java.lang.String getFilter()
Required.
An [advanced logs filter](/logging/docs/view/advanced_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer 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_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
string filter = 3;getFilterBytes in interface LogExclusionOrBuilderpublic LogExclusion.Builder setFilter(java.lang.String value)
Required.
An [advanced logs filter](/logging/docs/view/advanced_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
string filter = 3;public LogExclusion.Builder clearFilter()
Required.
An [advanced logs filter](/logging/docs/view/advanced_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer 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_filters)
that matches the log entries to be excluded. By using the
[sample function](/logging/docs/view/advanced_filters#sample),
you can exclude less than 100% of the matching log entries.
For example, the following filter matches 99% of low-severity log
entries from load balancers:
"resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
string filter = 3;public boolean getDisabled()
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can use [exclusions.patch](/logging/docs/alpha-exclusion/docs/reference/v2/rest/v2/projects.exclusions/patch) 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 use [exclusions.patch](/logging/docs/alpha-exclusion/docs/reference/v2/rest/v2/projects.exclusions/patch) to change the value of this field.
bool disabled = 4;public LogExclusion.Builder clearDisabled()
Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can use [exclusions.patch](/logging/docs/alpha-exclusion/docs/reference/v2/rest/v2/projects.exclusions/patch) to change the value of this field.
bool disabled = 4;public 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>