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.v2.SecurityPosture
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CHANGED_POLICY_FIELD_NUMBER
public static final int CHANGED_POLICY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POLICY_DRIFT_DETAILS_FIELD_NUMBER
public static final int POLICY_DRIFT_DETAILS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POLICY_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POLICY_SET_FIELD_NUMBER
public static final int POLICY_SET_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POSTURE_DEPLOYMENT_FIELD_NUMBER
public static final int POSTURE_DEPLOYMENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER
public static final int POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static SecurityPosture getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SecurityPosture.Builder newBuilder()
newBuilder(SecurityPosture prototype)
public static SecurityPosture.Builder newBuilder(SecurityPosture prototype)
parseDelimitedFrom(InputStream input)
public static SecurityPosture parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SecurityPosture parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SecurityPosture parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static SecurityPosture parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static SecurityPosture parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SecurityPosture parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SecurityPosture parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SecurityPosture> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getChangedPolicy()
public String getChangedPolicy()
The name of the updated policy, for example,
projects/{project_id}/policies/{constraint_name}
.
string changed_policy = 5;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for changedPolicy.
|
getDefaultInstanceForType()
public SecurityPosture getDefaultInstanceForType()
getName()
Name of the posture, for example, CIS-Posture
.
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the posture, for example, CIS-Posture
.
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<SecurityPosture> getParserForType()
Overrides
getPolicy()
public String getPolicy()
The ID of the updated policy, for example, compute-policy-1
.
string policy = 7;
Returns |
---|
Type | Description |
String | The policy.
|
getPolicyBytes()
public ByteString getPolicyBytes()
The ID of the updated policy, for example, compute-policy-1
.
string policy = 7;
Returns |
---|
Type | Description |
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.v2.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;
Parameter |
---|
Name | Description |
index | int
|
getPolicyDriftDetailsCount()
public int getPolicyDriftDetailsCount()
The details about a change in an updated policy that violates the deployed
posture.
repeated .google.cloud.securitycenter.v2.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;
Returns |
---|
Type | Description |
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.v2.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;
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.v2.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;
Parameter |
---|
Name | Description |
index | int
|
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.v2.SecurityPosture.PolicyDriftDetails policy_drift_details = 8;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.securitycenter.v2.SecurityPosture.PolicyDriftDetailsOrBuilder> | |
getPolicySet()
public String getPolicySet()
The name of the updated policy set, for example, cis-policyset
.
string policy_set = 6;
Returns |
---|
Type | Description |
String | The policySet.
|
getPolicySetBytes()
public ByteString getPolicySetBytes()
The name of the updated policy set, for example, cis-policyset
.
string policy_set = 6;
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for postureDeploymentResource.
|
getRevisionId()
public String getRevisionId()
The version of the posture, for example, c7cfa2a8
.
string revision_id = 2;
Returns |
---|
Type | Description |
String | The revisionId.
|
getRevisionIdBytes()
public ByteString getRevisionIdBytes()
The version of the posture, for example, c7cfa2a8
.
string revision_id = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for revisionId.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SecurityPosture.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SecurityPosture.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SecurityPosture.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides