Class SecurityPosture (2.49.0)

public final class SecurityPosture extends GeneratedMessageV3 implements SecurityPostureOrBuilder

Represents a posture that is deployed on Google Cloud by the Security Command Center Posture Management service. A posture contains one or more policy sets. A policy set is a group of policies that enforce a set of security rules on Google Cloud.

Protobuf type google.cloud.securitycenter.v1.SecurityPosture

Static Fields

CHANGED_POLICY_FIELD_NUMBER

public static final int CHANGED_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_DRIFT_DETAILS_FIELD_NUMBER

public static final int POLICY_DRIFT_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_FIELD_NUMBER

public static final int POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_SET_FIELD_NUMBER

public static final int POLICY_SET_FIELD_NUMBER
Field Value
TypeDescription
int

POSTURE_DEPLOYMENT_FIELD_NUMBER

public static final int POSTURE_DEPLOYMENT_FIELD_NUMBER
Field Value
TypeDescription
int

POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER

public static final int POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

REVISION_ID_FIELD_NUMBER

public static final int REVISION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPosture getDefaultInstance()
Returns
TypeDescription
SecurityPosture

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SecurityPosture.Builder newBuilder()
Returns
TypeDescription
SecurityPosture.Builder

newBuilder(SecurityPosture prototype)

public static SecurityPosture.Builder newBuilder(SecurityPosture prototype)
Parameter
NameDescription
prototypeSecurityPosture
Returns
TypeDescription
SecurityPosture.Builder

parseDelimitedFrom(InputStream input)

public static SecurityPosture parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SecurityPosture parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecurityPosture parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecurityPosture parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SecurityPosture parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SecurityPosture parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecurityPosture parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPosture
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SecurityPosture> parser()
Returns
TypeDescription
Parser<SecurityPosture>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getChangedPolicy()

public String getChangedPolicy()

The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}.

string changed_policy = 5;

Returns
TypeDescription
String

The changedPolicy.

getChangedPolicyBytes()

public ByteString getChangedPolicyBytes()

The name of the updated policy, for example, projects/{project_id}/policies/{constraint_name}.

string changed_policy = 5;

Returns
TypeDescription
ByteString

The bytes for changedPolicy.

getDefaultInstanceForType()

public SecurityPosture getDefaultInstanceForType()
Returns
TypeDescription
SecurityPosture

getName()

public String getName()

Name of the posture, for example, CIS-Posture.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the posture, for example, CIS-Posture.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<SecurityPosture> getParserForType()
Returns
TypeDescription
Parser<SecurityPosture>
Overrides

getPolicy()

public String getPolicy()

The ID of the updated policy, for example, compute-policy-1.

string policy = 7;

Returns
TypeDescription
String

The policy.

getPolicyBytes()

public ByteString getPolicyBytes()

The ID of the updated policy, for example, compute-policy-1.

string policy = 7;

Returns
TypeDescription
ByteString

The bytes for policy.

getPolicyDriftDetails(int index)

public SecurityPosture.PolicyDriftDetails getPolicyDriftDetails(int index)

The details about a change in an updated policy that violates the deployed posture.

repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
SecurityPosture.PolicyDriftDetails

getPolicyDriftDetailsCount()

public int getPolicyDriftDetailsCount()

The details about a change in an updated policy that violates the deployed posture.

repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;

Returns
TypeDescription
int

getPolicyDriftDetailsList()

public List<SecurityPosture.PolicyDriftDetails> getPolicyDriftDetailsList()

The details about a change in an updated policy that violates the deployed posture.

repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;

Returns
TypeDescription
List<PolicyDriftDetails>

getPolicyDriftDetailsOrBuilder(int index)

public SecurityPosture.PolicyDriftDetailsOrBuilder getPolicyDriftDetailsOrBuilder(int index)

The details about a change in an updated policy that violates the deployed posture.

repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
SecurityPosture.PolicyDriftDetailsOrBuilder

getPolicyDriftDetailsOrBuilderList()

public List<? extends SecurityPosture.PolicyDriftDetailsOrBuilder> getPolicyDriftDetailsOrBuilderList()

The details about a change in an updated policy that violates the deployed posture.

repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder>

getPolicySet()

public String getPolicySet()

The name of the updated policyset, for example, cis-policyset.

string policy_set = 6;

Returns
TypeDescription
String

The policySet.

getPolicySetBytes()

public ByteString getPolicySetBytes()

The name of the updated policyset, for example, cis-policyset.

string policy_set = 6;

Returns
TypeDescription
ByteString

The bytes for policySet.

getPostureDeployment()

public String getPostureDeployment()

The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}.

string posture_deployment = 4;

Returns
TypeDescription
String

The postureDeployment.

getPostureDeploymentBytes()

public ByteString getPostureDeploymentBytes()

The name of the posture deployment, for example, organizations/{org_id}/posturedeployments/{posture_deployment_id}.

string posture_deployment = 4;

Returns
TypeDescription
ByteString

The bytes for postureDeployment.

getPostureDeploymentResource()

public String getPostureDeploymentResource()

The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}.

string posture_deployment_resource = 3;

Returns
TypeDescription
String

The postureDeploymentResource.

getPostureDeploymentResourceBytes()

public ByteString getPostureDeploymentResourceBytes()

The project, folder, or organization on which the posture is deployed, for example, projects/{project_number}.

string posture_deployment_resource = 3;

Returns
TypeDescription
ByteString

The bytes for postureDeploymentResource.

getRevisionId()

public String getRevisionId()

The version of the posture, for example, c7cfa2a8.

string revision_id = 2;

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

The version of the posture, for example, c7cfa2a8.

string revision_id = 2;

Returns
TypeDescription
ByteString

The bytes for revisionId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SecurityPosture.Builder newBuilderForType()
Returns
TypeDescription
SecurityPosture.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecurityPosture.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SecurityPosture.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SecurityPosture.Builder toBuilder()
Returns
TypeDescription
SecurityPosture.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException