public static final class SecurityPolicyAssociation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder> implements SecurityPolicyAssociationOrBuilder
Protobuf type
google.cloud.compute.v1.SecurityPolicyAssociation| Modifier and Type | Method and Description |
|---|---|
SecurityPolicyAssociation.Builder |
addAllExcludedFolders(Iterable<String> values)
A list of folders to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addAllExcludedProjects(Iterable<String> values)
A list of projects to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addExcludedFolders(String value)
A list of folders to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addExcludedFoldersBytes(com.google.protobuf.ByteString value)
A list of folders to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addExcludedProjects(String value)
A list of projects to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addExcludedProjectsBytes(com.google.protobuf.ByteString value)
A list of projects to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyAssociation |
build() |
SecurityPolicyAssociation |
buildPartial() |
SecurityPolicyAssociation.Builder |
clear() |
SecurityPolicyAssociation.Builder |
clearAttachmentId()
The resource that the security policy is attached to.
|
SecurityPolicyAssociation.Builder |
clearDisplayName()
[Output Only] The display name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
clearExcludedFolders()
A list of folders to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
clearExcludedProjects()
A list of projects to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecurityPolicyAssociation.Builder |
clearName()
The name for an association.
|
SecurityPolicyAssociation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecurityPolicyAssociation.Builder |
clearSecurityPolicyId()
[Output Only] The security policy ID of the association.
|
SecurityPolicyAssociation.Builder |
clearShortName()
[Output Only] The short name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
clone() |
String |
getAttachmentId()
The resource that the security policy is attached to.
|
com.google.protobuf.ByteString |
getAttachmentIdBytes()
The resource that the security policy is attached to.
|
SecurityPolicyAssociation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
[Output Only] The display name of the security policy of the association.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
[Output Only] The display name of the security policy of the association.
|
String |
getExcludedFolders(int index)
A list of folders to exclude from the security policy.
|
com.google.protobuf.ByteString |
getExcludedFoldersBytes(int index)
A list of folders to exclude from the security policy.
|
int |
getExcludedFoldersCount()
A list of folders to exclude from the security policy.
|
com.google.protobuf.ProtocolStringList |
getExcludedFoldersList()
A list of folders to exclude from the security policy.
|
String |
getExcludedProjects(int index)
A list of projects to exclude from the security policy.
|
com.google.protobuf.ByteString |
getExcludedProjectsBytes(int index)
A list of projects to exclude from the security policy.
|
int |
getExcludedProjectsCount()
A list of projects to exclude from the security policy.
|
com.google.protobuf.ProtocolStringList |
getExcludedProjectsList()
A list of projects to exclude from the security policy.
|
String |
getName()
The name for an association.
|
com.google.protobuf.ByteString |
getNameBytes()
The name for an association.
|
String |
getSecurityPolicyId()
[Output Only] The security policy ID of the association.
|
com.google.protobuf.ByteString |
getSecurityPolicyIdBytes()
[Output Only] The security policy ID of the association.
|
String |
getShortName()
[Output Only] The short name of the security policy of the association.
|
com.google.protobuf.ByteString |
getShortNameBytes()
[Output Only] The short name of the security policy of the association.
|
boolean |
hasAttachmentId()
The resource that the security policy is attached to.
|
boolean |
hasDisplayName()
[Output Only] The display name of the security policy of the association.
|
boolean |
hasName()
The name for an association.
|
boolean |
hasSecurityPolicyId()
[Output Only] The security policy ID of the association.
|
boolean |
hasShortName()
[Output Only] The short name of the security policy of the association.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecurityPolicyAssociation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecurityPolicyAssociation.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecurityPolicyAssociation.Builder |
mergeFrom(SecurityPolicyAssociation other) |
SecurityPolicyAssociation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecurityPolicyAssociation.Builder |
setAttachmentId(String value)
The resource that the security policy is attached to.
|
SecurityPolicyAssociation.Builder |
setAttachmentIdBytes(com.google.protobuf.ByteString value)
The resource that the security policy is attached to.
|
SecurityPolicyAssociation.Builder |
setDisplayName(String value)
[Output Only] The display name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
[Output Only] The display name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
setExcludedFolders(int index,
String value)
A list of folders to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
setExcludedProjects(int index,
String value)
A list of projects to exclude from the security policy.
|
SecurityPolicyAssociation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecurityPolicyAssociation.Builder |
setName(String value)
The name for an association.
|
SecurityPolicyAssociation.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name for an association.
|
SecurityPolicyAssociation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SecurityPolicyAssociation.Builder |
setSecurityPolicyId(String value)
[Output Only] The security policy ID of the association.
|
SecurityPolicyAssociation.Builder |
setSecurityPolicyIdBytes(com.google.protobuf.ByteString value)
[Output Only] The security policy ID of the association.
|
SecurityPolicyAssociation.Builder |
setShortName(String value)
[Output Only] The short name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
setShortNameBytes(com.google.protobuf.ByteString value)
[Output Only] The short name of the security policy of the association.
|
SecurityPolicyAssociation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecurityPolicyAssociation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyAssociation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecurityPolicyAssociation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder mergeFrom(SecurityPolicyAssociation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public SecurityPolicyAssociation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyAssociation.Builder>IOExceptionpublic boolean hasAttachmentId()
The resource that the security policy is attached to.
optional string attachment_id = 103768503;hasAttachmentId in interface SecurityPolicyAssociationOrBuilderpublic String getAttachmentId()
The resource that the security policy is attached to.
optional string attachment_id = 103768503;getAttachmentId in interface SecurityPolicyAssociationOrBuilderpublic com.google.protobuf.ByteString getAttachmentIdBytes()
The resource that the security policy is attached to.
optional string attachment_id = 103768503;getAttachmentIdBytes in interface SecurityPolicyAssociationOrBuilderpublic SecurityPolicyAssociation.Builder setAttachmentId(String value)
The resource that the security policy is attached to.
optional string attachment_id = 103768503;value - The attachmentId to set.public SecurityPolicyAssociation.Builder clearAttachmentId()
The resource that the security policy is attached to.
optional string attachment_id = 103768503;public SecurityPolicyAssociation.Builder setAttachmentIdBytes(com.google.protobuf.ByteString value)
The resource that the security policy is attached to.
optional string attachment_id = 103768503;value - The bytes for attachmentId to set.public boolean hasDisplayName()
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;hasDisplayName in interface SecurityPolicyAssociationOrBuilderpublic String getDisplayName()
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;getDisplayName in interface SecurityPolicyAssociationOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;getDisplayNameBytes in interface SecurityPolicyAssociationOrBuilderpublic SecurityPolicyAssociation.Builder setDisplayName(String value)
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;value - The displayName to set.public SecurityPolicyAssociation.Builder clearDisplayName()
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;public SecurityPolicyAssociation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
[Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;value - The bytes for displayName to set.public com.google.protobuf.ProtocolStringList getExcludedFoldersList()
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;getExcludedFoldersList in interface SecurityPolicyAssociationOrBuilderpublic int getExcludedFoldersCount()
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;getExcludedFoldersCount in interface SecurityPolicyAssociationOrBuilderpublic String getExcludedFolders(int index)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;getExcludedFolders in interface SecurityPolicyAssociationOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExcludedFoldersBytes(int index)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;getExcludedFoldersBytes in interface SecurityPolicyAssociationOrBuilderindex - The index of the value to return.public SecurityPolicyAssociation.Builder setExcludedFolders(int index, String value)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;index - The index to set the value at.value - The excludedFolders to set.public SecurityPolicyAssociation.Builder addExcludedFolders(String value)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;value - The excludedFolders to add.public SecurityPolicyAssociation.Builder addAllExcludedFolders(Iterable<String> values)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;values - The excludedFolders to add.public SecurityPolicyAssociation.Builder clearExcludedFolders()
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;public SecurityPolicyAssociation.Builder addExcludedFoldersBytes(com.google.protobuf.ByteString value)
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;value - The bytes of the excludedFolders to add.public com.google.protobuf.ProtocolStringList getExcludedProjectsList()
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;getExcludedProjectsList in interface SecurityPolicyAssociationOrBuilderpublic int getExcludedProjectsCount()
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;getExcludedProjectsCount in interface SecurityPolicyAssociationOrBuilderpublic String getExcludedProjects(int index)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;getExcludedProjects in interface SecurityPolicyAssociationOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExcludedProjectsBytes(int index)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;getExcludedProjectsBytes in interface SecurityPolicyAssociationOrBuilderindex - The index of the value to return.public SecurityPolicyAssociation.Builder setExcludedProjects(int index, String value)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;index - The index to set the value at.value - The excludedProjects to set.public SecurityPolicyAssociation.Builder addExcludedProjects(String value)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;value - The excludedProjects to add.public SecurityPolicyAssociation.Builder addAllExcludedProjects(Iterable<String> values)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;values - The excludedProjects to add.public SecurityPolicyAssociation.Builder clearExcludedProjects()
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;public SecurityPolicyAssociation.Builder addExcludedProjectsBytes(com.google.protobuf.ByteString value)
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;value - The bytes of the excludedProjects to add.public boolean hasName()
The name for an association.
optional string name = 3373707;hasName in interface SecurityPolicyAssociationOrBuilderpublic String getName()
The name for an association.
optional string name = 3373707;getName in interface SecurityPolicyAssociationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name for an association.
optional string name = 3373707;getNameBytes in interface SecurityPolicyAssociationOrBuilderpublic SecurityPolicyAssociation.Builder setName(String value)
The name for an association.
optional string name = 3373707;value - The name to set.public SecurityPolicyAssociation.Builder clearName()
The name for an association.
optional string name = 3373707;public SecurityPolicyAssociation.Builder setNameBytes(com.google.protobuf.ByteString value)
The name for an association.
optional string name = 3373707;value - The bytes for name to set.public boolean hasSecurityPolicyId()
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;hasSecurityPolicyId in interface SecurityPolicyAssociationOrBuilderpublic String getSecurityPolicyId()
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;getSecurityPolicyId in interface SecurityPolicyAssociationOrBuilderpublic com.google.protobuf.ByteString getSecurityPolicyIdBytes()
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;getSecurityPolicyIdBytes in interface SecurityPolicyAssociationOrBuilderpublic SecurityPolicyAssociation.Builder setSecurityPolicyId(String value)
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;value - The securityPolicyId to set.public SecurityPolicyAssociation.Builder clearSecurityPolicyId()
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;public SecurityPolicyAssociation.Builder setSecurityPolicyIdBytes(com.google.protobuf.ByteString value)
[Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;value - The bytes for securityPolicyId to set.public boolean hasShortName()
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;hasShortName in interface SecurityPolicyAssociationOrBuilderpublic String getShortName()
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;getShortName in interface SecurityPolicyAssociationOrBuilderpublic com.google.protobuf.ByteString getShortNameBytes()
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;getShortNameBytes in interface SecurityPolicyAssociationOrBuilderpublic SecurityPolicyAssociation.Builder setShortName(String value)
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;value - The shortName to set.public SecurityPolicyAssociation.Builder clearShortName()
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;public SecurityPolicyAssociation.Builder setShortNameBytes(com.google.protobuf.ByteString value)
[Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;value - The bytes for shortName to set.public final SecurityPolicyAssociation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>public final SecurityPolicyAssociation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecurityPolicyAssociation.Builder>Copyright © 2025 Google LLC. All rights reserved.