Class SecurityPolicyAssociation (1.88.0)

public final class SecurityPolicyAssociation extends GeneratedMessageV3 implements SecurityPolicyAssociationOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyAssociation

Static Fields

ATTACHMENT_ID_FIELD_NUMBER

public static final int ATTACHMENT_ID_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_FOLDERS_FIELD_NUMBER

public static final int EXCLUDED_FOLDERS_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDED_PROJECTS_FIELD_NUMBER

public static final int EXCLUDED_PROJECTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_POLICY_ID_FIELD_NUMBER

public static final int SECURITY_POLICY_ID_FIELD_NUMBER
Field Value
Type Description
int

SHORT_NAME_FIELD_NUMBER

public static final int SHORT_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SecurityPolicyAssociation getDefaultInstance()
Returns
Type Description
SecurityPolicyAssociation

getDescriptor()

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

newBuilder()

public static SecurityPolicyAssociation.Builder newBuilder()
Returns
Type Description
SecurityPolicyAssociation.Builder

newBuilder(SecurityPolicyAssociation prototype)

public static SecurityPolicyAssociation.Builder newBuilder(SecurityPolicyAssociation prototype)
Parameter
Name Description
prototype SecurityPolicyAssociation
Returns
Type Description
SecurityPolicyAssociation.Builder

parseDelimitedFrom(InputStream input)

public static SecurityPolicyAssociation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SecurityPolicyAssociation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecurityPolicyAssociation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecurityPolicyAssociation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SecurityPolicyAssociation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SecurityPolicyAssociation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyAssociation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyAssociation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SecurityPolicyAssociation> parser()
Returns
Type Description
Parser<SecurityPolicyAssociation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<SecurityPolicyAssociation> getParserForType()
Returns
Type Description
Parser<SecurityPolicyAssociation>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SecurityPolicyAssociation.Builder newBuilderForType()
Returns
Type Description
SecurityPolicyAssociation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecurityPolicyAssociation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SecurityPolicyAssociation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SecurityPolicyAssociation.Builder toBuilder()
Returns
Type Description
SecurityPolicyAssociation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException