
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion}
*/
public final class SecurityPolicyRulePreconfiguredWafConfigExclusion
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion)
SecurityPolicyRulePreconfiguredWafConfigExclusionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SecurityPolicyRulePreconfiguredWafConfigExclusion.newBuilder() to construct.
private SecurityPolicyRulePreconfiguredWafConfigExclusion(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SecurityPolicyRulePreconfiguredWafConfigExclusion() {
requestCookiesToExclude_ = java.util.Collections.emptyList();
requestHeadersToExclude_ = java.util.Collections.emptyList();
requestQueryParamsToExclude_ = java.util.Collections.emptyList();
requestUrisToExclude_ = java.util.Collections.emptyList();
targetRuleIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
targetRuleSet_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SecurityPolicyRulePreconfiguredWafConfigExclusion();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.class,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.Builder
.class);
}
private int bitField0_;
public static final int REQUEST_COOKIES_TO_EXCLUDE_FIELD_NUMBER = 156757878;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestCookiesToExclude_;
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestCookiesToExcludeList() {
return requestCookiesToExclude_;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestCookiesToExcludeOrBuilderList() {
return requestCookiesToExclude_;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
@java.lang.Override
public int getRequestCookiesToExcludeCount() {
return requestCookiesToExclude_.size();
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestCookiesToExclude(int index) {
return requestCookiesToExclude_.get(index);
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestCookiesToExcludeOrBuilder(int index) {
return requestCookiesToExclude_.get(index);
}
public static final int REQUEST_HEADERS_TO_EXCLUDE_FIELD_NUMBER = 63230495;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestHeadersToExclude_;
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestHeadersToExcludeList() {
return requestHeadersToExclude_;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestHeadersToExcludeOrBuilderList() {
return requestHeadersToExclude_;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
@java.lang.Override
public int getRequestHeadersToExcludeCount() {
return requestHeadersToExclude_.size();
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestHeadersToExclude(int index) {
return requestHeadersToExclude_.get(index);
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestHeadersToExcludeOrBuilder(int index) {
return requestHeadersToExclude_.get(index);
}
public static final int REQUEST_QUERY_PARAMS_TO_EXCLUDE_FIELD_NUMBER = 340692744;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestQueryParamsToExclude_;
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestQueryParamsToExcludeList() {
return requestQueryParamsToExclude_;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestQueryParamsToExcludeOrBuilderList() {
return requestQueryParamsToExclude_;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
@java.lang.Override
public int getRequestQueryParamsToExcludeCount() {
return requestQueryParamsToExclude_.size();
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestQueryParamsToExclude(int index) {
return requestQueryParamsToExclude_.get(index);
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestQueryParamsToExcludeOrBuilder(int index) {
return requestQueryParamsToExclude_.get(index);
}
public static final int REQUEST_URIS_TO_EXCLUDE_FIELD_NUMBER = 90690846;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestUrisToExclude_;
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestUrisToExcludeList() {
return requestUrisToExclude_;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestUrisToExcludeOrBuilderList() {
return requestUrisToExclude_;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
@java.lang.Override
public int getRequestUrisToExcludeCount() {
return requestUrisToExclude_.size();
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestUrisToExclude(int index) {
return requestUrisToExclude_.get(index);
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestUrisToExcludeOrBuilder(int index) {
return requestUrisToExclude_.get(index);
}
public static final int TARGET_RULE_IDS_FIELD_NUMBER = 498430435;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList targetRuleIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @return A list containing the targetRuleIds.
*/
public com.google.protobuf.ProtocolStringList getTargetRuleIdsList() {
return targetRuleIds_;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @return The count of targetRuleIds.
*/
public int getTargetRuleIdsCount() {
return targetRuleIds_.size();
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param index The index of the element to return.
* @return The targetRuleIds at the given index.
*/
public java.lang.String getTargetRuleIds(int index) {
return targetRuleIds_.get(index);
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param index The index of the value to return.
* @return The bytes of the targetRuleIds at the given index.
*/
public com.google.protobuf.ByteString getTargetRuleIdsBytes(int index) {
return targetRuleIds_.getByteString(index);
}
public static final int TARGET_RULE_SET_FIELD_NUMBER = 498440077;
@SuppressWarnings("serial")
private volatile java.lang.Object targetRuleSet_ = "";
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return Whether the targetRuleSet field is set.
*/
@java.lang.Override
public boolean hasTargetRuleSet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return The targetRuleSet.
*/
@java.lang.Override
public java.lang.String getTargetRuleSet() {
java.lang.Object ref = targetRuleSet_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetRuleSet_ = s;
return s;
}
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return The bytes for targetRuleSet.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTargetRuleSetBytes() {
java.lang.Object ref = targetRuleSet_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
targetRuleSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < requestHeadersToExclude_.size(); i++) {
output.writeMessage(63230495, requestHeadersToExclude_.get(i));
}
for (int i = 0; i < requestUrisToExclude_.size(); i++) {
output.writeMessage(90690846, requestUrisToExclude_.get(i));
}
for (int i = 0; i < requestCookiesToExclude_.size(); i++) {
output.writeMessage(156757878, requestCookiesToExclude_.get(i));
}
for (int i = 0; i < requestQueryParamsToExclude_.size(); i++) {
output.writeMessage(340692744, requestQueryParamsToExclude_.get(i));
}
for (int i = 0; i < targetRuleIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 498430435, targetRuleIds_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 498440077, targetRuleSet_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < requestHeadersToExclude_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
63230495, requestHeadersToExclude_.get(i));
}
for (int i = 0; i < requestUrisToExclude_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
90690846, requestUrisToExclude_.get(i));
}
for (int i = 0; i < requestCookiesToExclude_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
156757878, requestCookiesToExclude_.get(i));
}
for (int i = 0; i < requestQueryParamsToExclude_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
340692744, requestQueryParamsToExclude_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < targetRuleIds_.size(); i++) {
dataSize += computeStringSizeNoTag(targetRuleIds_.getRaw(i));
}
size += dataSize;
size += 5 * getTargetRuleIdsList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(498440077, targetRuleSet_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj
instanceof com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion other =
(com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion) obj;
if (!getRequestCookiesToExcludeList().equals(other.getRequestCookiesToExcludeList()))
return false;
if (!getRequestHeadersToExcludeList().equals(other.getRequestHeadersToExcludeList()))
return false;
if (!getRequestQueryParamsToExcludeList().equals(other.getRequestQueryParamsToExcludeList()))
return false;
if (!getRequestUrisToExcludeList().equals(other.getRequestUrisToExcludeList())) return false;
if (!getTargetRuleIdsList().equals(other.getTargetRuleIdsList())) return false;
if (hasTargetRuleSet() != other.hasTargetRuleSet()) return false;
if (hasTargetRuleSet()) {
if (!getTargetRuleSet().equals(other.getTargetRuleSet())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRequestCookiesToExcludeCount() > 0) {
hash = (37 * hash) + REQUEST_COOKIES_TO_EXCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getRequestCookiesToExcludeList().hashCode();
}
if (getRequestHeadersToExcludeCount() > 0) {
hash = (37 * hash) + REQUEST_HEADERS_TO_EXCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getRequestHeadersToExcludeList().hashCode();
}
if (getRequestQueryParamsToExcludeCount() > 0) {
hash = (37 * hash) + REQUEST_QUERY_PARAMS_TO_EXCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getRequestQueryParamsToExcludeList().hashCode();
}
if (getRequestUrisToExcludeCount() > 0) {
hash = (37 * hash) + REQUEST_URIS_TO_EXCLUDE_FIELD_NUMBER;
hash = (53 * hash) + getRequestUrisToExcludeList().hashCode();
}
if (getTargetRuleIdsCount() > 0) {
hash = (37 * hash) + TARGET_RULE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getTargetRuleIdsList().hashCode();
}
if (hasTargetRuleSet()) {
hash = (37 * hash) + TARGET_RULE_SET_FIELD_NUMBER;
hash = (53 * hash) + getTargetRuleSet().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion)
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.class,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.Builder
.class);
}
// Construct using
// com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (requestCookiesToExcludeBuilder_ == null) {
requestCookiesToExclude_ = java.util.Collections.emptyList();
} else {
requestCookiesToExclude_ = null;
requestCookiesToExcludeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (requestHeadersToExcludeBuilder_ == null) {
requestHeadersToExclude_ = java.util.Collections.emptyList();
} else {
requestHeadersToExclude_ = null;
requestHeadersToExcludeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (requestQueryParamsToExcludeBuilder_ == null) {
requestQueryParamsToExclude_ = java.util.Collections.emptyList();
} else {
requestQueryParamsToExclude_ = null;
requestQueryParamsToExcludeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (requestUrisToExcludeBuilder_ == null) {
requestUrisToExclude_ = java.util.Collections.emptyList();
} else {
requestUrisToExclude_ = null;
requestUrisToExcludeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
targetRuleIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
targetRuleSet_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
getDefaultInstanceForType() {
return com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion build() {
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
buildPartial() {
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion result =
new com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion result) {
if (requestCookiesToExcludeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
requestCookiesToExclude_ =
java.util.Collections.unmodifiableList(requestCookiesToExclude_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.requestCookiesToExclude_ = requestCookiesToExclude_;
} else {
result.requestCookiesToExclude_ = requestCookiesToExcludeBuilder_.build();
}
if (requestHeadersToExcludeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
requestHeadersToExclude_ =
java.util.Collections.unmodifiableList(requestHeadersToExclude_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.requestHeadersToExclude_ = requestHeadersToExclude_;
} else {
result.requestHeadersToExclude_ = requestHeadersToExcludeBuilder_.build();
}
if (requestQueryParamsToExcludeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
requestQueryParamsToExclude_ =
java.util.Collections.unmodifiableList(requestQueryParamsToExclude_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.requestQueryParamsToExclude_ = requestQueryParamsToExclude_;
} else {
result.requestQueryParamsToExclude_ = requestQueryParamsToExcludeBuilder_.build();
}
if (requestUrisToExcludeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
requestUrisToExclude_ = java.util.Collections.unmodifiableList(requestUrisToExclude_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.requestUrisToExclude_ = requestUrisToExclude_;
} else {
result.requestUrisToExclude_ = requestUrisToExcludeBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000010) != 0)) {
targetRuleIds_.makeImmutable();
result.targetRuleIds_ = targetRuleIds_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.targetRuleSet_ = targetRuleSet_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion) {
return mergeFrom(
(com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion other) {
if (other
== com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
.getDefaultInstance()) return this;
if (requestCookiesToExcludeBuilder_ == null) {
if (!other.requestCookiesToExclude_.isEmpty()) {
if (requestCookiesToExclude_.isEmpty()) {
requestCookiesToExclude_ = other.requestCookiesToExclude_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.addAll(other.requestCookiesToExclude_);
}
onChanged();
}
} else {
if (!other.requestCookiesToExclude_.isEmpty()) {
if (requestCookiesToExcludeBuilder_.isEmpty()) {
requestCookiesToExcludeBuilder_.dispose();
requestCookiesToExcludeBuilder_ = null;
requestCookiesToExclude_ = other.requestCookiesToExclude_;
bitField0_ = (bitField0_ & ~0x00000001);
requestCookiesToExcludeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRequestCookiesToExcludeFieldBuilder()
: null;
} else {
requestCookiesToExcludeBuilder_.addAllMessages(other.requestCookiesToExclude_);
}
}
}
if (requestHeadersToExcludeBuilder_ == null) {
if (!other.requestHeadersToExclude_.isEmpty()) {
if (requestHeadersToExclude_.isEmpty()) {
requestHeadersToExclude_ = other.requestHeadersToExclude_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.addAll(other.requestHeadersToExclude_);
}
onChanged();
}
} else {
if (!other.requestHeadersToExclude_.isEmpty()) {
if (requestHeadersToExcludeBuilder_.isEmpty()) {
requestHeadersToExcludeBuilder_.dispose();
requestHeadersToExcludeBuilder_ = null;
requestHeadersToExclude_ = other.requestHeadersToExclude_;
bitField0_ = (bitField0_ & ~0x00000002);
requestHeadersToExcludeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRequestHeadersToExcludeFieldBuilder()
: null;
} else {
requestHeadersToExcludeBuilder_.addAllMessages(other.requestHeadersToExclude_);
}
}
}
if (requestQueryParamsToExcludeBuilder_ == null) {
if (!other.requestQueryParamsToExclude_.isEmpty()) {
if (requestQueryParamsToExclude_.isEmpty()) {
requestQueryParamsToExclude_ = other.requestQueryParamsToExclude_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.addAll(other.requestQueryParamsToExclude_);
}
onChanged();
}
} else {
if (!other.requestQueryParamsToExclude_.isEmpty()) {
if (requestQueryParamsToExcludeBuilder_.isEmpty()) {
requestQueryParamsToExcludeBuilder_.dispose();
requestQueryParamsToExcludeBuilder_ = null;
requestQueryParamsToExclude_ = other.requestQueryParamsToExclude_;
bitField0_ = (bitField0_ & ~0x00000004);
requestQueryParamsToExcludeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRequestQueryParamsToExcludeFieldBuilder()
: null;
} else {
requestQueryParamsToExcludeBuilder_.addAllMessages(other.requestQueryParamsToExclude_);
}
}
}
if (requestUrisToExcludeBuilder_ == null) {
if (!other.requestUrisToExclude_.isEmpty()) {
if (requestUrisToExclude_.isEmpty()) {
requestUrisToExclude_ = other.requestUrisToExclude_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.addAll(other.requestUrisToExclude_);
}
onChanged();
}
} else {
if (!other.requestUrisToExclude_.isEmpty()) {
if (requestUrisToExcludeBuilder_.isEmpty()) {
requestUrisToExcludeBuilder_.dispose();
requestUrisToExcludeBuilder_ = null;
requestUrisToExclude_ = other.requestUrisToExclude_;
bitField0_ = (bitField0_ & ~0x00000008);
requestUrisToExcludeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRequestUrisToExcludeFieldBuilder()
: null;
} else {
requestUrisToExcludeBuilder_.addAllMessages(other.requestUrisToExclude_);
}
}
}
if (!other.targetRuleIds_.isEmpty()) {
if (targetRuleIds_.isEmpty()) {
targetRuleIds_ = other.targetRuleIds_;
bitField0_ |= 0x00000010;
} else {
ensureTargetRuleIdsIsMutable();
targetRuleIds_.addAll(other.targetRuleIds_);
}
onChanged();
}
if (other.hasTargetRuleSet()) {
targetRuleSet_ = other.targetRuleSet_;
bitField0_ |= 0x00000020;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 505843962:
{
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
m =
input.readMessage(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.parser(),
extensionRegistry);
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.add(m);
} else {
requestHeadersToExcludeBuilder_.addMessage(m);
}
break;
} // case 505843962
case 725526770:
{
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
m =
input.readMessage(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.parser(),
extensionRegistry);
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.add(m);
} else {
requestUrisToExcludeBuilder_.addMessage(m);
}
break;
} // case 725526770
case 1254063026:
{
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
m =
input.readMessage(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.parser(),
extensionRegistry);
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.add(m);
} else {
requestCookiesToExcludeBuilder_.addMessage(m);
}
break;
} // case 1254063026
case -1569425342:
{
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
m =
input.readMessage(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.parser(),
extensionRegistry);
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.add(m);
} else {
requestQueryParamsToExcludeBuilder_.addMessage(m);
}
break;
} // case -1569425342
case -307523814:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTargetRuleIdsIsMutable();
targetRuleIds_.add(s);
break;
} // case -307523814
case -307446678:
{
targetRuleSet_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case -307446678
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestCookiesToExclude_ = java.util.Collections.emptyList();
private void ensureRequestCookiesToExcludeIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
requestCookiesToExclude_ =
new java.util.ArrayList<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>(
requestCookiesToExclude_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
requestCookiesToExcludeBuilder_;
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestCookiesToExcludeList() {
if (requestCookiesToExcludeBuilder_ == null) {
return java.util.Collections.unmodifiableList(requestCookiesToExclude_);
} else {
return requestCookiesToExcludeBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public int getRequestCookiesToExcludeCount() {
if (requestCookiesToExcludeBuilder_ == null) {
return requestCookiesToExclude_.size();
} else {
return requestCookiesToExcludeBuilder_.getCount();
}
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestCookiesToExclude(int index) {
if (requestCookiesToExcludeBuilder_ == null) {
return requestCookiesToExclude_.get(index);
} else {
return requestCookiesToExcludeBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder setRequestCookiesToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestCookiesToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.set(index, value);
onChanged();
} else {
requestCookiesToExcludeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder setRequestCookiesToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.set(index, builderForValue.build());
onChanged();
} else {
requestCookiesToExcludeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder addRequestCookiesToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestCookiesToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.add(value);
onChanged();
} else {
requestCookiesToExcludeBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder addRequestCookiesToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestCookiesToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.add(index, value);
onChanged();
} else {
requestCookiesToExcludeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder addRequestCookiesToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.add(builderForValue.build());
onChanged();
} else {
requestCookiesToExcludeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder addRequestCookiesToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.add(index, builderForValue.build());
onChanged();
} else {
requestCookiesToExcludeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder addAllRequestCookiesToExclude(
java.lang.Iterable<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
values) {
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requestCookiesToExclude_);
onChanged();
} else {
requestCookiesToExcludeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder clearRequestCookiesToExclude() {
if (requestCookiesToExcludeBuilder_ == null) {
requestCookiesToExclude_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestCookiesToExcludeBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public Builder removeRequestCookiesToExclude(int index) {
if (requestCookiesToExcludeBuilder_ == null) {
ensureRequestCookiesToExcludeIsMutable();
requestCookiesToExclude_.remove(index);
onChanged();
} else {
requestCookiesToExcludeBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
getRequestCookiesToExcludeBuilder(int index) {
return getRequestCookiesToExcludeFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestCookiesToExcludeOrBuilder(int index) {
if (requestCookiesToExcludeBuilder_ == null) {
return requestCookiesToExclude_.get(index);
} else {
return requestCookiesToExcludeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestCookiesToExcludeOrBuilderList() {
if (requestCookiesToExcludeBuilder_ != null) {
return requestCookiesToExcludeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requestCookiesToExclude_);
}
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestCookiesToExcludeBuilder() {
return getRequestCookiesToExcludeFieldBuilder()
.addBuilder(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestCookiesToExcludeBuilder(int index) {
return getRequestCookiesToExcludeFieldBuilder()
.addBuilder(
index,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request cookie names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_cookies_to_exclude = 156757878;
*
*/
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder>
getRequestCookiesToExcludeBuilderList() {
return getRequestCookiesToExcludeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestCookiesToExcludeFieldBuilder() {
if (requestCookiesToExcludeBuilder_ == null) {
requestCookiesToExcludeBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>(
requestCookiesToExclude_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
requestCookiesToExclude_ = null;
}
return requestCookiesToExcludeBuilder_;
}
private java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestHeadersToExclude_ = java.util.Collections.emptyList();
private void ensureRequestHeadersToExcludeIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
requestHeadersToExclude_ =
new java.util.ArrayList<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>(
requestHeadersToExclude_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
requestHeadersToExcludeBuilder_;
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestHeadersToExcludeList() {
if (requestHeadersToExcludeBuilder_ == null) {
return java.util.Collections.unmodifiableList(requestHeadersToExclude_);
} else {
return requestHeadersToExcludeBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public int getRequestHeadersToExcludeCount() {
if (requestHeadersToExcludeBuilder_ == null) {
return requestHeadersToExclude_.size();
} else {
return requestHeadersToExcludeBuilder_.getCount();
}
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestHeadersToExclude(int index) {
if (requestHeadersToExcludeBuilder_ == null) {
return requestHeadersToExclude_.get(index);
} else {
return requestHeadersToExcludeBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder setRequestHeadersToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestHeadersToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.set(index, value);
onChanged();
} else {
requestHeadersToExcludeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder setRequestHeadersToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.set(index, builderForValue.build());
onChanged();
} else {
requestHeadersToExcludeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder addRequestHeadersToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestHeadersToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.add(value);
onChanged();
} else {
requestHeadersToExcludeBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder addRequestHeadersToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestHeadersToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.add(index, value);
onChanged();
} else {
requestHeadersToExcludeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder addRequestHeadersToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.add(builderForValue.build());
onChanged();
} else {
requestHeadersToExcludeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder addRequestHeadersToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.add(index, builderForValue.build());
onChanged();
} else {
requestHeadersToExcludeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder addAllRequestHeadersToExclude(
java.lang.Iterable<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
values) {
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requestHeadersToExclude_);
onChanged();
} else {
requestHeadersToExcludeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder clearRequestHeadersToExclude() {
if (requestHeadersToExcludeBuilder_ == null) {
requestHeadersToExclude_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
requestHeadersToExcludeBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public Builder removeRequestHeadersToExclude(int index) {
if (requestHeadersToExcludeBuilder_ == null) {
ensureRequestHeadersToExcludeIsMutable();
requestHeadersToExclude_.remove(index);
onChanged();
} else {
requestHeadersToExcludeBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
getRequestHeadersToExcludeBuilder(int index) {
return getRequestHeadersToExcludeFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestHeadersToExcludeOrBuilder(int index) {
if (requestHeadersToExcludeBuilder_ == null) {
return requestHeadersToExclude_.get(index);
} else {
return requestHeadersToExcludeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestHeadersToExcludeOrBuilderList() {
if (requestHeadersToExcludeBuilder_ != null) {
return requestHeadersToExcludeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requestHeadersToExclude_);
}
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestHeadersToExcludeBuilder() {
return getRequestHeadersToExcludeFieldBuilder()
.addBuilder(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestHeadersToExcludeBuilder(int index) {
return getRequestHeadersToExcludeFieldBuilder()
.addBuilder(
index,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request header names whose value will be excluded from inspection during preconfigured WAF evaluation.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_headers_to_exclude = 63230495;
*
*/
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder>
getRequestHeadersToExcludeBuilderList() {
return getRequestHeadersToExcludeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestHeadersToExcludeFieldBuilder() {
if (requestHeadersToExcludeBuilder_ == null) {
requestHeadersToExcludeBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>(
requestHeadersToExclude_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
requestHeadersToExclude_ = null;
}
return requestHeadersToExcludeBuilder_;
}
private java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestQueryParamsToExclude_ = java.util.Collections.emptyList();
private void ensureRequestQueryParamsToExcludeIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
requestQueryParamsToExclude_ =
new java.util.ArrayList<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>(
requestQueryParamsToExclude_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
requestQueryParamsToExcludeBuilder_;
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestQueryParamsToExcludeList() {
if (requestQueryParamsToExcludeBuilder_ == null) {
return java.util.Collections.unmodifiableList(requestQueryParamsToExclude_);
} else {
return requestQueryParamsToExcludeBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public int getRequestQueryParamsToExcludeCount() {
if (requestQueryParamsToExcludeBuilder_ == null) {
return requestQueryParamsToExclude_.size();
} else {
return requestQueryParamsToExcludeBuilder_.getCount();
}
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestQueryParamsToExclude(int index) {
if (requestQueryParamsToExcludeBuilder_ == null) {
return requestQueryParamsToExclude_.get(index);
} else {
return requestQueryParamsToExcludeBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder setRequestQueryParamsToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestQueryParamsToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.set(index, value);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder setRequestQueryParamsToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.set(index, builderForValue.build());
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder addRequestQueryParamsToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestQueryParamsToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.add(value);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder addRequestQueryParamsToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestQueryParamsToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.add(index, value);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder addRequestQueryParamsToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.add(builderForValue.build());
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder addRequestQueryParamsToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.add(index, builderForValue.build());
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder addAllRequestQueryParamsToExclude(
java.lang.Iterable<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
values) {
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, requestQueryParamsToExclude_);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder clearRequestQueryParamsToExclude() {
if (requestQueryParamsToExcludeBuilder_ == null) {
requestQueryParamsToExclude_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public Builder removeRequestQueryParamsToExclude(int index) {
if (requestQueryParamsToExcludeBuilder_ == null) {
ensureRequestQueryParamsToExcludeIsMutable();
requestQueryParamsToExclude_.remove(index);
onChanged();
} else {
requestQueryParamsToExcludeBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
getRequestQueryParamsToExcludeBuilder(int index) {
return getRequestQueryParamsToExcludeFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestQueryParamsToExcludeOrBuilder(int index) {
if (requestQueryParamsToExcludeBuilder_ == null) {
return requestQueryParamsToExclude_.get(index);
} else {
return requestQueryParamsToExcludeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestQueryParamsToExcludeOrBuilderList() {
if (requestQueryParamsToExcludeBuilder_ != null) {
return requestQueryParamsToExcludeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requestQueryParamsToExclude_);
}
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestQueryParamsToExcludeBuilder() {
return getRequestQueryParamsToExcludeFieldBuilder()
.addBuilder(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestQueryParamsToExcludeBuilder(int index) {
return getRequestQueryParamsToExcludeFieldBuilder()
.addBuilder(
index,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request query parameter names whose value will be excluded from inspection during preconfigured WAF evaluation. Note that the parameter can be in the query string or in the POST body.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_query_params_to_exclude = 340692744;
*
*/
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder>
getRequestQueryParamsToExcludeBuilderList() {
return getRequestQueryParamsToExcludeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestQueryParamsToExcludeFieldBuilder() {
if (requestQueryParamsToExcludeBuilder_ == null) {
requestQueryParamsToExcludeBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>(
requestQueryParamsToExclude_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
requestQueryParamsToExclude_ = null;
}
return requestQueryParamsToExcludeBuilder_;
}
private java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
requestUrisToExclude_ = java.util.Collections.emptyList();
private void ensureRequestUrisToExcludeIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
requestUrisToExclude_ =
new java.util.ArrayList<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>(
requestUrisToExclude_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
requestUrisToExcludeBuilder_;
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public java.util.List<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
getRequestUrisToExcludeList() {
if (requestUrisToExcludeBuilder_ == null) {
return java.util.Collections.unmodifiableList(requestUrisToExclude_);
} else {
return requestUrisToExcludeBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public int getRequestUrisToExcludeCount() {
if (requestUrisToExcludeBuilder_ == null) {
return requestUrisToExclude_.size();
} else {
return requestUrisToExcludeBuilder_.getCount();
}
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
getRequestUrisToExclude(int index) {
if (requestUrisToExcludeBuilder_ == null) {
return requestUrisToExclude_.get(index);
} else {
return requestUrisToExcludeBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder setRequestUrisToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestUrisToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.set(index, value);
onChanged();
} else {
requestUrisToExcludeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder setRequestUrisToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.set(index, builderForValue.build());
onChanged();
} else {
requestUrisToExcludeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder addRequestUrisToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestUrisToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.add(value);
onChanged();
} else {
requestUrisToExcludeBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder addRequestUrisToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
value) {
if (requestUrisToExcludeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.add(index, value);
onChanged();
} else {
requestUrisToExcludeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder addRequestUrisToExclude(
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.add(builderForValue.build());
onChanged();
} else {
requestUrisToExcludeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder addRequestUrisToExclude(
int index,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
builderForValue) {
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.add(index, builderForValue.build());
onChanged();
} else {
requestUrisToExcludeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder addAllRequestUrisToExclude(
java.lang.Iterable<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>
values) {
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requestUrisToExclude_);
onChanged();
} else {
requestUrisToExcludeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder clearRequestUrisToExclude() {
if (requestUrisToExcludeBuilder_ == null) {
requestUrisToExclude_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
requestUrisToExcludeBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public Builder removeRequestUrisToExclude(int index) {
if (requestUrisToExcludeBuilder_ == null) {
ensureRequestUrisToExcludeIsMutable();
requestUrisToExclude_.remove(index);
onChanged();
} else {
requestUrisToExcludeBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
getRequestUrisToExcludeBuilder(int index) {
return getRequestUrisToExcludeFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder
getRequestUrisToExcludeOrBuilder(int index) {
if (requestUrisToExcludeBuilder_ == null) {
return requestUrisToExclude_.get(index);
} else {
return requestUrisToExcludeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public java.util.List<
? extends
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestUrisToExcludeOrBuilderList() {
if (requestUrisToExcludeBuilder_ != null) {
return requestUrisToExcludeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(requestUrisToExclude_);
}
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestUrisToExcludeBuilder() {
return getRequestUrisToExcludeFieldBuilder()
.addBuilder(
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder
addRequestUrisToExcludeBuilder(int index) {
return getRequestUrisToExcludeFieldBuilder()
.addBuilder(
index,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.getDefaultInstance());
}
/**
*
*
*
* A list of request URIs from the request line to be excluded from inspection during preconfigured WAF evaluation. When specifying this field, the query or fragment part should be excluded.
*
*
*
* repeated .google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams request_uris_to_exclude = 90690846;
*
*/
public java.util.List<
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder>
getRequestUrisToExcludeBuilderList() {
return getRequestUrisToExcludeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>
getRequestUrisToExcludeFieldBuilder() {
if (requestUrisToExcludeBuilder_ == null) {
requestUrisToExcludeBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams.Builder,
com.google.cloud.compute.v1
.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParamsOrBuilder>(
requestUrisToExclude_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
requestUrisToExclude_ = null;
}
return requestUrisToExcludeBuilder_;
}
private com.google.protobuf.LazyStringArrayList targetRuleIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTargetRuleIdsIsMutable() {
if (!targetRuleIds_.isModifiable()) {
targetRuleIds_ = new com.google.protobuf.LazyStringArrayList(targetRuleIds_);
}
bitField0_ |= 0x00000010;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @return A list containing the targetRuleIds.
*/
public com.google.protobuf.ProtocolStringList getTargetRuleIdsList() {
targetRuleIds_.makeImmutable();
return targetRuleIds_;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @return The count of targetRuleIds.
*/
public int getTargetRuleIdsCount() {
return targetRuleIds_.size();
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param index The index of the element to return.
* @return The targetRuleIds at the given index.
*/
public java.lang.String getTargetRuleIds(int index) {
return targetRuleIds_.get(index);
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param index The index of the value to return.
* @return The bytes of the targetRuleIds at the given index.
*/
public com.google.protobuf.ByteString getTargetRuleIdsBytes(int index) {
return targetRuleIds_.getByteString(index);
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param index The index to set the value at.
* @param value The targetRuleIds to set.
* @return This builder for chaining.
*/
public Builder setTargetRuleIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetRuleIdsIsMutable();
targetRuleIds_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param value The targetRuleIds to add.
* @return This builder for chaining.
*/
public Builder addTargetRuleIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetRuleIdsIsMutable();
targetRuleIds_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param values The targetRuleIds to add.
* @return This builder for chaining.
*/
public Builder addAllTargetRuleIds(java.lang.Iterable values) {
ensureTargetRuleIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetRuleIds_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @return This builder for chaining.
*/
public Builder clearTargetRuleIds() {
targetRuleIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
;
onChanged();
return this;
}
/**
*
*
*
* A list of target rule IDs under the WAF rule set to apply the preconfigured WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule set.
*
*
* repeated string target_rule_ids = 498430435;
*
* @param value The bytes of the targetRuleIds to add.
* @return This builder for chaining.
*/
public Builder addTargetRuleIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTargetRuleIdsIsMutable();
targetRuleIds_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object targetRuleSet_ = "";
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return Whether the targetRuleSet field is set.
*/
public boolean hasTargetRuleSet() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return The targetRuleSet.
*/
public java.lang.String getTargetRuleSet() {
java.lang.Object ref = targetRuleSet_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetRuleSet_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return The bytes for targetRuleSet.
*/
public com.google.protobuf.ByteString getTargetRuleSetBytes() {
java.lang.Object ref = targetRuleSet_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
targetRuleSet_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @param value The targetRuleSet to set.
* @return This builder for chaining.
*/
public Builder setTargetRuleSet(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
targetRuleSet_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @return This builder for chaining.
*/
public Builder clearTargetRuleSet() {
targetRuleSet_ = getDefaultInstance().getTargetRuleSet();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
*
*
* Target WAF rule set to apply the preconfigured WAF exclusion.
*
*
* optional string target_rule_set = 498440077;
*
* @param value The bytes for targetRuleSet to set.
* @return This builder for chaining.
*/
public Builder setTargetRuleSetBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
targetRuleSet_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion)
private static final com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion();
}
public static com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER =
new com.google.protobuf.AbstractParser<
SecurityPolicyRulePreconfiguredWafConfigExclusion>() {
@java.lang.Override
public SecurityPolicyRulePreconfiguredWafConfigExclusion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser
parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser
getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusion
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy