Class ViolationInfo (2.24.0)

public final class ViolationInfo extends GeneratedMessageV3 implements ViolationInfoOrBuilder

Provides information about the Policy violation info for this request.

Protobuf type google.cloud.audit.ViolationInfo

Static Fields

CHECKED_VALUE_FIELD_NUMBER

public static final int CHECKED_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

CONSTRAINT_FIELD_NUMBER

public static final int CONSTRAINT_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

POLICY_TYPE_FIELD_NUMBER

public static final int POLICY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ViolationInfo getDefaultInstance()
Returns
TypeDescription
ViolationInfo

getDescriptor()

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

newBuilder()

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

newBuilder(ViolationInfo prototype)

public static ViolationInfo.Builder newBuilder(ViolationInfo prototype)
Parameter
NameDescription
prototypeViolationInfo
Returns
TypeDescription
ViolationInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCheckedValue()

public String getCheckedValue()

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The checkedValue.

getCheckedValueBytes()

public ByteString getCheckedValueBytes()

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for checkedValue.

getConstraint()

public String getConstraint()

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The constraint.

getConstraintBytes()

public ByteString getConstraintBytes()

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for constraint.

getDefaultInstanceForType()

public ViolationInfo getDefaultInstanceForType()
Returns
TypeDescription
ViolationInfo

getErrorMessage()

public String getErrorMessage()

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for errorMessage.

getParserForType()

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

getPolicyType()

public ViolationInfo.PolicyType getPolicyType()

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ViolationInfo.PolicyType

The policyType.

getPolicyTypeValue()

public int getPolicyTypeValue()

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for policyType.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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