Class OrgPolicyViolationInfo (2.42.0)

public final class OrgPolicyViolationInfo extends GeneratedMessageV3 implements OrgPolicyViolationInfoOrBuilder

Represents OrgPolicy Violation information.

Protobuf type google.cloud.audit.OrgPolicyViolationInfo

Static Fields

PAYLOAD_FIELD_NUMBER

public static final int PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TAGS_FIELD_NUMBER

public static final int RESOURCE_TAGS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

VIOLATION_INFO_FIELD_NUMBER

public static final int VIOLATION_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OrgPolicyViolationInfo getDefaultInstance()
Returns
Type Description
OrgPolicyViolationInfo

getDescriptor()

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

newBuilder()

public static OrgPolicyViolationInfo.Builder newBuilder()
Returns
Type Description
OrgPolicyViolationInfo.Builder

newBuilder(OrgPolicyViolationInfo prototype)

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

parseDelimitedFrom(InputStream input)

public static OrgPolicyViolationInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyViolationInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static OrgPolicyViolationInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OrgPolicyViolationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static OrgPolicyViolationInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OrgPolicyViolationInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static OrgPolicyViolationInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OrgPolicyViolationInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static OrgPolicyViolationInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OrgPolicyViolationInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<OrgPolicyViolationInfo> parser()
Returns
Type Description
Parser<OrgPolicyViolationInfo>

Methods

containsResourceTags(String key)

public boolean containsResourceTags(String key)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public OrgPolicyViolationInfo getDefaultInstanceForType()
Returns
Type Description
OrgPolicyViolationInfo

getParserForType()

public Parser<OrgPolicyViolationInfo> getParserForType()
Returns
Type Description
Parser<OrgPolicyViolationInfo>
Overrides

getPayload()

public Struct getPayload()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The payload.

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getResourceTags() (deprecated)

public Map<String,String> getResourceTags()

Use #getResourceTagsMap() instead.

Returns
Type Description
Map<String,String>

getResourceTagsCount()

public int getResourceTagsCount()

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getResourceTagsMap()

public Map<String,String> getResourceTagsMap()

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getResourceTagsOrDefault(String key, String defaultValue)

public String getResourceTagsOrDefault(String key, String defaultValue)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getResourceTagsOrThrow(String key)

public String getResourceTagsOrThrow(String key)

Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests.

Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.

map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getResourceType()

public String getResourceType()

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

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

Returns
Type Description
String

The resourceType.

getResourceTypeBytes()

public ByteString getResourceTypeBytes()

Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket

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

Returns
Type Description
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getViolationInfo(int index)

public ViolationInfo getViolationInfo(int index)

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ViolationInfo

getViolationInfoCount()

public int getViolationInfoCount()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getViolationInfoList()

public List<ViolationInfo> getViolationInfoList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ViolationInfo>

getViolationInfoOrBuilder(int index)

public ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ViolationInfoOrBuilder

getViolationInfoOrBuilderList()

public List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.audit.ViolationInfoOrBuilder>

hasPayload()

public boolean hasPayload()

Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.

.google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the payload field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OrgPolicyViolationInfo.Builder newBuilderForType()
Returns
Type Description
OrgPolicyViolationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public OrgPolicyViolationInfo.Builder toBuilder()
Returns
Type Description
OrgPolicyViolationInfo.Builder

writeTo(CodedOutputStream output)

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