Class OrgPolicyViolationInfo (2.14.3)

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
TypeDescription
int

RESOURCE_TAGS_FIELD_NUMBER

public static final int RESOURCE_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_TYPE_FIELD_NUMBER

public static final int RESOURCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VIOLATION_INFO_FIELD_NUMBER

public static final int VIOLATION_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OrgPolicyViolationInfo getDefaultInstance()
Returns
TypeDescription
OrgPolicyViolationInfo

getDescriptor()

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

newBuilder()

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

newBuilder(OrgPolicyViolationInfo prototype)

public static OrgPolicyViolationInfo.Builder newBuilder(OrgPolicyViolationInfo prototype)
Parameter
NameDescription
prototypeOrgPolicyViolationInfo
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<OrgPolicyViolationInfo> parser()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getDefaultInstanceForType()

public OrgPolicyViolationInfo getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicyViolationInfo

getParserForType()

public Parser<OrgPolicyViolationInfo> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
StructOrBuilder

getResourceTags()

public Map<String,String> getResourceTags()

Use #getResourceTagsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resourceType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
NameDescription
indexint
Returns
TypeDescription
ViolationInfo

getViolationInfoCount()

public int getViolationInfoCount()

Optional. Policy violations

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

Returns
TypeDescription
int

getViolationInfoList()

public List<ViolationInfo> getViolationInfoList()

Optional. Policy violations

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ViolationInfoOrBuilder

getViolationInfoOrBuilderList()

public List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()

Optional. Policy violations

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the payload field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OrgPolicyViolationInfo.Builder newBuilderForType()
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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