Class SecurityPosture.PolicyDriftDetails (2.45.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
TypeDescription
int

EXPECTED_VALUE_FIELD_NUMBER

public static final int EXPECTED_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

FIELD_FIELD_NUMBER

public static final int FIELD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPosture.PolicyDriftDetails getDefaultInstance()
Returns
TypeDescription
SecurityPosture.PolicyDriftDetails

getDescriptor()

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

newBuilder()

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

newBuilder(SecurityPosture.PolicyDriftDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecurityPosture.PolicyDriftDetails getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for field.

getParserForType()

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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