public final class SecurityPosture extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityPosture.Builder
Represents a posture that is deployed on Google Cloud by the
Security Command Center Posture Management service.
|
static class |
SecurityPosture.PolicyDriftDetails
The policy field that violates the deployed posture and its expected and
detected values.
|
static interface |
SecurityPosture.PolicyDriftDetailsOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHANGED_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
POLICY_DRIFT_DETAILS_FIELD_NUMBER |
static int |
POLICY_FIELD_NUMBER |
static int |
POLICY_SET_FIELD_NUMBER |
static int |
POSTURE_DEPLOYMENT_FIELD_NUMBER |
static int |
POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER |
static int |
REVISION_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getChangedPolicy()
The name of the updated policy, for example,
`projects/{project_id}/policies/{constraint_name}`.
|
com.google.protobuf.ByteString |
getChangedPolicyBytes()
The name of the updated policy, for example,
`projects/{project_id}/policies/{constraint_name}`.
|
static SecurityPosture |
getDefaultInstance() |
SecurityPosture |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Name of the posture, for example, `CIS-Posture`.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the posture, for example, `CIS-Posture`.
|
com.google.protobuf.Parser<SecurityPosture> |
getParserForType() |
String |
getPolicy()
The ID of the updated policy, for example, `compute-policy-1`.
|
com.google.protobuf.ByteString |
getPolicyBytes()
The ID of the updated policy, for example, `compute-policy-1`.
|
SecurityPosture.PolicyDriftDetails |
getPolicyDriftDetails(int index)
The details about a change in an updated policy that violates the deployed
posture.
|
int |
getPolicyDriftDetailsCount()
The details about a change in an updated policy that violates the deployed
posture.
|
List<SecurityPosture.PolicyDriftDetails> |
getPolicyDriftDetailsList()
The details about a change in an updated policy that violates the deployed
posture.
|
SecurityPosture.PolicyDriftDetailsOrBuilder |
getPolicyDriftDetailsOrBuilder(int index)
The details about a change in an updated policy that violates the deployed
posture.
|
List<? extends SecurityPosture.PolicyDriftDetailsOrBuilder> |
getPolicyDriftDetailsOrBuilderList()
The details about a change in an updated policy that violates the deployed
posture.
|
String |
getPolicySet()
The name of the updated policyset, for example, `cis-policyset`.
|
com.google.protobuf.ByteString |
getPolicySetBytes()
The name of the updated policyset, for example, `cis-policyset`.
|
String |
getPostureDeployment()
The name of the posture deployment, for example,
`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
|
com.google.protobuf.ByteString |
getPostureDeploymentBytes()
The name of the posture deployment, for example,
`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
|
String |
getPostureDeploymentResource()
The project, folder, or organization on which the posture is deployed,
for example, `projects/{project_number}`.
|
com.google.protobuf.ByteString |
getPostureDeploymentResourceBytes()
The project, folder, or organization on which the posture is deployed,
for example, `projects/{project_number}`.
|
String |
getRevisionId()
The version of the posture, for example, `c7cfa2a8`.
|
com.google.protobuf.ByteString |
getRevisionIdBytes()
The version of the posture, for example, `c7cfa2a8`.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SecurityPosture.Builder |
newBuilder() |
static SecurityPosture.Builder |
newBuilder(SecurityPosture prototype) |
SecurityPosture.Builder |
newBuilderForType() |
protected SecurityPosture.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SecurityPosture |
parseDelimitedFrom(InputStream input) |
static SecurityPosture |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityPosture |
parseFrom(byte[] data) |
static SecurityPosture |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityPosture |
parseFrom(ByteBuffer data) |
static SecurityPosture |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityPosture |
parseFrom(com.google.protobuf.ByteString data) |
static SecurityPosture |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityPosture |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SecurityPosture |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityPosture |
parseFrom(InputStream input) |
static SecurityPosture |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SecurityPosture> |
parser() |
SecurityPosture.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER
public static final int POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER
public static final int POSTURE_DEPLOYMENT_FIELD_NUMBER
public static final int CHANGED_POLICY_FIELD_NUMBER
public static final int POLICY_SET_FIELD_NUMBER
public static final int POLICY_FIELD_NUMBER
public static final int POLICY_DRIFT_DETAILS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Name of the posture, for example, `CIS-Posture`.
string name = 1;getName in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the posture, for example, `CIS-Posture`.
string name = 1;getNameBytes in interface SecurityPostureOrBuilderpublic String getRevisionId()
The version of the posture, for example, `c7cfa2a8`.
string revision_id = 2;getRevisionId in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getRevisionIdBytes()
The version of the posture, for example, `c7cfa2a8`.
string revision_id = 2;getRevisionIdBytes in interface SecurityPostureOrBuilderpublic String getPostureDeploymentResource()
The project, folder, or organization on which the posture is deployed,
for example, `projects/{project_number}`.
string posture_deployment_resource = 3;getPostureDeploymentResource in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getPostureDeploymentResourceBytes()
The project, folder, or organization on which the posture is deployed,
for example, `projects/{project_number}`.
string posture_deployment_resource = 3;getPostureDeploymentResourceBytes in interface SecurityPostureOrBuilderpublic String getPostureDeployment()
The name of the posture deployment, for example,
`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
string posture_deployment = 4;getPostureDeployment in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getPostureDeploymentBytes()
The name of the posture deployment, for example,
`organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
string posture_deployment = 4;getPostureDeploymentBytes in interface SecurityPostureOrBuilderpublic String getChangedPolicy()
The name of the updated policy, for example,
`projects/{project_id}/policies/{constraint_name}`.
string changed_policy = 5;getChangedPolicy in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getChangedPolicyBytes()
The name of the updated policy, for example,
`projects/{project_id}/policies/{constraint_name}`.
string changed_policy = 5;getChangedPolicyBytes in interface SecurityPostureOrBuilderpublic String getPolicySet()
The name of the updated policyset, for example, `cis-policyset`.
string policy_set = 6;getPolicySet in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getPolicySetBytes()
The name of the updated policyset, for example, `cis-policyset`.
string policy_set = 6;getPolicySetBytes in interface SecurityPostureOrBuilderpublic String getPolicy()
The ID of the updated policy, for example, `compute-policy-1`.
string policy = 7;getPolicy in interface SecurityPostureOrBuilderpublic com.google.protobuf.ByteString getPolicyBytes()
The ID of the updated policy, for example, `compute-policy-1`.
string policy = 7;getPolicyBytes in interface SecurityPostureOrBuilderpublic 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;
getPolicyDriftDetailsList in interface SecurityPostureOrBuilderpublic 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;
getPolicyDriftDetailsOrBuilderList in interface SecurityPostureOrBuilderpublic 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;
getPolicyDriftDetailsCount in interface SecurityPostureOrBuilderpublic 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;
getPolicyDriftDetails in interface SecurityPostureOrBuilderpublic 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;
getPolicyDriftDetailsOrBuilder in interface SecurityPostureOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SecurityPosture parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityPosture parseFrom(InputStream input) throws IOException
IOExceptionpublic static SecurityPosture parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecurityPosture parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SecurityPosture parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecurityPosture parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SecurityPosture parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SecurityPosture.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SecurityPosture.Builder newBuilder()
public static SecurityPosture.Builder newBuilder(SecurityPosture prototype)
public SecurityPosture.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SecurityPosture.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SecurityPosture getDefaultInstance()
public static com.google.protobuf.Parser<SecurityPosture> parser()
public com.google.protobuf.Parser<SecurityPosture> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SecurityPosture getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.