public static final class LogExclusion.Builder extends 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.LogExclusiongetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<LogExclusion.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic LogExclusion build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic LogExclusion buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic LogExclusion.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(LogExclusion other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<LogExclusion.Builder>public LogExclusion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class 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 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(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 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(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 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(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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<LogExclusion.Builder>public final LogExclusion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<LogExclusion.Builder>