public final class OrgPolicyViolationInfo extends com.google.protobuf.GeneratedMessageV3 implements OrgPolicyViolationInfoOrBuilder
Represents OrgPolicy Violation information.Protobuf type
google.cloud.audit.OrgPolicyViolationInfo| Modifier and Type | Class and Description |
|---|---|
static class |
OrgPolicyViolationInfo.Builder
Represents OrgPolicy Violation information.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
PAYLOAD_FIELD_NUMBER |
static int |
RESOURCE_TAGS_FIELD_NUMBER |
static int |
RESOURCE_TYPE_FIELD_NUMBER |
static int |
VIOLATION_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsResourceTags(String key)
Optional.
|
boolean |
equals(Object obj) |
static OrgPolicyViolationInfo |
getDefaultInstance() |
OrgPolicyViolationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<OrgPolicyViolationInfo> |
getParserForType() |
com.google.protobuf.Struct |
getPayload()
Optional.
|
com.google.protobuf.StructOrBuilder |
getPayloadOrBuilder()
Optional.
|
Map<String,String> |
getResourceTags()
Deprecated.
|
int |
getResourceTagsCount()
Optional.
|
Map<String,String> |
getResourceTagsMap()
Optional.
|
String |
getResourceTagsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getResourceTagsOrThrow(String key)
Optional.
|
String |
getResourceType()
Optional.
|
com.google.protobuf.ByteString |
getResourceTypeBytes()
Optional.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
ViolationInfo |
getViolationInfo(int index)
Optional.
|
int |
getViolationInfoCount()
Optional.
|
List<ViolationInfo> |
getViolationInfoList()
Optional.
|
ViolationInfoOrBuilder |
getViolationInfoOrBuilder(int index)
Optional.
|
List<? extends ViolationInfoOrBuilder> |
getViolationInfoOrBuilderList()
Optional.
|
int |
hashCode() |
boolean |
hasPayload()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static OrgPolicyViolationInfo.Builder |
newBuilder() |
static OrgPolicyViolationInfo.Builder |
newBuilder(OrgPolicyViolationInfo prototype) |
OrgPolicyViolationInfo.Builder |
newBuilderForType() |
protected OrgPolicyViolationInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OrgPolicyViolationInfo |
parseDelimitedFrom(InputStream input) |
static OrgPolicyViolationInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OrgPolicyViolationInfo |
parseFrom(byte[] data) |
static OrgPolicyViolationInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OrgPolicyViolationInfo |
parseFrom(ByteBuffer data) |
static OrgPolicyViolationInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OrgPolicyViolationInfo |
parseFrom(com.google.protobuf.ByteString data) |
static OrgPolicyViolationInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OrgPolicyViolationInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OrgPolicyViolationInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OrgPolicyViolationInfo |
parseFrom(InputStream input) |
static OrgPolicyViolationInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OrgPolicyViolationInfo> |
parser() |
OrgPolicyViolationInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PAYLOAD_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
public static final int RESOURCE_TAGS_FIELD_NUMBER
public static final int VIOLATION_INFO_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];hasPayload in interface OrgPolicyViolationInfoOrBuilderpublic com.google.protobuf.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];getPayload in interface OrgPolicyViolationInfoOrBuilderpublic com.google.protobuf.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];getPayloadOrBuilder in interface OrgPolicyViolationInfoOrBuilderpublic 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];getResourceType in interface OrgPolicyViolationInfoOrBuilderpublic com.google.protobuf.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];getResourceTypeBytes in interface OrgPolicyViolationInfoOrBuilderpublic int getResourceTagsCount()
OrgPolicyViolationInfoOrBuilderOptional. 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];
getResourceTagsCount in interface OrgPolicyViolationInfoOrBuilderpublic 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];
containsResourceTags in interface OrgPolicyViolationInfoOrBuilder@Deprecated public Map<String,String> getResourceTags()
getResourceTagsMap() instead.getResourceTags in interface OrgPolicyViolationInfoOrBuilderpublic 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];
getResourceTagsMap in interface OrgPolicyViolationInfoOrBuilderpublic 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];
getResourceTagsOrDefault in interface OrgPolicyViolationInfoOrBuilderpublic 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];
getResourceTagsOrThrow in interface OrgPolicyViolationInfoOrBuilderpublic List<ViolationInfo> getViolationInfoList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoList in interface OrgPolicyViolationInfoOrBuilderpublic List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoOrBuilderList in interface OrgPolicyViolationInfoOrBuilderpublic int getViolationInfoCount()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoCount in interface OrgPolicyViolationInfoOrBuilderpublic ViolationInfo getViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfo in interface OrgPolicyViolationInfoOrBuilderpublic ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoOrBuilder in interface OrgPolicyViolationInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OrgPolicyViolationInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OrgPolicyViolationInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static OrgPolicyViolationInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OrgPolicyViolationInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OrgPolicyViolationInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OrgPolicyViolationInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OrgPolicyViolationInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OrgPolicyViolationInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OrgPolicyViolationInfo.Builder newBuilder()
public static OrgPolicyViolationInfo.Builder newBuilder(OrgPolicyViolationInfo prototype)
public OrgPolicyViolationInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OrgPolicyViolationInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OrgPolicyViolationInfo getDefaultInstance()
public static com.google.protobuf.Parser<OrgPolicyViolationInfo> parser()
public com.google.protobuf.Parser<OrgPolicyViolationInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OrgPolicyViolationInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.