Package com.google.cloud.compute.v1
Class SecurityPolicyAssociation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
com.google.cloud.compute.v1.SecurityPolicyAssociation.Builder
- All Implemented Interfaces:
SecurityPolicyAssociationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecurityPolicyAssociation
public static final class SecurityPolicyAssociation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
implements SecurityPolicyAssociationOrBuilder
Protobuf type
google.cloud.compute.v1.SecurityPolicyAssociation-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcludedFolders(Iterable<String> values) A list of folders to exclude from the security policy.addAllExcludedProjects(Iterable<String> values) A list of projects to exclude from the security policy.addExcludedFolders(String value) A list of folders to exclude from the security policy.addExcludedFoldersBytes(com.google.protobuf.ByteString value) A list of folders to exclude from the security policy.addExcludedProjects(String value) A list of projects to exclude from the security policy.addExcludedProjectsBytes(com.google.protobuf.ByteString value) A list of projects to exclude from the security policy.build()clear()The resource that the security policy is attached to.Output only.A list of folders to exclude from the security policy.A list of projects to exclude from the security policy.The name for an association.Output only.Output only.The resource that the security policy is attached to.com.google.protobuf.ByteStringThe resource that the security policy is attached to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getExcludedFolders(int index) A list of folders to exclude from the security policy.com.google.protobuf.ByteStringgetExcludedFoldersBytes(int index) A list of folders to exclude from the security policy.intA list of folders to exclude from the security policy.com.google.protobuf.ProtocolStringListA list of folders to exclude from the security policy.getExcludedProjects(int index) A list of projects to exclude from the security policy.com.google.protobuf.ByteStringgetExcludedProjectsBytes(int index) A list of projects to exclude from the security policy.intA list of projects to exclude from the security policy.com.google.protobuf.ProtocolStringListA list of projects to exclude from the security policy.getName()The name for an association.com.google.protobuf.ByteStringThe name for an association.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanThe resource that the security policy is attached to.booleanOutput only.booleanhasName()The name for an association.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAttachmentId(String value) The resource that the security policy is attached to.setAttachmentIdBytes(com.google.protobuf.ByteString value) The resource that the security policy is attached to.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.setExcludedFolders(int index, String value) A list of folders to exclude from the security policy.setExcludedProjects(int index, String value) A list of projects to exclude from the security policy.The name for an association.setNameBytes(com.google.protobuf.ByteString value) The name for an association.setSecurityPolicyId(String value) Output only.setSecurityPolicyIdBytes(com.google.protobuf.ByteString value) Output only.setShortName(String value) Output only.setShortNameBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyAssociation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
-
mergeFrom
public SecurityPolicyAssociation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyAssociation.Builder>- Throws:
IOException
-
hasAttachmentId
public boolean hasAttachmentId()The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Specified by:
hasAttachmentIdin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- Whether the attachmentId field is set.
-
getAttachmentId
The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Specified by:
getAttachmentIdin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The attachmentId.
-
getAttachmentIdBytes
public com.google.protobuf.ByteString getAttachmentIdBytes()The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Specified by:
getAttachmentIdBytesin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The bytes for attachmentId.
-
setAttachmentId
The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Parameters:
value- The attachmentId to set.- Returns:
- This builder for chaining.
-
clearAttachmentId
The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Returns:
- This builder for chaining.
-
setAttachmentIdBytes
The resource that the security policy is attached to.
optional string attachment_id = 103768503;- Parameters:
value- The bytes for attachmentId to set.- Returns:
- This builder for chaining.
-
hasDisplayName
public boolean hasDisplayName()Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Specified by:
hasDisplayNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- Whether the displayName field is set.
-
getDisplayName
Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Specified by:
getDisplayNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Specified by:
getDisplayNameBytesin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Output only. [Output Only] The display name of the security policy of the association.
optional string display_name = 4473832;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getExcludedFoldersList
public com.google.protobuf.ProtocolStringList getExcludedFoldersList()A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Specified by:
getExcludedFoldersListin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- A list containing the excludedFolders.
-
getExcludedFoldersCount
public int getExcludedFoldersCount()A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Specified by:
getExcludedFoldersCountin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The count of excludedFolders.
-
getExcludedFolders
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Specified by:
getExcludedFoldersin interfaceSecurityPolicyAssociationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludedFolders at the given index.
-
getExcludedFoldersBytes
public com.google.protobuf.ByteString getExcludedFoldersBytes(int index) A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Specified by:
getExcludedFoldersBytesin interfaceSecurityPolicyAssociationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludedFolders at the given index.
-
setExcludedFolders
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Parameters:
index- The index to set the value at.value- The excludedFolders to set.- Returns:
- This builder for chaining.
-
addExcludedFolders
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Parameters:
value- The excludedFolders to add.- Returns:
- This builder for chaining.
-
addAllExcludedFolders
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Parameters:
values- The excludedFolders to add.- Returns:
- This builder for chaining.
-
clearExcludedFolders
A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Returns:
- This builder for chaining.
-
addExcludedFoldersBytes
public SecurityPolicyAssociation.Builder addExcludedFoldersBytes(com.google.protobuf.ByteString value) A list of folders to exclude from the security policy.
repeated string excluded_folders = 310611024;- Parameters:
value- The bytes of the excludedFolders to add.- Returns:
- This builder for chaining.
-
getExcludedProjectsList
public com.google.protobuf.ProtocolStringList getExcludedProjectsList()A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Specified by:
getExcludedProjectsListin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- A list containing the excludedProjects.
-
getExcludedProjectsCount
public int getExcludedProjectsCount()A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Specified by:
getExcludedProjectsCountin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The count of excludedProjects.
-
getExcludedProjects
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Specified by:
getExcludedProjectsin interfaceSecurityPolicyAssociationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludedProjects at the given index.
-
getExcludedProjectsBytes
public com.google.protobuf.ByteString getExcludedProjectsBytes(int index) A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Specified by:
getExcludedProjectsBytesin interfaceSecurityPolicyAssociationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludedProjects at the given index.
-
setExcludedProjects
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Parameters:
index- The index to set the value at.value- The excludedProjects to set.- Returns:
- This builder for chaining.
-
addExcludedProjects
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Parameters:
value- The excludedProjects to add.- Returns:
- This builder for chaining.
-
addAllExcludedProjects
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Parameters:
values- The excludedProjects to add.- Returns:
- This builder for chaining.
-
clearExcludedProjects
A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Returns:
- This builder for chaining.
-
addExcludedProjectsBytes
public SecurityPolicyAssociation.Builder addExcludedProjectsBytes(com.google.protobuf.ByteString value) A list of projects to exclude from the security policy.
repeated string excluded_projects = 283070287;- Parameters:
value- The bytes of the excludedProjects to add.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()The name for an association.
optional string name = 3373707;- Specified by:
hasNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name for an association.
optional string name = 3373707;- Specified by:
getNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name for an association.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The bytes for name.
-
setName
The name for an association.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name for an association.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
The name for an association.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSecurityPolicyId
public boolean hasSecurityPolicyId()Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Specified by:
hasSecurityPolicyIdin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- Whether the securityPolicyId field is set.
-
getSecurityPolicyId
Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Specified by:
getSecurityPolicyIdin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The securityPolicyId.
-
getSecurityPolicyIdBytes
public com.google.protobuf.ByteString getSecurityPolicyIdBytes()Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Specified by:
getSecurityPolicyIdBytesin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The bytes for securityPolicyId.
-
setSecurityPolicyId
Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Parameters:
value- The securityPolicyId to set.- Returns:
- This builder for chaining.
-
clearSecurityPolicyId
Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Returns:
- This builder for chaining.
-
setSecurityPolicyIdBytes
public SecurityPolicyAssociation.Builder setSecurityPolicyIdBytes(com.google.protobuf.ByteString value) Output only. [Output Only] The security policy ID of the association.
optional string security_policy_id = 203671817;- Parameters:
value- The bytes for securityPolicyId to set.- Returns:
- This builder for chaining.
-
hasShortName
public boolean hasShortName()Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Specified by:
hasShortNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- Whether the shortName field is set.
-
getShortName
Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Specified by:
getShortNamein interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The shortName.
-
getShortNameBytes
public com.google.protobuf.ByteString getShortNameBytes()Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Specified by:
getShortNameBytesin interfaceSecurityPolicyAssociationOrBuilder- Returns:
- The bytes for shortName.
-
setShortName
Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Parameters:
value- The shortName to set.- Returns:
- This builder for chaining.
-
clearShortName
Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Returns:
- This builder for chaining.
-
setShortNameBytes
Output only. [Output Only] The short name of the security policy of the association.
optional string short_name = 492051566;- Parameters:
value- The bytes for shortName to set.- Returns:
- This builder for chaining.
-