Package com.google.cloud.audit
Class OrgPolicyViolationInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
- com.google.cloud.audit.OrgPolicyViolationInfo.Builder
-
- All Implemented Interfaces:
OrgPolicyViolationInfoOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- OrgPolicyViolationInfo
public static final class OrgPolicyViolationInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder> implements OrgPolicyViolationInfoOrBuilder
Represents OrgPolicy Violation information.
Protobuf typegoogle.cloud.audit.OrgPolicyViolationInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OrgPolicyViolationInfo.Builder
addAllViolationInfo(java.lang.Iterable<? extends ViolationInfo> values)
Optional.OrgPolicyViolationInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
OrgPolicyViolationInfo.Builder
addViolationInfo(int index, ViolationInfo value)
Optional.OrgPolicyViolationInfo.Builder
addViolationInfo(int index, ViolationInfo.Builder builderForValue)
Optional.OrgPolicyViolationInfo.Builder
addViolationInfo(ViolationInfo value)
Optional.OrgPolicyViolationInfo.Builder
addViolationInfo(ViolationInfo.Builder builderForValue)
Optional.ViolationInfo.Builder
addViolationInfoBuilder()
Optional.ViolationInfo.Builder
addViolationInfoBuilder(int index)
Optional.OrgPolicyViolationInfo
build()
OrgPolicyViolationInfo
buildPartial()
OrgPolicyViolationInfo.Builder
clear()
OrgPolicyViolationInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
OrgPolicyViolationInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
OrgPolicyViolationInfo.Builder
clearPayload()
Optional.OrgPolicyViolationInfo.Builder
clearResourceTags()
OrgPolicyViolationInfo.Builder
clearResourceType()
Optional.OrgPolicyViolationInfo.Builder
clearViolationInfo()
Optional.OrgPolicyViolationInfo.Builder
clone()
boolean
containsResourceTags(java.lang.String key)
Optional.OrgPolicyViolationInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.util.Map<java.lang.String,java.lang.String>
getMutableResourceTags()
Deprecated.com.google.protobuf.Struct
getPayload()
Optional.com.google.protobuf.Struct.Builder
getPayloadBuilder()
Optional.com.google.protobuf.StructOrBuilder
getPayloadOrBuilder()
Optional.java.util.Map<java.lang.String,java.lang.String>
getResourceTags()
Deprecated.int
getResourceTagsCount()
Optional.java.util.Map<java.lang.String,java.lang.String>
getResourceTagsMap()
Optional.java.lang.String
getResourceTagsOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional.java.lang.String
getResourceTagsOrThrow(java.lang.String key)
Optional.java.lang.String
getResourceType()
Optional.com.google.protobuf.ByteString
getResourceTypeBytes()
Optional.ViolationInfo
getViolationInfo(int index)
Optional.ViolationInfo.Builder
getViolationInfoBuilder(int index)
Optional.java.util.List<ViolationInfo.Builder>
getViolationInfoBuilderList()
Optional.int
getViolationInfoCount()
Optional.java.util.List<ViolationInfo>
getViolationInfoList()
Optional.ViolationInfoOrBuilder
getViolationInfoOrBuilder(int index)
Optional.java.util.List<? extends ViolationInfoOrBuilder>
getViolationInfoOrBuilderList()
Optional.boolean
hasPayload()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection(int number)
boolean
isInitialized()
OrgPolicyViolationInfo.Builder
mergeFrom(OrgPolicyViolationInfo other)
OrgPolicyViolationInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
OrgPolicyViolationInfo.Builder
mergeFrom(com.google.protobuf.Message other)
OrgPolicyViolationInfo.Builder
mergePayload(com.google.protobuf.Struct value)
Optional.OrgPolicyViolationInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OrgPolicyViolationInfo.Builder
putAllResourceTags(java.util.Map<java.lang.String,java.lang.String> values)
Optional.OrgPolicyViolationInfo.Builder
putResourceTags(java.lang.String key, java.lang.String value)
Optional.OrgPolicyViolationInfo.Builder
removeResourceTags(java.lang.String key)
Optional.OrgPolicyViolationInfo.Builder
removeViolationInfo(int index)
Optional.OrgPolicyViolationInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
OrgPolicyViolationInfo.Builder
setPayload(com.google.protobuf.Struct value)
Optional.OrgPolicyViolationInfo.Builder
setPayload(com.google.protobuf.Struct.Builder builderForValue)
Optional.OrgPolicyViolationInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
OrgPolicyViolationInfo.Builder
setResourceType(java.lang.String value)
Optional.OrgPolicyViolationInfo.Builder
setResourceTypeBytes(com.google.protobuf.ByteString value)
Optional.OrgPolicyViolationInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OrgPolicyViolationInfo.Builder
setViolationInfo(int index, ViolationInfo value)
Optional.OrgPolicyViolationInfo.Builder
setViolationInfo(int index, ViolationInfo.Builder builderForValue)
Optional.-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
clear
public OrgPolicyViolationInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<OrgPolicyViolationInfo.Builder>
-
getDefaultInstanceForType
public OrgPolicyViolationInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OrgPolicyViolationInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OrgPolicyViolationInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OrgPolicyViolationInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
setField
public OrgPolicyViolationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
clearField
public OrgPolicyViolationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
clearOneof
public OrgPolicyViolationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
setRepeatedField
public OrgPolicyViolationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
addRepeatedField
public OrgPolicyViolationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
mergeFrom
public OrgPolicyViolationInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationInfo.Builder>
-
mergeFrom
public OrgPolicyViolationInfo.Builder mergeFrom(OrgPolicyViolationInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,OrgPolicyViolationInfo.Builder>
-
mergeFrom
public OrgPolicyViolationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OrgPolicyViolationInfo.Builder>
- Throws:
java.io.IOException
-
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];
- Specified by:
hasPayload
in interfaceOrgPolicyViolationInfoOrBuilder
- Returns:
- Whether the payload field is set.
-
getPayload
public 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];
- Specified by:
getPayload
in interfaceOrgPolicyViolationInfoOrBuilder
- Returns:
- The payload.
-
setPayload
public 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];
-
setPayload
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];
-
mergePayload
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];
-
clearPayload
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];
-
getPayloadBuilder
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];
-
getPayloadOrBuilder
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];
- Specified by:
getPayloadOrBuilder
in interfaceOrgPolicyViolationInfoOrBuilder
-
getResourceType
public java.lang.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];
- Specified by:
getResourceType
in interfaceOrgPolicyViolationInfoOrBuilder
- Returns:
- The resourceType.
-
getResourceTypeBytes
public 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];
- Specified by:
getResourceTypeBytes
in interfaceOrgPolicyViolationInfoOrBuilder
- Returns:
- The bytes for resourceType.
-
setResourceType
public OrgPolicyViolationInfo.Builder setResourceType(java.lang.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];
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
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];
- Returns:
- This builder for chaining.
-
setResourceTypeBytes
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];
- Parameters:
value
- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getResourceTagsCount
public int getResourceTagsCount()
Description copied from interface:OrgPolicyViolationInfoOrBuilder
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];
- Specified by:
getResourceTagsCount
in interfaceOrgPolicyViolationInfoOrBuilder
-
containsResourceTags
public boolean containsResourceTags(java.lang.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];
- Specified by:
containsResourceTags
in interfaceOrgPolicyViolationInfoOrBuilder
-
getResourceTags
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getResourceTags()
Deprecated.UsegetResourceTagsMap()
instead.- Specified by:
getResourceTags
in interfaceOrgPolicyViolationInfoOrBuilder
-
getResourceTagsMap
public java.util.Map<java.lang.String,java.lang.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];
- Specified by:
getResourceTagsMap
in interfaceOrgPolicyViolationInfoOrBuilder
-
getResourceTagsOrDefault
public java.lang.String getResourceTagsOrDefault(java.lang.String key, java.lang.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];
- Specified by:
getResourceTagsOrDefault
in interfaceOrgPolicyViolationInfoOrBuilder
-
getResourceTagsOrThrow
public java.lang.String getResourceTagsOrThrow(java.lang.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];
- Specified by:
getResourceTagsOrThrow
in interfaceOrgPolicyViolationInfoOrBuilder
-
clearResourceTags
public OrgPolicyViolationInfo.Builder clearResourceTags()
-
removeResourceTags
public OrgPolicyViolationInfo.Builder removeResourceTags(java.lang.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];
-
getMutableResourceTags
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableResourceTags()
Deprecated.Use alternate mutation accessors instead.
-
putResourceTags
public OrgPolicyViolationInfo.Builder putResourceTags(java.lang.String key, java.lang.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];
-
putAllResourceTags
public OrgPolicyViolationInfo.Builder putAllResourceTags(java.util.Map<java.lang.String,java.lang.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];
-
getViolationInfoList
public java.util.List<ViolationInfo> getViolationInfoList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getViolationInfoList
in interfaceOrgPolicyViolationInfoOrBuilder
-
getViolationInfoCount
public int getViolationInfoCount()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getViolationInfoCount
in interfaceOrgPolicyViolationInfoOrBuilder
-
getViolationInfo
public ViolationInfo getViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getViolationInfo
in interfaceOrgPolicyViolationInfoOrBuilder
-
setViolationInfo
public OrgPolicyViolationInfo.Builder setViolationInfo(int index, ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
setViolationInfo
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];
-
addViolationInfo
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addViolationInfo
public OrgPolicyViolationInfo.Builder addViolationInfo(int index, ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addViolationInfo
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo.Builder builderForValue)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addViolationInfo
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];
-
addAllViolationInfo
public OrgPolicyViolationInfo.Builder addAllViolationInfo(java.lang.Iterable<? extends ViolationInfo> values)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
clearViolationInfo
public OrgPolicyViolationInfo.Builder clearViolationInfo()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
removeViolationInfo
public OrgPolicyViolationInfo.Builder removeViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoBuilder
public ViolationInfo.Builder getViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoOrBuilder
public ViolationInfoOrBuilder getViolationInfoOrBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getViolationInfoOrBuilder
in interfaceOrgPolicyViolationInfoOrBuilder
-
getViolationInfoOrBuilderList
public java.util.List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getViolationInfoOrBuilderList
in interfaceOrgPolicyViolationInfoOrBuilder
-
addViolationInfoBuilder
public ViolationInfo.Builder addViolationInfoBuilder()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
addViolationInfoBuilder
public ViolationInfo.Builder addViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
getViolationInfoBuilderList
public java.util.List<ViolationInfo.Builder> getViolationInfoBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final OrgPolicyViolationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
mergeUnknownFields
public final OrgPolicyViolationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder>
-
-