Class CloudArmor.Builder (2.50.0)

public static final class CloudArmor.Builder extends GeneratedMessageV3.Builder<CloudArmor.Builder> implements CloudArmorOrBuilder

Fields related to Google Cloud Armor findings.

Protobuf type google.cloud.securitycenter.v1.CloudArmor

Implements

CloudArmorOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudArmor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudArmor.Builder
Overrides

build()

public CloudArmor build()
Returns
Type Description
CloudArmor

buildPartial()

public CloudArmor buildPartial()
Returns
Type Description
CloudArmor

clear()

public CloudArmor.Builder clear()
Returns
Type Description
CloudArmor.Builder
Overrides

clearAdaptiveProtection()

public CloudArmor.Builder clearAdaptiveProtection()

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Returns
Type Description
CloudArmor.Builder

clearAttack()

public CloudArmor.Builder clearAttack()

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Returns
Type Description
CloudArmor.Builder

clearDuration()

public CloudArmor.Builder clearDuration()

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Returns
Type Description
CloudArmor.Builder

clearField(Descriptors.FieldDescriptor field)

public CloudArmor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CloudArmor.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudArmor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CloudArmor.Builder
Overrides

clearRequests()

public CloudArmor.Builder clearRequests()

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Returns
Type Description
CloudArmor.Builder

clearSecurityPolicy()

public CloudArmor.Builder clearSecurityPolicy()

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Returns
Type Description
CloudArmor.Builder

clearThreatVector()

public CloudArmor.Builder clearThreatVector()

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;

Returns
Type Description
CloudArmor.Builder

This builder for chaining.

clone()

public CloudArmor.Builder clone()
Returns
Type Description
CloudArmor.Builder
Overrides

getAdaptiveProtection()

public AdaptiveProtection getAdaptiveProtection()

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Returns
Type Description
AdaptiveProtection

The adaptiveProtection.

getAdaptiveProtectionBuilder()

public AdaptiveProtection.Builder getAdaptiveProtectionBuilder()

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Returns
Type Description
AdaptiveProtection.Builder

getAdaptiveProtectionOrBuilder()

public AdaptiveProtectionOrBuilder getAdaptiveProtectionOrBuilder()

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Returns
Type Description
AdaptiveProtectionOrBuilder

getAttack()

public Attack getAttack()

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Returns
Type Description
Attack

The attack.

getAttackBuilder()

public Attack.Builder getAttackBuilder()

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Returns
Type Description
Attack.Builder

getAttackOrBuilder()

public AttackOrBuilder getAttackOrBuilder()

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Returns
Type Description
AttackOrBuilder

getDefaultInstanceForType()

public CloudArmor getDefaultInstanceForType()
Returns
Type Description
CloudArmor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDuration()

public Duration getDuration()

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Returns
Type Description
DurationOrBuilder

getRequests()

public Requests getRequests()

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Returns
Type Description
Requests

The requests.

getRequestsBuilder()

public Requests.Builder getRequestsBuilder()

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Returns
Type Description
Requests.Builder

getRequestsOrBuilder()

public RequestsOrBuilder getRequestsOrBuilder()

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Returns
Type Description
RequestsOrBuilder

getSecurityPolicy()

public SecurityPolicy getSecurityPolicy()

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Returns
Type Description
SecurityPolicy

The securityPolicy.

getSecurityPolicyBuilder()

public SecurityPolicy.Builder getSecurityPolicyBuilder()

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Returns
Type Description
SecurityPolicy.Builder

getSecurityPolicyOrBuilder()

public SecurityPolicyOrBuilder getSecurityPolicyOrBuilder()

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Returns
Type Description
SecurityPolicyOrBuilder

getThreatVector()

public String getThreatVector()

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;

Returns
Type Description
String

The threatVector.

getThreatVectorBytes()

public ByteString getThreatVectorBytes()

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;

Returns
Type Description
ByteString

The bytes for threatVector.

hasAdaptiveProtection()

public boolean hasAdaptiveProtection()

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Returns
Type Description
boolean

Whether the adaptiveProtection field is set.

hasAttack()

public boolean hasAttack()

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Returns
Type Description
boolean

Whether the attack field is set.

hasDuration()

public boolean hasDuration()

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Returns
Type Description
boolean

Whether the duration field is set.

hasRequests()

public boolean hasRequests()

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Returns
Type Description
boolean

Whether the requests field is set.

hasSecurityPolicy()

public boolean hasSecurityPolicy()

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Returns
Type Description
boolean

Whether the securityPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdaptiveProtection(AdaptiveProtection value)

public CloudArmor.Builder mergeAdaptiveProtection(AdaptiveProtection value)

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Parameter
Name Description
value AdaptiveProtection
Returns
Type Description
CloudArmor.Builder

mergeAttack(Attack value)

public CloudArmor.Builder mergeAttack(Attack value)

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Parameter
Name Description
value Attack
Returns
Type Description
CloudArmor.Builder

mergeDuration(Duration value)

public CloudArmor.Builder mergeDuration(Duration value)

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Parameter
Name Description
value Duration
Returns
Type Description
CloudArmor.Builder

mergeFrom(CloudArmor other)

public CloudArmor.Builder mergeFrom(CloudArmor other)
Parameter
Name Description
other CloudArmor
Returns
Type Description
CloudArmor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudArmor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudArmor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CloudArmor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CloudArmor.Builder
Overrides

mergeRequests(Requests value)

public CloudArmor.Builder mergeRequests(Requests value)

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Parameter
Name Description
value Requests
Returns
Type Description
CloudArmor.Builder

mergeSecurityPolicy(SecurityPolicy value)

public CloudArmor.Builder mergeSecurityPolicy(SecurityPolicy value)

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Parameter
Name Description
value SecurityPolicy
Returns
Type Description
CloudArmor.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudArmor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudArmor.Builder
Overrides

setAdaptiveProtection(AdaptiveProtection value)

public CloudArmor.Builder setAdaptiveProtection(AdaptiveProtection value)

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Parameter
Name Description
value AdaptiveProtection
Returns
Type Description
CloudArmor.Builder

setAdaptiveProtection(AdaptiveProtection.Builder builderForValue)

public CloudArmor.Builder setAdaptiveProtection(AdaptiveProtection.Builder builderForValue)

Information about potential Layer 7 DDoS attacks identified by Google Cloud Armor Adaptive Protection.

.google.cloud.securitycenter.v1.AdaptiveProtection adaptive_protection = 3;

Parameter
Name Description
builderForValue AdaptiveProtection.Builder
Returns
Type Description
CloudArmor.Builder

setAttack(Attack value)

public CloudArmor.Builder setAttack(Attack value)

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Parameter
Name Description
value Attack
Returns
Type Description
CloudArmor.Builder

setAttack(Attack.Builder builderForValue)

public CloudArmor.Builder setAttack(Attack.Builder builderForValue)

Information about DDoS attack volume and classification.

.google.cloud.securitycenter.v1.Attack attack = 4;

Parameter
Name Description
builderForValue Attack.Builder
Returns
Type Description
CloudArmor.Builder

setDuration(Duration value)

public CloudArmor.Builder setDuration(Duration value)

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Parameter
Name Description
value Duration
Returns
Type Description
CloudArmor.Builder

setDuration(Duration.Builder builderForValue)

public CloudArmor.Builder setDuration(Duration.Builder builderForValue)

Duration of attack from the start until the current moment (updated every 5 minutes).

.google.protobuf.Duration duration = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CloudArmor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CloudArmor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CloudArmor.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudArmor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CloudArmor.Builder
Overrides

setRequests(Requests value)

public CloudArmor.Builder setRequests(Requests value)

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Parameter
Name Description
value Requests
Returns
Type Description
CloudArmor.Builder

setRequests(Requests.Builder builderForValue)

public CloudArmor.Builder setRequests(Requests.Builder builderForValue)

Information about incoming requests evaluated by Google Cloud Armor security policies.

.google.cloud.securitycenter.v1.Requests requests = 2;

Parameter
Name Description
builderForValue Requests.Builder
Returns
Type Description
CloudArmor.Builder

setSecurityPolicy(SecurityPolicy value)

public CloudArmor.Builder setSecurityPolicy(SecurityPolicy value)

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Parameter
Name Description
value SecurityPolicy
Returns
Type Description
CloudArmor.Builder

setSecurityPolicy(SecurityPolicy.Builder builderForValue)

public CloudArmor.Builder setSecurityPolicy(SecurityPolicy.Builder builderForValue)

Information about the Google Cloud Armor security policy relevant to the finding.

.google.cloud.securitycenter.v1.SecurityPolicy security_policy = 1;

Parameter
Name Description
builderForValue SecurityPolicy.Builder
Returns
Type Description
CloudArmor.Builder

setThreatVector(String value)

public CloudArmor.Builder setThreatVector(String value)

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;

Parameter
Name Description
value String

The threatVector to set.

Returns
Type Description
CloudArmor.Builder

This builder for chaining.

setThreatVectorBytes(ByteString value)

public CloudArmor.Builder setThreatVectorBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for threatVector to set.

Returns
Type Description
CloudArmor.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudArmor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CloudArmor.Builder
Overrides