Class SecurityPolicyAssociation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.SecurityPolicyAssociation
All Implemented Interfaces:
SecurityPolicyAssociationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SecurityPolicyAssociation extends com.google.protobuf.GeneratedMessage implements SecurityPolicyAssociationOrBuilder
 
Protobuf type google.cloud.compute.v1.SecurityPolicyAssociation
See Also:
  • Field Details

    • ATTACHMENT_ID_FIELD_NUMBER

      public static final int ATTACHMENT_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • EXCLUDED_FOLDERS_FIELD_NUMBER

      public static final int EXCLUDED_FOLDERS_FIELD_NUMBER
      See Also:
    • EXCLUDED_PROJECTS_FIELD_NUMBER

      public static final int EXCLUDED_PROJECTS_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • SECURITY_POLICY_ID_FIELD_NUMBER

      public static final int SECURITY_POLICY_ID_FIELD_NUMBER
      See Also:
    • SHORT_NAME_FIELD_NUMBER

      public static final int SHORT_NAME_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyAssociation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyAssociation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyAssociation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static SecurityPolicyAssociation.Builder newBuilder()
    • newBuilder

      public static SecurityPolicyAssociation.Builder newBuilder(SecurityPolicyAssociation prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SecurityPolicyAssociation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SecurityPolicyAssociation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SecurityPolicyAssociation> parser()
    • getParserForType

      public com.google.protobuf.Parser<SecurityPolicyAssociation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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