public static final class OrgPolicyViolationInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder> implements OrgPolicyViolationInfoOrBuilder
Represents OrgPolicy Violation information.Protobuf type
google.cloud.audit.OrgPolicyViolationInfogetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OrgPolicyViolationInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OrgPolicyViolationInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OrgPolicyViolationInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder mergeFrom(OrgPolicyViolationInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public OrgPolicyViolationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationInfo.Builder>IOExceptionpublic 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 OrgPolicyViolationInfo.Builder setPayload(com.google.protobuf.Struct value)
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];public OrgPolicyViolationInfo.Builder setPayload(com.google.protobuf.Struct.Builder builderForValue)
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];public OrgPolicyViolationInfo.Builder mergePayload(com.google.protobuf.Struct value)
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];public OrgPolicyViolationInfo.Builder clearPayload()
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];public com.google.protobuf.Struct.Builder getPayloadBuilder()
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];public 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 OrgPolicyViolationInfo.Builder setResourceType(String value)
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];value - The resourceType to set.public OrgPolicyViolationInfo.Builder clearResourceType()
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];public OrgPolicyViolationInfo.Builder setResourceTypeBytes(com.google.protobuf.ByteString value)
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];value - The bytes for resourceType to set.public 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 OrgPolicyViolationInfo.Builder clearResourceTags()
public OrgPolicyViolationInfo.Builder removeResourceTags(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];
@Deprecated public Map<String,String> getMutableResourceTags()
public OrgPolicyViolationInfo.Builder putResourceTags(String key, String value)
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];
public OrgPolicyViolationInfo.Builder putAllResourceTags(Map<String,String> values)
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];
public List<ViolationInfo> getViolationInfoList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoList 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 OrgPolicyViolationInfo.Builder setViolationInfo(int index, ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder setViolationInfo(int index, ViolationInfo.Builder builderForValue)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder addViolationInfo(int index, ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo.Builder builderForValue)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder addViolationInfo(int index, ViolationInfo.Builder builderForValue)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder addAllViolationInfo(Iterable<? extends ViolationInfo> values)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder clearViolationInfo()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public OrgPolicyViolationInfo.Builder removeViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public ViolationInfo.Builder getViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
getViolationInfoOrBuilder 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 ViolationInfo.Builder addViolationInfoBuilder()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public ViolationInfo.Builder addViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public List<ViolationInfo.Builder> getViolationInfoBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
public final OrgPolicyViolationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>public final OrgPolicyViolationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>Copyright © 2022 Google LLC. All rights reserved.