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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LogExclusion.BuilderImplements
LogExclusionOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LogExclusion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LogExclusion.Builder |
build()
public LogExclusion build()
Type | Description |
LogExclusion |
buildPartial()
public LogExclusion buildPartial()
Type | Description |
LogExclusion |
clear()
public LogExclusion.Builder clear()
Type | Description |
LogExclusion.Builder |
clearCreateTime()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
LogExclusion.Builder |
clearDescription()
public LogExclusion.Builder clearDescription()
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
LogExclusion.Builder | This builder for chaining. |
clearDisabled()
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 to change the value of this field.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
LogExclusion.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public LogExclusion.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LogExclusion.Builder |
clearFilter()
public LogExclusion.Builder clearFilter()
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];
Type | Description |
LogExclusion.Builder | This builder for chaining. |
clearName()
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 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
LogExclusion.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LogExclusion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LogExclusion.Builder |
clearUpdateTime()
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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
LogExclusion.Builder |
clone()
public LogExclusion.Builder clone()
Type | Description |
LogExclusion.Builder |
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];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public LogExclusion getDefaultInstanceForType()
Type | Description |
LogExclusion |
getDescription()
public String getDescription()
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
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];
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];
Type | Description |
ByteString | The bytes for filter. |
getName()
public 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 [(.google.api.field_behavior) = REQUIRED];
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];
Type | Description |
ByteString | The bytes for name. |
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];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
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];
Type | Description |
TimestampOrBuilder |
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];
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];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public LogExclusion.Builder mergeCreateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
LogExclusion.Builder |
mergeFrom(LogExclusion other)
public LogExclusion.Builder mergeFrom(LogExclusion other)
Name | Description |
other | LogExclusion |
Type | Description |
LogExclusion.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LogExclusion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LogExclusion.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LogExclusion.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LogExclusion.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LogExclusion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LogExclusion.Builder |
mergeUpdateTime(Timestamp value)
public LogExclusion.Builder mergeUpdateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
LogExclusion.Builder |
setCreateTime(Timestamp value)
public LogExclusion.Builder setCreateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
LogExclusion.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public LogExclusion.Builder setCreateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
LogExclusion.Builder |
setDescription(String value)
public LogExclusion.Builder setDescription(String value)
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The description to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public LogExclusion.Builder setDescriptionBytes(ByteString value)
Optional. A description of this exclusion.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setDisabled(boolean value)
public 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 to change the value of this field.
bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | boolean The disabled to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public LogExclusion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LogExclusion.Builder |
setFilter(String value)
public LogExclusion.Builder setFilter(String value)
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];
Name | Description |
value | String The filter to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setFilterBytes(ByteString value)
public LogExclusion.Builder setFilterBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for filter to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setName(String value)
public 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 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The name to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setNameBytes(ByteString value)
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. First character has to be
alphanumeric.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
LogExclusion.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LogExclusion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LogExclusion.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LogExclusion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LogExclusion.Builder |
setUpdateTime(Timestamp value)
public LogExclusion.Builder setUpdateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
LogExclusion.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public LogExclusion.Builder setUpdateTime(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 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
LogExclusion.Builder |