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

com.google.cloud.securitycenter.v1.CloudArmor Maven / Gradle / Ivy

There is a newer version: 2.62.0
Show 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/securitycenter/v1/cloud_armor.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.securitycenter.v1;

/**
 *
 *
 * 
 * Fields related to Google Cloud Armor findings.
 * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CloudArmor} */ public final class CloudArmor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.CloudArmor) CloudArmorOrBuilder { private static final long serialVersionUID = 0L; // Use CloudArmor.newBuilder() to construct. private CloudArmor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CloudArmor() { threatVector_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudArmor(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.CloudArmorProto .internal_static_google_cloud_securitycenter_v1_CloudArmor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.CloudArmorProto .internal_static_google_cloud_securitycenter_v1_CloudArmor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.CloudArmor.class, com.google.cloud.securitycenter.v1.CloudArmor.Builder.class); } private int bitField0_; public static final int SECURITY_POLICY_FIELD_NUMBER = 1; private com.google.cloud.securitycenter.v1.SecurityPolicy securityPolicy_; /** * * *
   * Information about the [Google Cloud Armor security
   * policy](https://cloud.google.com/armor/docs/security-policy-overview)
   * relevant to the finding.
   * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; * * @return Whether the securityPolicy field is set. */ @java.lang.Override public boolean hasSecurityPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Information about the [Google Cloud Armor security
   * policy](https://cloud.google.com/armor/docs/security-policy-overview)
   * relevant to the finding.
   * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; * * @return The securityPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityPolicy getSecurityPolicy() { return securityPolicy_ == null ? com.google.cloud.securitycenter.v1.SecurityPolicy.getDefaultInstance() : securityPolicy_; } /** * * *
   * Information about the [Google Cloud Armor security
   * policy](https://cloud.google.com/armor/docs/security-policy-overview)
   * relevant to the finding.
   * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ @java.lang.Override public com.google.cloud.securitycenter.v1.SecurityPolicyOrBuilder getSecurityPolicyOrBuilder() { return securityPolicy_ == null ? com.google.cloud.securitycenter.v1.SecurityPolicy.getDefaultInstance() : securityPolicy_; } public static final int REQUESTS_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1.Requests requests_; /** * * *
   * Information about incoming requests evaluated by [Google Cloud Armor
   * security
   * policies](https://cloud.google.com/armor/docs/security-policy-overview).
   * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; * * @return Whether the requests field is set. */ @java.lang.Override public boolean hasRequests() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Information about incoming requests evaluated by [Google Cloud Armor
   * security
   * policies](https://cloud.google.com/armor/docs/security-policy-overview).
   * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; * * @return The requests. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Requests getRequests() { return requests_ == null ? com.google.cloud.securitycenter.v1.Requests.getDefaultInstance() : requests_; } /** * * *
   * Information about incoming requests evaluated by [Google Cloud Armor
   * security
   * policies](https://cloud.google.com/armor/docs/security-policy-overview).
   * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ @java.lang.Override public com.google.cloud.securitycenter.v1.RequestsOrBuilder getRequestsOrBuilder() { return requests_ == null ? com.google.cloud.securitycenter.v1.Requests.getDefaultInstance() : requests_; } public static final int ADAPTIVE_PROTECTION_FIELD_NUMBER = 3; private com.google.cloud.securitycenter.v1.AdaptiveProtection adaptiveProtection_; /** * * *
   * Information about potential Layer 7 DDoS attacks identified by [Google
   * Cloud Armor Adaptive
   * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
   * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; * * @return Whether the adaptiveProtection field is set. */ @java.lang.Override public boolean hasAdaptiveProtection() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Information about potential Layer 7 DDoS attacks identified by [Google
   * Cloud Armor Adaptive
   * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
   * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; * * @return The adaptiveProtection. */ @java.lang.Override public com.google.cloud.securitycenter.v1.AdaptiveProtection getAdaptiveProtection() { return adaptiveProtection_ == null ? com.google.cloud.securitycenter.v1.AdaptiveProtection.getDefaultInstance() : adaptiveProtection_; } /** * * *
   * Information about potential Layer 7 DDoS attacks identified by [Google
   * Cloud Armor Adaptive
   * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
   * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ @java.lang.Override public com.google.cloud.securitycenter.v1.AdaptiveProtectionOrBuilder getAdaptiveProtectionOrBuilder() { return adaptiveProtection_ == null ? com.google.cloud.securitycenter.v1.AdaptiveProtection.getDefaultInstance() : adaptiveProtection_; } public static final int ATTACK_FIELD_NUMBER = 4; private com.google.cloud.securitycenter.v1.Attack attack_; /** * * *
   * Information about DDoS attack volume and classification.
   * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; * * @return Whether the attack field is set. */ @java.lang.Override public boolean hasAttack() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Information about DDoS attack volume and classification.
   * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; * * @return The attack. */ @java.lang.Override public com.google.cloud.securitycenter.v1.Attack getAttack() { return attack_ == null ? com.google.cloud.securitycenter.v1.Attack.getDefaultInstance() : attack_; } /** * * *
   * Information about DDoS attack volume and classification.
   * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ @java.lang.Override public com.google.cloud.securitycenter.v1.AttackOrBuilder getAttackOrBuilder() { return attack_ == null ? com.google.cloud.securitycenter.v1.Attack.getDefaultInstance() : attack_; } public static final int THREAT_VECTOR_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object threatVector_ = ""; /** * * *
   * Distinguish between volumetric & protocol DDoS attack and
   * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
   * attacks, or “L_7” for Layer 7 DDoS attacks.
   * 
* * string threat_vector = 5; * * @return The threatVector. */ @java.lang.Override public java.lang.String getThreatVector() { java.lang.Object ref = threatVector_; 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(); threatVector_ = s; return s; } } /** * * *
   * Distinguish between volumetric & protocol DDoS attack and
   * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
   * attacks, or “L_7” for Layer 7 DDoS attacks.
   * 
* * string threat_vector = 5; * * @return The bytes for threatVector. */ @java.lang.Override public com.google.protobuf.ByteString getThreatVectorBytes() { java.lang.Object ref = threatVector_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); threatVector_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration duration_; /** * * *
   * Duration of attack from the start until the current moment (updated every 5
   * minutes).
   * 
* * .google.protobuf.Duration duration = 6; * * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Duration of attack from the start until the current moment (updated every 5
   * minutes).
   * 
* * .google.protobuf.Duration duration = 6; * * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** * * *
   * Duration of attack from the start until the current moment (updated every 5
   * minutes).
   * 
* * .google.protobuf.Duration duration = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } 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_ & 0x00000001) != 0)) { output.writeMessage(1, getSecurityPolicy()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRequests()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getAdaptiveProtection()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getAttack()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(threatVector_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, threatVector_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getDuration()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSecurityPolicy()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequests()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAdaptiveProtection()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAttack()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(threatVector_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, threatVector_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDuration()); } 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.securitycenter.v1.CloudArmor)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.CloudArmor other = (com.google.cloud.securitycenter.v1.CloudArmor) obj; if (hasSecurityPolicy() != other.hasSecurityPolicy()) return false; if (hasSecurityPolicy()) { if (!getSecurityPolicy().equals(other.getSecurityPolicy())) return false; } if (hasRequests() != other.hasRequests()) return false; if (hasRequests()) { if (!getRequests().equals(other.getRequests())) return false; } if (hasAdaptiveProtection() != other.hasAdaptiveProtection()) return false; if (hasAdaptiveProtection()) { if (!getAdaptiveProtection().equals(other.getAdaptiveProtection())) return false; } if (hasAttack() != other.hasAttack()) return false; if (hasAttack()) { if (!getAttack().equals(other.getAttack())) return false; } if (!getThreatVector().equals(other.getThreatVector())) return false; if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration().equals(other.getDuration())) 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 (hasSecurityPolicy()) { hash = (37 * hash) + SECURITY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSecurityPolicy().hashCode(); } if (hasRequests()) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequests().hashCode(); } if (hasAdaptiveProtection()) { hash = (37 * hash) + ADAPTIVE_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + getAdaptiveProtection().hashCode(); } if (hasAttack()) { hash = (37 * hash) + ATTACK_FIELD_NUMBER; hash = (53 * hash) + getAttack().hashCode(); } hash = (37 * hash) + THREAT_VECTOR_FIELD_NUMBER; hash = (53 * hash) + getThreatVector().hashCode(); if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.CloudArmor parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.CloudArmor 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.securitycenter.v1.CloudArmor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.CloudArmor 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.securitycenter.v1.CloudArmor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.CloudArmor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.CloudArmor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.CloudArmor 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.securitycenter.v1.CloudArmor parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.CloudArmor 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.securitycenter.v1.CloudArmor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.CloudArmor 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.securitycenter.v1.CloudArmor 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; } /** * * *
   * Fields related to Google Cloud Armor findings.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1.CloudArmor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.CloudArmor) com.google.cloud.securitycenter.v1.CloudArmorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.CloudArmorProto .internal_static_google_cloud_securitycenter_v1_CloudArmor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.CloudArmorProto .internal_static_google_cloud_securitycenter_v1_CloudArmor_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.CloudArmor.class, com.google.cloud.securitycenter.v1.CloudArmor.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.CloudArmor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecurityPolicyFieldBuilder(); getRequestsFieldBuilder(); getAdaptiveProtectionFieldBuilder(); getAttackFieldBuilder(); getDurationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; securityPolicy_ = null; if (securityPolicyBuilder_ != null) { securityPolicyBuilder_.dispose(); securityPolicyBuilder_ = null; } requests_ = null; if (requestsBuilder_ != null) { requestsBuilder_.dispose(); requestsBuilder_ = null; } adaptiveProtection_ = null; if (adaptiveProtectionBuilder_ != null) { adaptiveProtectionBuilder_.dispose(); adaptiveProtectionBuilder_ = null; } attack_ = null; if (attackBuilder_ != null) { attackBuilder_.dispose(); attackBuilder_ = null; } threatVector_ = ""; duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.CloudArmorProto .internal_static_google_cloud_securitycenter_v1_CloudArmor_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.CloudArmor getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.CloudArmor.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.CloudArmor build() { com.google.cloud.securitycenter.v1.CloudArmor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.CloudArmor buildPartial() { com.google.cloud.securitycenter.v1.CloudArmor result = new com.google.cloud.securitycenter.v1.CloudArmor(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.securitycenter.v1.CloudArmor result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.securityPolicy_ = securityPolicyBuilder_ == null ? securityPolicy_ : securityPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.requests_ = requestsBuilder_ == null ? requests_ : requestsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.adaptiveProtection_ = adaptiveProtectionBuilder_ == null ? adaptiveProtection_ : adaptiveProtectionBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.attack_ = attackBuilder_ == null ? attack_ : attackBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.threatVector_ = threatVector_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); to_bitField0_ |= 0x00000010; } 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.securitycenter.v1.CloudArmor) { return mergeFrom((com.google.cloud.securitycenter.v1.CloudArmor) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v1.CloudArmor other) { if (other == com.google.cloud.securitycenter.v1.CloudArmor.getDefaultInstance()) return this; if (other.hasSecurityPolicy()) { mergeSecurityPolicy(other.getSecurityPolicy()); } if (other.hasRequests()) { mergeRequests(other.getRequests()); } if (other.hasAdaptiveProtection()) { mergeAdaptiveProtection(other.getAdaptiveProtection()); } if (other.hasAttack()) { mergeAttack(other.getAttack()); } if (!other.getThreatVector().isEmpty()) { threatVector_ = other.threatVector_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } 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 10: { input.readMessage(getSecurityPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getRequestsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getAdaptiveProtectionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getAttackFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { threatVector_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 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 com.google.cloud.securitycenter.v1.SecurityPolicy securityPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityPolicy, com.google.cloud.securitycenter.v1.SecurityPolicy.Builder, com.google.cloud.securitycenter.v1.SecurityPolicyOrBuilder> securityPolicyBuilder_; /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; * * @return Whether the securityPolicy field is set. */ public boolean hasSecurityPolicy() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; * * @return The securityPolicy. */ public com.google.cloud.securitycenter.v1.SecurityPolicy getSecurityPolicy() { if (securityPolicyBuilder_ == null) { return securityPolicy_ == null ? com.google.cloud.securitycenter.v1.SecurityPolicy.getDefaultInstance() : securityPolicy_; } else { return securityPolicyBuilder_.getMessage(); } } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public Builder setSecurityPolicy(com.google.cloud.securitycenter.v1.SecurityPolicy value) { if (securityPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityPolicy_ = value; } else { securityPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public Builder setSecurityPolicy( com.google.cloud.securitycenter.v1.SecurityPolicy.Builder builderForValue) { if (securityPolicyBuilder_ == null) { securityPolicy_ = builderForValue.build(); } else { securityPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public Builder mergeSecurityPolicy(com.google.cloud.securitycenter.v1.SecurityPolicy value) { if (securityPolicyBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && securityPolicy_ != null && securityPolicy_ != com.google.cloud.securitycenter.v1.SecurityPolicy.getDefaultInstance()) { getSecurityPolicyBuilder().mergeFrom(value); } else { securityPolicy_ = value; } } else { securityPolicyBuilder_.mergeFrom(value); } if (securityPolicy_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public Builder clearSecurityPolicy() { bitField0_ = (bitField0_ & ~0x00000001); securityPolicy_ = null; if (securityPolicyBuilder_ != null) { securityPolicyBuilder_.dispose(); securityPolicyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public com.google.cloud.securitycenter.v1.SecurityPolicy.Builder getSecurityPolicyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSecurityPolicyFieldBuilder().getBuilder(); } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ public com.google.cloud.securitycenter.v1.SecurityPolicyOrBuilder getSecurityPolicyOrBuilder() { if (securityPolicyBuilder_ != null) { return securityPolicyBuilder_.getMessageOrBuilder(); } else { return securityPolicy_ == null ? com.google.cloud.securitycenter.v1.SecurityPolicy.getDefaultInstance() : securityPolicy_; } } /** * * *
     * Information about the [Google Cloud Armor security
     * policy](https://cloud.google.com/armor/docs/security-policy-overview)
     * relevant to the finding.
     * 
* * .google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityPolicy, com.google.cloud.securitycenter.v1.SecurityPolicy.Builder, com.google.cloud.securitycenter.v1.SecurityPolicyOrBuilder> getSecurityPolicyFieldBuilder() { if (securityPolicyBuilder_ == null) { securityPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityPolicy, com.google.cloud.securitycenter.v1.SecurityPolicy.Builder, com.google.cloud.securitycenter.v1.SecurityPolicyOrBuilder>( getSecurityPolicy(), getParentForChildren(), isClean()); securityPolicy_ = null; } return securityPolicyBuilder_; } private com.google.cloud.securitycenter.v1.Requests requests_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Requests, com.google.cloud.securitycenter.v1.Requests.Builder, com.google.cloud.securitycenter.v1.RequestsOrBuilder> requestsBuilder_; /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; * * @return Whether the requests field is set. */ public boolean hasRequests() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; * * @return The requests. */ public com.google.cloud.securitycenter.v1.Requests getRequests() { if (requestsBuilder_ == null) { return requests_ == null ? com.google.cloud.securitycenter.v1.Requests.getDefaultInstance() : requests_; } else { return requestsBuilder_.getMessage(); } } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public Builder setRequests(com.google.cloud.securitycenter.v1.Requests value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requests_ = value; } else { requestsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public Builder setRequests( com.google.cloud.securitycenter.v1.Requests.Builder builderForValue) { if (requestsBuilder_ == null) { requests_ = builderForValue.build(); } else { requestsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public Builder mergeRequests(com.google.cloud.securitycenter.v1.Requests value) { if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && requests_ != null && requests_ != com.google.cloud.securitycenter.v1.Requests.getDefaultInstance()) { getRequestsBuilder().mergeFrom(value); } else { requests_ = value; } } else { requestsBuilder_.mergeFrom(value); } if (requests_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public Builder clearRequests() { bitField0_ = (bitField0_ & ~0x00000002); requests_ = null; if (requestsBuilder_ != null) { requestsBuilder_.dispose(); requestsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public com.google.cloud.securitycenter.v1.Requests.Builder getRequestsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRequestsFieldBuilder().getBuilder(); } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ public com.google.cloud.securitycenter.v1.RequestsOrBuilder getRequestsOrBuilder() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilder(); } else { return requests_ == null ? com.google.cloud.securitycenter.v1.Requests.getDefaultInstance() : requests_; } } /** * * *
     * Information about incoming requests evaluated by [Google Cloud Armor
     * security
     * policies](https://cloud.google.com/armor/docs/security-policy-overview).
     * 
* * .google.cloud.securitycenter.v1.Requests requests = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Requests, com.google.cloud.securitycenter.v1.Requests.Builder, com.google.cloud.securitycenter.v1.RequestsOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { requestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Requests, com.google.cloud.securitycenter.v1.Requests.Builder, com.google.cloud.securitycenter.v1.RequestsOrBuilder>( getRequests(), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } private com.google.cloud.securitycenter.v1.AdaptiveProtection adaptiveProtection_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.AdaptiveProtection, com.google.cloud.securitycenter.v1.AdaptiveProtection.Builder, com.google.cloud.securitycenter.v1.AdaptiveProtectionOrBuilder> adaptiveProtectionBuilder_; /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; * * @return Whether the adaptiveProtection field is set. */ public boolean hasAdaptiveProtection() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; * * @return The adaptiveProtection. */ public com.google.cloud.securitycenter.v1.AdaptiveProtection getAdaptiveProtection() { if (adaptiveProtectionBuilder_ == null) { return adaptiveProtection_ == null ? com.google.cloud.securitycenter.v1.AdaptiveProtection.getDefaultInstance() : adaptiveProtection_; } else { return adaptiveProtectionBuilder_.getMessage(); } } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public Builder setAdaptiveProtection( com.google.cloud.securitycenter.v1.AdaptiveProtection value) { if (adaptiveProtectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adaptiveProtection_ = value; } else { adaptiveProtectionBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public Builder setAdaptiveProtection( com.google.cloud.securitycenter.v1.AdaptiveProtection.Builder builderForValue) { if (adaptiveProtectionBuilder_ == null) { adaptiveProtection_ = builderForValue.build(); } else { adaptiveProtectionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public Builder mergeAdaptiveProtection( com.google.cloud.securitycenter.v1.AdaptiveProtection value) { if (adaptiveProtectionBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && adaptiveProtection_ != null && adaptiveProtection_ != com.google.cloud.securitycenter.v1.AdaptiveProtection.getDefaultInstance()) { getAdaptiveProtectionBuilder().mergeFrom(value); } else { adaptiveProtection_ = value; } } else { adaptiveProtectionBuilder_.mergeFrom(value); } if (adaptiveProtection_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public Builder clearAdaptiveProtection() { bitField0_ = (bitField0_ & ~0x00000004); adaptiveProtection_ = null; if (adaptiveProtectionBuilder_ != null) { adaptiveProtectionBuilder_.dispose(); adaptiveProtectionBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public com.google.cloud.securitycenter.v1.AdaptiveProtection.Builder getAdaptiveProtectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAdaptiveProtectionFieldBuilder().getBuilder(); } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ public com.google.cloud.securitycenter.v1.AdaptiveProtectionOrBuilder getAdaptiveProtectionOrBuilder() { if (adaptiveProtectionBuilder_ != null) { return adaptiveProtectionBuilder_.getMessageOrBuilder(); } else { return adaptiveProtection_ == null ? com.google.cloud.securitycenter.v1.AdaptiveProtection.getDefaultInstance() : adaptiveProtection_; } } /** * * *
     * Information about potential Layer 7 DDoS attacks identified by [Google
     * Cloud Armor Adaptive
     * Protection](https://cloud.google.com/armor/docs/adaptive-protection-overview).
     * 
* * .google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.AdaptiveProtection, com.google.cloud.securitycenter.v1.AdaptiveProtection.Builder, com.google.cloud.securitycenter.v1.AdaptiveProtectionOrBuilder> getAdaptiveProtectionFieldBuilder() { if (adaptiveProtectionBuilder_ == null) { adaptiveProtectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.AdaptiveProtection, com.google.cloud.securitycenter.v1.AdaptiveProtection.Builder, com.google.cloud.securitycenter.v1.AdaptiveProtectionOrBuilder>( getAdaptiveProtection(), getParentForChildren(), isClean()); adaptiveProtection_ = null; } return adaptiveProtectionBuilder_; } private com.google.cloud.securitycenter.v1.Attack attack_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Attack, com.google.cloud.securitycenter.v1.Attack.Builder, com.google.cloud.securitycenter.v1.AttackOrBuilder> attackBuilder_; /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; * * @return Whether the attack field is set. */ public boolean hasAttack() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; * * @return The attack. */ public com.google.cloud.securitycenter.v1.Attack getAttack() { if (attackBuilder_ == null) { return attack_ == null ? com.google.cloud.securitycenter.v1.Attack.getDefaultInstance() : attack_; } else { return attackBuilder_.getMessage(); } } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public Builder setAttack(com.google.cloud.securitycenter.v1.Attack value) { if (attackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attack_ = value; } else { attackBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public Builder setAttack(com.google.cloud.securitycenter.v1.Attack.Builder builderForValue) { if (attackBuilder_ == null) { attack_ = builderForValue.build(); } else { attackBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public Builder mergeAttack(com.google.cloud.securitycenter.v1.Attack value) { if (attackBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && attack_ != null && attack_ != com.google.cloud.securitycenter.v1.Attack.getDefaultInstance()) { getAttackBuilder().mergeFrom(value); } else { attack_ = value; } } else { attackBuilder_.mergeFrom(value); } if (attack_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public Builder clearAttack() { bitField0_ = (bitField0_ & ~0x00000008); attack_ = null; if (attackBuilder_ != null) { attackBuilder_.dispose(); attackBuilder_ = null; } onChanged(); return this; } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public com.google.cloud.securitycenter.v1.Attack.Builder getAttackBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAttackFieldBuilder().getBuilder(); } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ public com.google.cloud.securitycenter.v1.AttackOrBuilder getAttackOrBuilder() { if (attackBuilder_ != null) { return attackBuilder_.getMessageOrBuilder(); } else { return attack_ == null ? com.google.cloud.securitycenter.v1.Attack.getDefaultInstance() : attack_; } } /** * * *
     * Information about DDoS attack volume and classification.
     * 
* * .google.cloud.securitycenter.v1.Attack attack = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Attack, com.google.cloud.securitycenter.v1.Attack.Builder, com.google.cloud.securitycenter.v1.AttackOrBuilder> getAttackFieldBuilder() { if (attackBuilder_ == null) { attackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Attack, com.google.cloud.securitycenter.v1.Attack.Builder, com.google.cloud.securitycenter.v1.AttackOrBuilder>( getAttack(), getParentForChildren(), isClean()); attack_ = null; } return attackBuilder_; } private java.lang.Object threatVector_ = ""; /** * * *
     * Distinguish between volumetric & protocol DDoS attack and
     * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
     * attacks, or “L_7” for Layer 7 DDoS attacks.
     * 
* * string threat_vector = 5; * * @return The threatVector. */ public java.lang.String getThreatVector() { java.lang.Object ref = threatVector_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); threatVector_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Distinguish between volumetric & protocol DDoS attack and
     * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
     * attacks, or “L_7” for Layer 7 DDoS attacks.
     * 
* * string threat_vector = 5; * * @return The bytes for threatVector. */ public com.google.protobuf.ByteString getThreatVectorBytes() { java.lang.Object ref = threatVector_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); threatVector_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Distinguish between volumetric & protocol DDoS attack and
     * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
     * attacks, or “L_7” for Layer 7 DDoS attacks.
     * 
* * string threat_vector = 5; * * @param value The threatVector to set. * @return This builder for chaining. */ public Builder setThreatVector(java.lang.String value) { if (value == null) { throw new NullPointerException(); } threatVector_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Distinguish between volumetric & protocol DDoS attack and
     * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
     * attacks, or “L_7” for Layer 7 DDoS attacks.
     * 
* * string threat_vector = 5; * * @return This builder for chaining. */ public Builder clearThreatVector() { threatVector_ = getDefaultInstance().getThreatVector(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Distinguish between volumetric & protocol DDoS attack and
     * application layer attacks. For example, “L3_4” for Layer 3 and Layer 4 DDoS
     * attacks, or “L_7” for Layer 7 DDoS attacks.
     * 
* * string threat_vector = 5; * * @param value The bytes for threatVector to set. * @return This builder for chaining. */ public Builder setThreatVectorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); threatVector_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; * * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; } } else { durationBuilder_.mergeFrom(value); } if (duration_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000020); duration_ = null; if (durationBuilder_ != null) { durationBuilder_.dispose(); durationBuilder_ = null; } onChanged(); return this; } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** * * *
     * Duration of attack from the start until the current moment (updated every 5
     * minutes).
     * 
* * .google.protobuf.Duration duration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } @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.securitycenter.v1.CloudArmor) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.CloudArmor) private static final com.google.cloud.securitycenter.v1.CloudArmor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.CloudArmor(); } public static com.google.cloud.securitycenter.v1.CloudArmor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CloudArmor 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.securitycenter.v1.CloudArmor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy