All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig Maven / Gradle / Ivy

The newest version!
/*
 * 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.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig} */ public final class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.newBuilder() // to construct. private SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig() { name_ = ""; trafficGranularityConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.class, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig .Builder.class); } private int bitField0_; public static final int AUTO_DEPLOY_CONFIDENCE_THRESHOLD_FIELD_NUMBER = 84309694; private float autoDeployConfidenceThreshold_ = 0F; /** * optional float auto_deploy_confidence_threshold = 84309694; * * @return Whether the autoDeployConfidenceThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployConfidenceThreshold() { return ((bitField0_ & 0x00000001) != 0); } /** * optional float auto_deploy_confidence_threshold = 84309694; * * @return The autoDeployConfidenceThreshold. */ @java.lang.Override public float getAutoDeployConfidenceThreshold() { return autoDeployConfidenceThreshold_; } public static final int AUTO_DEPLOY_EXPIRATION_SEC_FIELD_NUMBER = 69638793; private int autoDeployExpirationSec_ = 0; /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @return Whether the autoDeployExpirationSec field is set. */ @java.lang.Override public boolean hasAutoDeployExpirationSec() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @return The autoDeployExpirationSec. */ @java.lang.Override public int getAutoDeployExpirationSec() { return autoDeployExpirationSec_; } public static final int AUTO_DEPLOY_IMPACTED_BASELINE_THRESHOLD_FIELD_NUMBER = 292441667; private float autoDeployImpactedBaselineThreshold_ = 0F; /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @return Whether the autoDeployImpactedBaselineThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployImpactedBaselineThreshold() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @return The autoDeployImpactedBaselineThreshold. */ @java.lang.Override public float getAutoDeployImpactedBaselineThreshold() { return autoDeployImpactedBaselineThreshold_; } public static final int AUTO_DEPLOY_LOAD_THRESHOLD_FIELD_NUMBER = 522227738; private float autoDeployLoadThreshold_ = 0F; /** * optional float auto_deploy_load_threshold = 522227738; * * @return Whether the autoDeployLoadThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployLoadThreshold() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float auto_deploy_load_threshold = 522227738; * * @return The autoDeployLoadThreshold. */ @java.lang.Override public float getAutoDeployLoadThreshold() { return autoDeployLoadThreshold_; } public static final int DETECTION_ABSOLUTE_QPS_FIELD_NUMBER = 383123174; private float detectionAbsoluteQps_ = 0F; /** * optional float detection_absolute_qps = 383123174; * * @return Whether the detectionAbsoluteQps field is set. */ @java.lang.Override public boolean hasDetectionAbsoluteQps() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float detection_absolute_qps = 383123174; * * @return The detectionAbsoluteQps. */ @java.lang.Override public float getDetectionAbsoluteQps() { return detectionAbsoluteQps_; } public static final int DETECTION_LOAD_THRESHOLD_FIELD_NUMBER = 430499148; private float detectionLoadThreshold_ = 0F; /** * optional float detection_load_threshold = 430499148; * * @return Whether the detectionLoadThreshold field is set. */ @java.lang.Override public boolean hasDetectionLoadThreshold() { return ((bitField0_ & 0x00000020) != 0); } /** * optional float detection_load_threshold = 430499148; * * @return The detectionLoadThreshold. */ @java.lang.Override public float getDetectionLoadThreshold() { return detectionLoadThreshold_; } public static final int DETECTION_RELATIVE_TO_BASELINE_QPS_FIELD_NUMBER = 291343749; private float detectionRelativeToBaselineQps_ = 0F; /** * optional float detection_relative_to_baseline_qps = 291343749; * * @return Whether the detectionRelativeToBaselineQps field is set. */ @java.lang.Override public boolean hasDetectionRelativeToBaselineQps() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float detection_relative_to_baseline_qps = 291343749; * * @return The detectionRelativeToBaselineQps. */ @java.lang.Override public float getDetectionRelativeToBaselineQps() { return detectionRelativeToBaselineQps_; } public static final int NAME_FIELD_NUMBER = 3373707; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
   * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
   * 
* * optional string name = 3373707; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * * *
   * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
   * 
* * optional string name = 3373707; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRAFFIC_GRANULARITY_CONFIGS_FIELD_NUMBER = 85367358; @SuppressWarnings("serial") private java.util.List< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig> trafficGranularityConfigs_; /** * * *
   * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
   * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ @java.lang.Override public java.util.List< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig> getTrafficGranularityConfigsList() { return trafficGranularityConfigs_; } /** * * *
   * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
   * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ @java.lang.Override public java.util.List< ? extends com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder> getTrafficGranularityConfigsOrBuilderList() { return trafficGranularityConfigs_; } /** * * *
   * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
   * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ @java.lang.Override public int getTrafficGranularityConfigsCount() { return trafficGranularityConfigs_.size(); } /** * * *
   * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
   * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig getTrafficGranularityConfigs(int index) { return trafficGranularityConfigs_.get(index); } /** * * *
   * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
   * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder getTrafficGranularityConfigsOrBuilder(int index) { return trafficGranularityConfigs_.get(index); } 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 { if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(69638793, autoDeployExpirationSec_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(84309694, autoDeployConfidenceThreshold_); } for (int i = 0; i < trafficGranularityConfigs_.size(); i++) { output.writeMessage(85367358, trafficGranularityConfigs_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(291343749, detectionRelativeToBaselineQps_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(292441667, autoDeployImpactedBaselineThreshold_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(383123174, detectionAbsoluteQps_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeFloat(430499148, detectionLoadThreshold_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(522227738, autoDeployLoadThreshold_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 69638793, autoDeployExpirationSec_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize( 84309694, autoDeployConfidenceThreshold_); } for (int i = 0; i < trafficGranularityConfigs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 85367358, trafficGranularityConfigs_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize( 291343749, detectionRelativeToBaselineQps_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize( 292441667, autoDeployImpactedBaselineThreshold_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(383123174, detectionAbsoluteQps_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize( 430499148, detectionLoadThreshold_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize( 522227738, autoDeployLoadThreshold_); } 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig)) { return super.equals(obj); } com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig other = (com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) obj; if (hasAutoDeployConfidenceThreshold() != other.hasAutoDeployConfidenceThreshold()) return false; if (hasAutoDeployConfidenceThreshold()) { if (java.lang.Float.floatToIntBits(getAutoDeployConfidenceThreshold()) != java.lang.Float.floatToIntBits(other.getAutoDeployConfidenceThreshold())) return false; } if (hasAutoDeployExpirationSec() != other.hasAutoDeployExpirationSec()) return false; if (hasAutoDeployExpirationSec()) { if (getAutoDeployExpirationSec() != other.getAutoDeployExpirationSec()) return false; } if (hasAutoDeployImpactedBaselineThreshold() != other.hasAutoDeployImpactedBaselineThreshold()) return false; if (hasAutoDeployImpactedBaselineThreshold()) { if (java.lang.Float.floatToIntBits(getAutoDeployImpactedBaselineThreshold()) != java.lang.Float.floatToIntBits(other.getAutoDeployImpactedBaselineThreshold())) return false; } if (hasAutoDeployLoadThreshold() != other.hasAutoDeployLoadThreshold()) return false; if (hasAutoDeployLoadThreshold()) { if (java.lang.Float.floatToIntBits(getAutoDeployLoadThreshold()) != java.lang.Float.floatToIntBits(other.getAutoDeployLoadThreshold())) return false; } if (hasDetectionAbsoluteQps() != other.hasDetectionAbsoluteQps()) return false; if (hasDetectionAbsoluteQps()) { if (java.lang.Float.floatToIntBits(getDetectionAbsoluteQps()) != java.lang.Float.floatToIntBits(other.getDetectionAbsoluteQps())) return false; } if (hasDetectionLoadThreshold() != other.hasDetectionLoadThreshold()) return false; if (hasDetectionLoadThreshold()) { if (java.lang.Float.floatToIntBits(getDetectionLoadThreshold()) != java.lang.Float.floatToIntBits(other.getDetectionLoadThreshold())) return false; } if (hasDetectionRelativeToBaselineQps() != other.hasDetectionRelativeToBaselineQps()) return false; if (hasDetectionRelativeToBaselineQps()) { if (java.lang.Float.floatToIntBits(getDetectionRelativeToBaselineQps()) != java.lang.Float.floatToIntBits(other.getDetectionRelativeToBaselineQps())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (!getTrafficGranularityConfigsList().equals(other.getTrafficGranularityConfigsList())) 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 (hasAutoDeployConfidenceThreshold()) { hash = (37 * hash) + AUTO_DEPLOY_CONFIDENCE_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getAutoDeployConfidenceThreshold()); } if (hasAutoDeployExpirationSec()) { hash = (37 * hash) + AUTO_DEPLOY_EXPIRATION_SEC_FIELD_NUMBER; hash = (53 * hash) + getAutoDeployExpirationSec(); } if (hasAutoDeployImpactedBaselineThreshold()) { hash = (37 * hash) + AUTO_DEPLOY_IMPACTED_BASELINE_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getAutoDeployImpactedBaselineThreshold()); } if (hasAutoDeployLoadThreshold()) { hash = (37 * hash) + AUTO_DEPLOY_LOAD_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getAutoDeployLoadThreshold()); } if (hasDetectionAbsoluteQps()) { hash = (37 * hash) + DETECTION_ABSOLUTE_QPS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionAbsoluteQps()); } if (hasDetectionLoadThreshold()) { hash = (37 * hash) + DETECTION_LOAD_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionLoadThreshold()); } if (hasDetectionRelativeToBaselineQps()) { hash = (37 * hash) + DETECTION_RELATIVE_TO_BASELINE_QPS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getDetectionRelativeToBaselineQps()); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (getTrafficGranularityConfigsCount() > 0) { hash = (37 * hash) + TRAFFIC_GRANULARITY_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getTrafficGranularityConfigsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig .class, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig .Builder.class); } // Construct using // com.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; autoDeployConfidenceThreshold_ = 0F; autoDeployExpirationSec_ = 0; autoDeployImpactedBaselineThreshold_ = 0F; autoDeployLoadThreshold_ = 0F; detectionAbsoluteQps_ = 0F; detectionLoadThreshold_ = 0F; detectionRelativeToBaselineQps_ = 0F; name_ = ""; if (trafficGranularityConfigsBuilder_ == null) { trafficGranularityConfigs_ = java.util.Collections.emptyList(); } else { trafficGranularityConfigs_ = null; trafficGranularityConfigsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); 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_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor; } @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig getDefaultInstanceForType() { return com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig .getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig build() { com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig buildPartial() { com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig result = new com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig( this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig result) { if (trafficGranularityConfigsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { trafficGranularityConfigs_ = java.util.Collections.unmodifiableList(trafficGranularityConfigs_); bitField0_ = (bitField0_ & ~0x00000100); } result.trafficGranularityConfigs_ = trafficGranularityConfigs_; } else { result.trafficGranularityConfigs_ = trafficGranularityConfigsBuilder_.build(); } } private void buildPartial0( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.autoDeployConfidenceThreshold_ = autoDeployConfidenceThreshold_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.autoDeployExpirationSec_ = autoDeployExpirationSec_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.autoDeployImpactedBaselineThreshold_ = autoDeployImpactedBaselineThreshold_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.autoDeployLoadThreshold_ = autoDeployLoadThreshold_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.detectionAbsoluteQps_ = detectionAbsoluteQps_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.detectionLoadThreshold_ = detectionLoadThreshold_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.detectionRelativeToBaselineQps_ = detectionRelativeToBaselineQps_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000080; } 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 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) { return mergeFrom( (com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig other) { if (other == com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig .getDefaultInstance()) return this; if (other.hasAutoDeployConfidenceThreshold()) { setAutoDeployConfidenceThreshold(other.getAutoDeployConfidenceThreshold()); } if (other.hasAutoDeployExpirationSec()) { setAutoDeployExpirationSec(other.getAutoDeployExpirationSec()); } if (other.hasAutoDeployImpactedBaselineThreshold()) { setAutoDeployImpactedBaselineThreshold(other.getAutoDeployImpactedBaselineThreshold()); } if (other.hasAutoDeployLoadThreshold()) { setAutoDeployLoadThreshold(other.getAutoDeployLoadThreshold()); } if (other.hasDetectionAbsoluteQps()) { setDetectionAbsoluteQps(other.getDetectionAbsoluteQps()); } if (other.hasDetectionLoadThreshold()) { setDetectionLoadThreshold(other.getDetectionLoadThreshold()); } if (other.hasDetectionRelativeToBaselineQps()) { setDetectionRelativeToBaselineQps(other.getDetectionRelativeToBaselineQps()); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000080; onChanged(); } if (trafficGranularityConfigsBuilder_ == null) { if (!other.trafficGranularityConfigs_.isEmpty()) { if (trafficGranularityConfigs_.isEmpty()) { trafficGranularityConfigs_ = other.trafficGranularityConfigs_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.addAll(other.trafficGranularityConfigs_); } onChanged(); } } else { if (!other.trafficGranularityConfigs_.isEmpty()) { if (trafficGranularityConfigsBuilder_.isEmpty()) { trafficGranularityConfigsBuilder_.dispose(); trafficGranularityConfigsBuilder_ = null; trafficGranularityConfigs_ = other.trafficGranularityConfigs_; bitField0_ = (bitField0_ & ~0x00000100); trafficGranularityConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrafficGranularityConfigsFieldBuilder() : null; } else { trafficGranularityConfigsBuilder_.addAllMessages(other.trafficGranularityConfigs_); } } } 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 26989658: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 26989658 case 557110344: { autoDeployExpirationSec_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 557110344 case 674477557: { autoDeployConfidenceThreshold_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 674477557 case 682938866: { com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig m = input.readMessage( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .parser(), extensionRegistry); if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.add(m); } else { trafficGranularityConfigsBuilder_.addMessage(m); } break; } // case 682938866 case -1964217299: { detectionRelativeToBaselineQps_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case -1964217299 case -1955433955: { autoDeployImpactedBaselineThreshold_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case -1955433955 case -1229981899: { detectionAbsoluteQps_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case -1229981899 case -850974107: { detectionLoadThreshold_ = input.readFloat(); bitField0_ |= 0x00000020; break; } // case -850974107 case -117145387: { autoDeployLoadThreshold_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case -117145387 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 float autoDeployConfidenceThreshold_; /** * optional float auto_deploy_confidence_threshold = 84309694; * * @return Whether the autoDeployConfidenceThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployConfidenceThreshold() { return ((bitField0_ & 0x00000001) != 0); } /** * optional float auto_deploy_confidence_threshold = 84309694; * * @return The autoDeployConfidenceThreshold. */ @java.lang.Override public float getAutoDeployConfidenceThreshold() { return autoDeployConfidenceThreshold_; } /** * optional float auto_deploy_confidence_threshold = 84309694; * * @param value The autoDeployConfidenceThreshold to set. * @return This builder for chaining. */ public Builder setAutoDeployConfidenceThreshold(float value) { autoDeployConfidenceThreshold_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * optional float auto_deploy_confidence_threshold = 84309694; * * @return This builder for chaining. */ public Builder clearAutoDeployConfidenceThreshold() { bitField0_ = (bitField0_ & ~0x00000001); autoDeployConfidenceThreshold_ = 0F; onChanged(); return this; } private int autoDeployExpirationSec_; /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @return Whether the autoDeployExpirationSec field is set. */ @java.lang.Override public boolean hasAutoDeployExpirationSec() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @return The autoDeployExpirationSec. */ @java.lang.Override public int getAutoDeployExpirationSec() { return autoDeployExpirationSec_; } /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @param value The autoDeployExpirationSec to set. * @return This builder for chaining. */ public Builder setAutoDeployExpirationSec(int value) { autoDeployExpirationSec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * optional int32 auto_deploy_expiration_sec = 69638793; * * @return This builder for chaining. */ public Builder clearAutoDeployExpirationSec() { bitField0_ = (bitField0_ & ~0x00000002); autoDeployExpirationSec_ = 0; onChanged(); return this; } private float autoDeployImpactedBaselineThreshold_; /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @return Whether the autoDeployImpactedBaselineThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployImpactedBaselineThreshold() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @return The autoDeployImpactedBaselineThreshold. */ @java.lang.Override public float getAutoDeployImpactedBaselineThreshold() { return autoDeployImpactedBaselineThreshold_; } /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @param value The autoDeployImpactedBaselineThreshold to set. * @return This builder for chaining. */ public Builder setAutoDeployImpactedBaselineThreshold(float value) { autoDeployImpactedBaselineThreshold_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * optional float auto_deploy_impacted_baseline_threshold = 292441667; * * @return This builder for chaining. */ public Builder clearAutoDeployImpactedBaselineThreshold() { bitField0_ = (bitField0_ & ~0x00000004); autoDeployImpactedBaselineThreshold_ = 0F; onChanged(); return this; } private float autoDeployLoadThreshold_; /** * optional float auto_deploy_load_threshold = 522227738; * * @return Whether the autoDeployLoadThreshold field is set. */ @java.lang.Override public boolean hasAutoDeployLoadThreshold() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float auto_deploy_load_threshold = 522227738; * * @return The autoDeployLoadThreshold. */ @java.lang.Override public float getAutoDeployLoadThreshold() { return autoDeployLoadThreshold_; } /** * optional float auto_deploy_load_threshold = 522227738; * * @param value The autoDeployLoadThreshold to set. * @return This builder for chaining. */ public Builder setAutoDeployLoadThreshold(float value) { autoDeployLoadThreshold_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * optional float auto_deploy_load_threshold = 522227738; * * @return This builder for chaining. */ public Builder clearAutoDeployLoadThreshold() { bitField0_ = (bitField0_ & ~0x00000008); autoDeployLoadThreshold_ = 0F; onChanged(); return this; } private float detectionAbsoluteQps_; /** * optional float detection_absolute_qps = 383123174; * * @return Whether the detectionAbsoluteQps field is set. */ @java.lang.Override public boolean hasDetectionAbsoluteQps() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float detection_absolute_qps = 383123174; * * @return The detectionAbsoluteQps. */ @java.lang.Override public float getDetectionAbsoluteQps() { return detectionAbsoluteQps_; } /** * optional float detection_absolute_qps = 383123174; * * @param value The detectionAbsoluteQps to set. * @return This builder for chaining. */ public Builder setDetectionAbsoluteQps(float value) { detectionAbsoluteQps_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * optional float detection_absolute_qps = 383123174; * * @return This builder for chaining. */ public Builder clearDetectionAbsoluteQps() { bitField0_ = (bitField0_ & ~0x00000010); detectionAbsoluteQps_ = 0F; onChanged(); return this; } private float detectionLoadThreshold_; /** * optional float detection_load_threshold = 430499148; * * @return Whether the detectionLoadThreshold field is set. */ @java.lang.Override public boolean hasDetectionLoadThreshold() { return ((bitField0_ & 0x00000020) != 0); } /** * optional float detection_load_threshold = 430499148; * * @return The detectionLoadThreshold. */ @java.lang.Override public float getDetectionLoadThreshold() { return detectionLoadThreshold_; } /** * optional float detection_load_threshold = 430499148; * * @param value The detectionLoadThreshold to set. * @return This builder for chaining. */ public Builder setDetectionLoadThreshold(float value) { detectionLoadThreshold_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * optional float detection_load_threshold = 430499148; * * @return This builder for chaining. */ public Builder clearDetectionLoadThreshold() { bitField0_ = (bitField0_ & ~0x00000020); detectionLoadThreshold_ = 0F; onChanged(); return this; } private float detectionRelativeToBaselineQps_; /** * optional float detection_relative_to_baseline_qps = 291343749; * * @return Whether the detectionRelativeToBaselineQps field is set. */ @java.lang.Override public boolean hasDetectionRelativeToBaselineQps() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float detection_relative_to_baseline_qps = 291343749; * * @return The detectionRelativeToBaselineQps. */ @java.lang.Override public float getDetectionRelativeToBaselineQps() { return detectionRelativeToBaselineQps_; } /** * optional float detection_relative_to_baseline_qps = 291343749; * * @param value The detectionRelativeToBaselineQps to set. * @return This builder for chaining. */ public Builder setDetectionRelativeToBaselineQps(float value) { detectionRelativeToBaselineQps_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * optional float detection_relative_to_baseline_qps = 291343749; * * @return This builder for chaining. */ public Builder clearDetectionRelativeToBaselineQps() { bitField0_ = (bitField0_ & ~0x00000040); detectionRelativeToBaselineQps_ = 0F; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.
     * 
* * optional string name = 3373707; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig> trafficGranularityConfigs_ = java.util.Collections.emptyList(); private void ensureTrafficGranularityConfigsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { trafficGranularityConfigs_ = new java.util.ArrayList< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig>( trafficGranularityConfigs_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder> trafficGranularityConfigsBuilder_; /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public java.util.List< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig> getTrafficGranularityConfigsList() { if (trafficGranularityConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(trafficGranularityConfigs_); } else { return trafficGranularityConfigsBuilder_.getMessageList(); } } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public int getTrafficGranularityConfigsCount() { if (trafficGranularityConfigsBuilder_ == null) { return trafficGranularityConfigs_.size(); } else { return trafficGranularityConfigsBuilder_.getCount(); } } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig getTrafficGranularityConfigs(int index) { if (trafficGranularityConfigsBuilder_ == null) { return trafficGranularityConfigs_.get(index); } else { return trafficGranularityConfigsBuilder_.getMessage(index); } } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder setTrafficGranularityConfigs( int index, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value) { if (trafficGranularityConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.set(index, value); onChanged(); } else { trafficGranularityConfigsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder setTrafficGranularityConfigs( int index, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder builderForValue) { if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.set(index, builderForValue.build()); onChanged(); } else { trafficGranularityConfigsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder addTrafficGranularityConfigs( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value) { if (trafficGranularityConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.add(value); onChanged(); } else { trafficGranularityConfigsBuilder_.addMessage(value); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder addTrafficGranularityConfigs( int index, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig value) { if (trafficGranularityConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.add(index, value); onChanged(); } else { trafficGranularityConfigsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder addTrafficGranularityConfigs( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder builderForValue) { if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.add(builderForValue.build()); onChanged(); } else { trafficGranularityConfigsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder addTrafficGranularityConfigs( int index, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder builderForValue) { if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.add(index, builderForValue.build()); onChanged(); } else { trafficGranularityConfigsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder addAllTrafficGranularityConfigs( java.lang.Iterable< ? extends com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig> values) { if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trafficGranularityConfigs_); onChanged(); } else { trafficGranularityConfigsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder clearTrafficGranularityConfigs() { if (trafficGranularityConfigsBuilder_ == null) { trafficGranularityConfigs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { trafficGranularityConfigsBuilder_.clear(); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public Builder removeTrafficGranularityConfigs(int index) { if (trafficGranularityConfigsBuilder_ == null) { ensureTrafficGranularityConfigsIsMutable(); trafficGranularityConfigs_.remove(index); onChanged(); } else { trafficGranularityConfigsBuilder_.remove(index); } return this; } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder getTrafficGranularityConfigsBuilder(int index) { return getTrafficGranularityConfigsFieldBuilder().getBuilder(index); } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder getTrafficGranularityConfigsOrBuilder(int index) { if (trafficGranularityConfigsBuilder_ == null) { return trafficGranularityConfigs_.get(index); } else { return trafficGranularityConfigsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public java.util.List< ? extends com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder> getTrafficGranularityConfigsOrBuilderList() { if (trafficGranularityConfigsBuilder_ != null) { return trafficGranularityConfigsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(trafficGranularityConfigs_); } } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder addTrafficGranularityConfigsBuilder() { return getTrafficGranularityConfigsFieldBuilder() .addBuilder( com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .getDefaultInstance()); } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder addTrafficGranularityConfigsBuilder(int index) { return getTrafficGranularityConfigsFieldBuilder() .addBuilder( index, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .getDefaultInstance()); } /** * * *
     * Configuration options for enabling Adaptive Protection to operate on specified granular traffic units.
     * 
* * * repeated .google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig traffic_granularity_configs = 85367358; * */ public java.util.List< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder> getTrafficGranularityConfigsBuilderList() { return getTrafficGranularityConfigsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder> getTrafficGranularityConfigsFieldBuilder() { if (trafficGranularityConfigsBuilder_ == null) { trafficGranularityConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig .Builder, com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfigOrBuilder>( trafficGranularityConfigs_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); trafficGranularityConfigs_ = null; } return trafficGranularityConfigsBuilder_; } @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.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) private static final com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig(); } public static com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser< SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig> PARSER = new com.google.protobuf.AbstractParser< SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig>() { @java.lang.Override public SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig 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< SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser< SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig> getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.compute.v1 .SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy