public static final class OrgPolicyViolationInfo.Builder extends GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder> implements OrgPolicyViolationInfoOrBuilder
Represents OrgPolicy Violation information.
Protobuf type google.cloud.audit.OrgPolicyViolationInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllViolationInfo(Iterable<? extends ViolationInfo> values)
public OrgPolicyViolationInfo.Builder addAllViolationInfo(Iterable<? extends ViolationInfo> values)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.audit.ViolationInfo>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addViolationInfo(ViolationInfo value)
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo value)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
addViolationInfo(ViolationInfo.Builder builderForValue)
public OrgPolicyViolationInfo.Builder addViolationInfo(ViolationInfo.Builder builderForValue)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
addViolationInfo(int index, ViolationInfo value)
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(int index, ViolationInfo.Builder builderForValue)
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];
addViolationInfoBuilder()
public ViolationInfo.Builder addViolationInfoBuilder()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
addViolationInfoBuilder(int index)
public ViolationInfo.Builder addViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
build()
public OrgPolicyViolationInfo build()
buildPartial()
public OrgPolicyViolationInfo buildPartial()
clear()
public OrgPolicyViolationInfo.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public OrgPolicyViolationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OrgPolicyViolationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
public OrgPolicyViolationInfo.Builder clearResourceTags()
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];
clearViolationInfo()
public OrgPolicyViolationInfo.Builder clearViolationInfo()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
clone()
public OrgPolicyViolationInfo.Builder clone()
Overrides
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
|
getDefaultInstanceForType()
public OrgPolicyViolationInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getMutableResourceTags()
Use alternate mutation accessors instead.
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.
|
getPayloadBuilder()
public 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 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];
public Map<String,String> getResourceTags()
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 | |
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];
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];
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
|
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.
|
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
|
getViolationInfoBuilder(int index)
public ViolationInfo.Builder getViolationInfoBuilder(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getViolationInfoBuilderList()
public List<ViolationInfo.Builder> getViolationInfoBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
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];
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
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OrgPolicyViolationInfo other)
public OrgPolicyViolationInfo.Builder mergeFrom(OrgPolicyViolationInfo other)
public OrgPolicyViolationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OrgPolicyViolationInfo.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergePayload(Struct value)
public OrgPolicyViolationInfo.Builder mergePayload(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];
Parameter |
---|
Name | Description |
value | Struct
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 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 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];
Parameter |
---|
Name | Description |
key | String
|
removeViolationInfo(int index)
public OrgPolicyViolationInfo.Builder removeViolationInfo(int index)
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPayload(Struct value)
public OrgPolicyViolationInfo.Builder setPayload(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];
Parameter |
---|
Name | Description |
value | Struct
|
setPayload(Struct.Builder builderForValue)
public OrgPolicyViolationInfo.Builder setPayload(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];
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OrgPolicyViolationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResourceType(String value)
public 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];
Parameter |
---|
Name | Description |
value | String
The resourceType to set.
|
setResourceTypeBytes(ByteString value)
public OrgPolicyViolationInfo.Builder setResourceTypeBytes(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];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for resourceType to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setViolationInfo(int index, ViolationInfo value)
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(int index, ViolationInfo.Builder builderForValue)
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];