Class SecurityPolicyAssociation.Builder (1.88.0)

public static final class SecurityPolicyAssociation.Builder extends GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder> implements SecurityPolicyAssociationOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyAssociation

Static Methods

getDescriptor()

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

Methods

addAllExcludedFolders(Iterable<String> values)

public SecurityPolicyAssociation.Builder addAllExcludedFolders(Iterable<String> values)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameter
Name Description
values Iterable<String>

The excludedFolders to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addAllExcludedProjects(Iterable<String> values)

public SecurityPolicyAssociation.Builder addAllExcludedProjects(Iterable<String> values)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameter
Name Description
values Iterable<String>

The excludedProjects to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addExcludedFolders(String value)

public SecurityPolicyAssociation.Builder addExcludedFolders(String value)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameter
Name Description
value String

The excludedFolders to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addExcludedFoldersBytes(ByteString value)

public SecurityPolicyAssociation.Builder addExcludedFoldersBytes(ByteString value)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameter
Name Description
value ByteString

The bytes of the excludedFolders to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addExcludedProjects(String value)

public SecurityPolicyAssociation.Builder addExcludedProjects(String value)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameter
Name Description
value String

The excludedProjects to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addExcludedProjectsBytes(ByteString value)

public SecurityPolicyAssociation.Builder addExcludedProjectsBytes(ByteString value)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameter
Name Description
value ByteString

The bytes of the excludedProjects to add.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicyAssociation build()
Returns
Type Description
SecurityPolicyAssociation

buildPartial()

public SecurityPolicyAssociation buildPartial()
Returns
Type Description
SecurityPolicyAssociation

clear()

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

clearAttachmentId()

public SecurityPolicyAssociation.Builder clearAttachmentId()

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearDisplayName()

public SecurityPolicyAssociation.Builder clearDisplayName()

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearExcludedFolders()

public SecurityPolicyAssociation.Builder clearExcludedFolders()

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearExcludedProjects()

public SecurityPolicyAssociation.Builder clearExcludedProjects()

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SecurityPolicyAssociation.Builder clearName()

The name for an association.

optional string name = 3373707;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecurityPolicyId()

public SecurityPolicyAssociation.Builder clearSecurityPolicyId()

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clearShortName()

public SecurityPolicyAssociation.Builder clearShortName()

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

clone()

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

getAttachmentId()

public String getAttachmentId()

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Returns
Type Description
String

The attachmentId.

getAttachmentIdBytes()

public ByteString getAttachmentIdBytes()

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Returns
Type Description
ByteString

The bytes for attachmentId.

getDefaultInstanceForType()

public SecurityPolicyAssociation getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyAssociation

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Returns
Type Description
ByteString

The bytes for displayName.

getExcludedFolders(int index)

public String getExcludedFolders(int index)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedFolders at the given index.

getExcludedFoldersBytes(int index)

public ByteString getExcludedFoldersBytes(int index)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedFolders at the given index.

getExcludedFoldersCount()

public int getExcludedFoldersCount()

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Returns
Type Description
int

The count of excludedFolders.

getExcludedFoldersList()

public ProtocolStringList getExcludedFoldersList()

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Returns
Type Description
ProtocolStringList

A list containing the excludedFolders.

getExcludedProjects(int index)

public String getExcludedProjects(int index)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedProjects at the given index.

getExcludedProjectsBytes(int index)

public ByteString getExcludedProjectsBytes(int index)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedProjects at the given index.

getExcludedProjectsCount()

public int getExcludedProjectsCount()

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Returns
Type Description
int

The count of excludedProjects.

getExcludedProjectsList()

public ProtocolStringList getExcludedProjectsList()

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Returns
Type Description
ProtocolStringList

A list containing the excludedProjects.

getName()

public String getName()

The name for an association.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name for an association.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getSecurityPolicyId()

public String getSecurityPolicyId()

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Returns
Type Description
String

The securityPolicyId.

getSecurityPolicyIdBytes()

public ByteString getSecurityPolicyIdBytes()

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Returns
Type Description
ByteString

The bytes for securityPolicyId.

getShortName()

public String getShortName()

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Returns
Type Description
String

The shortName.

getShortNameBytes()

public ByteString getShortNameBytes()

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Returns
Type Description
ByteString

The bytes for shortName.

hasAttachmentId()

public boolean hasAttachmentId()

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Returns
Type Description
boolean

Whether the attachmentId field is set.

hasDisplayName()

public boolean hasDisplayName()

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Returns
Type Description
boolean

Whether the displayName field is set.

hasName()

public boolean hasName()

The name for an association.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasSecurityPolicyId()

public boolean hasSecurityPolicyId()

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Returns
Type Description
boolean

Whether the securityPolicyId field is set.

hasShortName()

public boolean hasShortName()

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Returns
Type Description
boolean

Whether the shortName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyAssociation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttachmentId(String value)

public SecurityPolicyAssociation.Builder setAttachmentId(String value)

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Parameter
Name Description
value String

The attachmentId to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setAttachmentIdBytes(ByteString value)

public SecurityPolicyAssociation.Builder setAttachmentIdBytes(ByteString value)

The resource that the security policy is attached to.

optional string attachment_id = 103768503;

Parameter
Name Description
value ByteString

The bytes for attachmentId to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setDisplayName(String value)

public SecurityPolicyAssociation.Builder setDisplayName(String value)

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SecurityPolicyAssociation.Builder setDisplayNameBytes(ByteString value)

[Output Only] The display name of the security policy of the association.

optional string display_name = 4473832;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setExcludedFolders(int index, String value)

public SecurityPolicyAssociation.Builder setExcludedFolders(int index, String value)

A list of folders to exclude from the security policy.

repeated string excluded_folders = 310611024;

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedFolders to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setExcludedProjects(int index, String value)

public SecurityPolicyAssociation.Builder setExcludedProjects(int index, String value)

A list of projects to exclude from the security policy.

repeated string excluded_projects = 283070287;

Parameters
Name Description
index int

The index to set the value at.

value String

The excludedProjects to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SecurityPolicyAssociation.Builder setName(String value)

The name for an association.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SecurityPolicyAssociation.Builder setNameBytes(ByteString value)

The name for an association.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

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

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

setSecurityPolicyId(String value)

public SecurityPolicyAssociation.Builder setSecurityPolicyId(String value)

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Parameter
Name Description
value String

The securityPolicyId to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setSecurityPolicyIdBytes(ByteString value)

public SecurityPolicyAssociation.Builder setSecurityPolicyIdBytes(ByteString value)

[Output Only] The security policy ID of the association.

optional string security_policy_id = 203671817;

Parameter
Name Description
value ByteString

The bytes for securityPolicyId to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setShortName(String value)

public SecurityPolicyAssociation.Builder setShortName(String value)

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Parameter
Name Description
value String

The shortName to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setShortNameBytes(ByteString value)

public SecurityPolicyAssociation.Builder setShortNameBytes(ByteString value)

[Output Only] The short name of the security policy of the association.

optional string short_name = 492051566;

Parameter
Name Description
value ByteString

The bytes for shortName to set.

Returns
Type Description
SecurityPolicyAssociation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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