Class SecurityPosture.PolicyDriftDetails (2.51.0)

public static final class SecurityPosture.PolicyDriftDetails extends GeneratedMessageV3 implements SecurityPosture.PolicyDriftDetailsOrBuilder

The policy field that violates the deployed posture and its expected and detected values.

Protobuf type google.cloud.securitycenter.v2.SecurityPosture.PolicyDriftDetails

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SecurityPosture.PolicyDriftDetails

Static Fields

DETECTED_VALUE_FIELD_NUMBER

public static final int DETECTED_VALUE_FIELD_NUMBER
Field Value
Type Description
int

EXPECTED_VALUE_FIELD_NUMBER

public static final int EXPECTED_VALUE_FIELD_NUMBER
Field Value
Type Description
int

FIELD_FIELD_NUMBER

public static final int FIELD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SecurityPosture.PolicyDriftDetails getDefaultInstance()
Returns
Type Description
SecurityPosture.PolicyDriftDetails

getDescriptor()

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

newBuilder()

public static SecurityPosture.PolicyDriftDetails.Builder newBuilder()
Returns
Type Description
SecurityPosture.PolicyDriftDetails.Builder

newBuilder(SecurityPosture.PolicyDriftDetails prototype)

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

parseDelimitedFrom(InputStream input)

public static SecurityPosture.PolicyDriftDetails parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPosture.PolicyDriftDetails
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SecurityPosture.PolicyDriftDetails parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SecurityPosture.PolicyDriftDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SecurityPosture.PolicyDriftDetails parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SecurityPosture.PolicyDriftDetails
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SecurityPosture.PolicyDriftDetails parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPosture.PolicyDriftDetails
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SecurityPosture.PolicyDriftDetails parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SecurityPosture.PolicyDriftDetails
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SecurityPosture.PolicyDriftDetails> parser()
Returns
Type Description
Parser<PolicyDriftDetails>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SecurityPosture.PolicyDriftDetails getDefaultInstanceForType()
Returns
Type Description
SecurityPosture.PolicyDriftDetails

getDetectedValue()

public String getDetectedValue()

The detected value that violates the deployed posture, for example, false or allowed_values={"projects/22831892"}.

string detected_value = 3;

Returns
Type Description
String

The detectedValue.

getDetectedValueBytes()

public ByteString getDetectedValueBytes()

The detected value that violates the deployed posture, for example, false or allowed_values={"projects/22831892"}.

string detected_value = 3;

Returns
Type Description
ByteString

The bytes for detectedValue.

getExpectedValue()

public String getExpectedValue()

The value of this field that was configured in a posture, for example, true or allowed_values={"projects/29831892"}.

string expected_value = 2;

Returns
Type Description
String

The expectedValue.

getExpectedValueBytes()

public ByteString getExpectedValueBytes()

The value of this field that was configured in a posture, for example, true or allowed_values={"projects/29831892"}.

string expected_value = 2;

Returns
Type Description
ByteString

The bytes for expectedValue.

getField()

public String getField()

The name of the updated field, for example constraint.implementation.policy_rules[0].enforce

string field = 1;

Returns
Type Description
String

The field.

getFieldBytes()

public ByteString getFieldBytes()

The name of the updated field, for example constraint.implementation.policy_rules[0].enforce

string field = 1;

Returns
Type Description
ByteString

The bytes for field.

getParserForType()

public Parser<SecurityPosture.PolicyDriftDetails> getParserForType()
Returns
Type Description
Parser<PolicyDriftDetails>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 SecurityPosture.PolicyDriftDetails.Builder newBuilderForType()
Returns
Type Description
SecurityPosture.PolicyDriftDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SecurityPosture.PolicyDriftDetails.Builder toBuilder()
Returns
Type Description
SecurityPosture.PolicyDriftDetails.Builder

writeTo(CodedOutputStream output)

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