/** * * * <pre> * Optional. A description of this exclusion. * </pre> * * <code>string description = 2;</code> */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; }
/** * * * <pre> * 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. * </pre> * * <code>string name = 1;</code> */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
/** * * * <pre> * Optional. A description of this exclusion. * </pre> * * <code>string description = 2;</code> */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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)"` * </pre> * * <code>string filter = 3;</code> */ public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; }
/** * * * <pre> * 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)"` * </pre> * * <code>string filter = 3;</code> */ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>string name = 1;</code> */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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)"` * </pre> * * <code>string filter = 3;</code> */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.logging.v2.LogExclusion other) { if (other == com.google.logging.v2.LogExclusion.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * 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/reference/v2/rest/v2/projects.exclusions/patch) * to change the value of this field. * </pre> * * <code>bool disabled = 4;</code> */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * 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/reference/v2/rest/v2/projects.exclusions/patch) * to change the value of this field. * </pre> * * <code>bool disabled = 4;</code> */ public Builder clearDisabled() { disabled_ = false; onChanged(); return this; }
/** * * * <pre> * Optional. A description of this exclusion. * </pre> * * <code>string description = 2;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**