Class SecurityPolicy.Builder (2.55.0)

public static final class SecurityPolicy.Builder extends GeneratedMessageV3.Builder<SecurityPolicy.Builder> implements SecurityPolicyOrBuilder

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

Protobuf type google.cloud.securitycenter.v2.SecurityPolicy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicy build()
Returns
Type Description
SecurityPolicy

buildPartial()

public SecurityPolicy buildPartial()
Returns
Type Description
SecurityPolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SecurityPolicy.Builder clearName()

The name of the Google Cloud Armor security policy, for example, "my-security-policy".

string name = 1;

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreview()

public SecurityPolicy.Builder clearPreview()

Whether or not the associated rule or policy is in preview mode.

bool preview = 3;

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

clearType()

public SecurityPolicy.Builder clearType()

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.

string type = 2;

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SecurityPolicy getDefaultInstanceForType()
Returns
Type Description
SecurityPolicy

getDescriptorForType()

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

getName()

public String getName()

The name of the Google Cloud Armor security policy, for example, "my-security-policy".

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the Google Cloud Armor security policy, for example, "my-security-policy".

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPreview()

public boolean getPreview()

Whether or not the associated rule or policy is in preview mode.

bool preview = 3;

Returns
Type Description
boolean

The preview.

getType()

public String getType()

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SecurityPolicy.Builder setName(String value)

The name of the Google Cloud Armor security policy, for example, "my-security-policy".

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SecurityPolicy.Builder setNameBytes(ByteString value)

The name of the Google Cloud Armor security policy, for example, "my-security-policy".

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

setPreview(boolean value)

public SecurityPolicy.Builder setPreview(boolean value)

Whether or not the associated rule or policy is in preview mode.

bool preview = 3;

Parameter
Name Description
value boolean

The preview to set.

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

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

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

setType(String value)

public SecurityPolicy.Builder setType(String value)

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public SecurityPolicy.Builder setTypeBytes(ByteString value)

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
SecurityPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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