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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyAssociation.Builder>
    • getDefaultInstanceForType

      public SecurityPolicyAssociation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SecurityPolicyAssociation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SecurityPolicyAssociation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SecurityPolicyAssociation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyAssociation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasAttachmentId in interface SecurityPolicyAssociationOrBuilder
      Returns:
      Whether the attachmentId field is set.
    • getAttachmentId

      public String getAttachmentId()
       The resource that the security policy is attached to.
       
      optional string attachment_id = 103768503;
      Specified by:
      getAttachmentId in interface SecurityPolicyAssociationOrBuilder
      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:
      getAttachmentIdBytes in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The bytes for attachmentId.
    • setAttachmentId

      public SecurityPolicyAssociation.Builder setAttachmentId(String value)
       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

      public SecurityPolicyAssociation.Builder clearAttachmentId()
       The resource that the security policy is attached to.
       
      optional string attachment_id = 103768503;
      Returns:
      This builder for chaining.
    • setAttachmentIdBytes

      public SecurityPolicyAssociation.Builder setAttachmentIdBytes(com.google.protobuf.ByteString value)
       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:
      hasDisplayName in interface SecurityPolicyAssociationOrBuilder
      Returns:
      Whether the displayName field is set.
    • getDisplayName

      public String getDisplayName()
       Output only. [Output Only] The display name of the security policy of the association.
       
      optional string display_name = 4473832;
      Specified by:
      getDisplayName in interface SecurityPolicyAssociationOrBuilder
      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:
      getDisplayNameBytes in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public SecurityPolicyAssociation.Builder setDisplayName(String value)
       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

      public SecurityPolicyAssociation.Builder 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

      public SecurityPolicyAssociation.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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:
      getExcludedFoldersList in interface SecurityPolicyAssociationOrBuilder
      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:
      getExcludedFoldersCount in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The count of excludedFolders.
    • getExcludedFolders

      public String getExcludedFolders(int index)
       A list of folders to exclude from the security policy.
       
      repeated string excluded_folders = 310611024;
      Specified by:
      getExcludedFolders in interface SecurityPolicyAssociationOrBuilder
      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:
      getExcludedFoldersBytes in interface SecurityPolicyAssociationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedFolders at the given index.
    • setExcludedFolders

      public SecurityPolicyAssociation.Builder setExcludedFolders(int index, String value)
       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

      public SecurityPolicyAssociation.Builder addExcludedFolders(String value)
       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

      public SecurityPolicyAssociation.Builder addAllExcludedFolders(Iterable<String> values)
       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

      public SecurityPolicyAssociation.Builder 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:
      getExcludedProjectsList in interface SecurityPolicyAssociationOrBuilder
      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:
      getExcludedProjectsCount in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The count of excludedProjects.
    • getExcludedProjects

      public String getExcludedProjects(int index)
       A list of projects to exclude from the security policy.
       
      repeated string excluded_projects = 283070287;
      Specified by:
      getExcludedProjects in interface SecurityPolicyAssociationOrBuilder
      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:
      getExcludedProjectsBytes in interface SecurityPolicyAssociationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedProjects at the given index.
    • setExcludedProjects

      public SecurityPolicyAssociation.Builder setExcludedProjects(int index, String value)
       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

      public SecurityPolicyAssociation.Builder addExcludedProjects(String value)
       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

      public SecurityPolicyAssociation.Builder addAllExcludedProjects(Iterable<String> values)
       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

      public SecurityPolicyAssociation.Builder 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:
      hasName in interface SecurityPolicyAssociationOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name for an association.
       
      optional string name = 3373707;
      Specified by:
      getName in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name for an association.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SecurityPolicyAssociation.Builder setName(String value)
       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

      public SecurityPolicyAssociation.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasSecurityPolicyId in interface SecurityPolicyAssociationOrBuilder
      Returns:
      Whether the securityPolicyId field is set.
    • getSecurityPolicyId

      public String getSecurityPolicyId()
       Output only. [Output Only] The security policy ID of the association.
       
      optional string security_policy_id = 203671817;
      Specified by:
      getSecurityPolicyId in interface SecurityPolicyAssociationOrBuilder
      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:
      getSecurityPolicyIdBytes in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The bytes for securityPolicyId.
    • setSecurityPolicyId

      public SecurityPolicyAssociation.Builder setSecurityPolicyId(String value)
       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

      public SecurityPolicyAssociation.Builder 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:
      hasShortName in interface SecurityPolicyAssociationOrBuilder
      Returns:
      Whether the shortName field is set.
    • getShortName

      public String getShortName()
       Output only. [Output Only] The short name of the security policy of the association.
       
      optional string short_name = 492051566;
      Specified by:
      getShortName in interface SecurityPolicyAssociationOrBuilder
      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:
      getShortNameBytes in interface SecurityPolicyAssociationOrBuilder
      Returns:
      The bytes for shortName.
    • setShortName

      public SecurityPolicyAssociation.Builder setShortName(String value)
       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

      public SecurityPolicyAssociation.Builder 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

      public SecurityPolicyAssociation.Builder setShortNameBytes(com.google.protobuf.ByteString value)
       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.