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()
Returns
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>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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];
Parameter
Returns
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];
Parameter
Returns
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];
Parameters
Returns
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];
Parameters
Returns
addViolationInfoBuilder()
public ViolationInfo.Builder addViolationInfoBuilder()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
Returns
build()
public OrgPolicyViolationInfo build()
Returns
buildPartial()
public OrgPolicyViolationInfo buildPartial()
Returns
clear()
public OrgPolicyViolationInfo.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public OrgPolicyViolationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OrgPolicyViolationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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];
Returns
public OrgPolicyViolationInfo.Builder clearResourceTags()
Returns
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
clearViolationInfo()
public OrgPolicyViolationInfo.Builder clearViolationInfo()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
clone()
public OrgPolicyViolationInfo.Builder clone()
Returns
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
Returns
getDefaultInstanceForType()
public OrgPolicyViolationInfo getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,String> getMutableResourceTags()
Use alternate mutation accessors instead.
Returns
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];
Returns
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
public Map<String,String> getResourceTags()
Returns
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
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
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
Returns
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
Returns
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
Returns
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
Returns
getViolationInfoBuilderList()
public List<ViolationInfo.Builder> getViolationInfoBuilderList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getViolationInfoCount()
public int getViolationInfoCount()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getViolationInfoList()
public List<ViolationInfo> getViolationInfoList()
Optional. Policy violations
repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
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
Returns
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()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(OrgPolicyViolationInfo other)
public OrgPolicyViolationInfo.Builder mergeFrom(OrgPolicyViolationInfo other)
Parameter
Returns
public OrgPolicyViolationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public OrgPolicyViolationInfo.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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];
Parameter
Returns
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];
Parameters
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public OrgPolicyViolationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OrgPolicyViolationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final OrgPolicyViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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];
Parameters
Returns
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];
Parameters
Returns