Class OrgPolicyViolationInfo.Builder (2.14.3)

public static final class OrgPolicyViolationInfo.Builder extends GeneratedMessageV3.Builder<OrgPolicyViolationInfo.Builder> implements OrgPolicyViolationInfoOrBuilder

Represents OrgPolicy Violation information.

Protobuf type google.cloud.audit.OrgPolicyViolationInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.audit.ViolationInfo>
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OrgPolicyViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
NameDescription
valueViolationInfo
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
builderForValueViolationInfo.Builder
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
indexint
valueViolationInfo
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
indexint
builderForValueViolationInfo.Builder
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

addViolationInfoBuilder()

public ViolationInfo.Builder addViolationInfoBuilder()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ViolationInfo.Builder

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
NameDescription
indexint
Returns
TypeDescription
ViolationInfo.Builder

build()

public OrgPolicyViolationInfo build()
Returns
TypeDescription
OrgPolicyViolationInfo

buildPartial()

public OrgPolicyViolationInfo buildPartial()
Returns
TypeDescription
OrgPolicyViolationInfo

clear()

public OrgPolicyViolationInfo.Builder clear()
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OrgPolicyViolationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OrgPolicyViolationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
TypeDescription
OrgPolicyViolationInfo.Builder

clearResourceTags()

public OrgPolicyViolationInfo.Builder clearResourceTags()
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
TypeDescription
OrgPolicyViolationInfo.Builder

This builder for chaining.

clearViolationInfo()

public OrgPolicyViolationInfo.Builder clearViolationInfo()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
OrgPolicyViolationInfo.Builder

clone()

public OrgPolicyViolationInfo.Builder clone()
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
Overrides

containsResourceTags(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public OrgPolicyViolationInfo getDefaultInstanceForType()
Returns
TypeDescription
OrgPolicyViolationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableResourceTags()

public Map<String,String> getMutableResourceTags()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

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
TypeDescription
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
TypeDescription
Builder

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
TypeDescription
StructOrBuilder

getResourceTags()

public Map<String,String> getResourceTags()

Use #getResourceTagsMap() instead.

Returns
TypeDescription
Map<String,String>

getResourceTagsCount()

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
TypeDescription
int

getResourceTagsMap()

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
TypeDescription
Map<String,String>

getResourceTagsOrDefault(String key, String defaultValue)

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceTagsOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ViolationInfo

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
NameDescription
indexint
Returns
TypeDescription
ViolationInfo.Builder

getViolationInfoBuilderList()

public List<ViolationInfo.Builder> getViolationInfoBuilderList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getViolationInfoCount()

public int getViolationInfoCount()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getViolationInfoList()

public List<ViolationInfo> getViolationInfoList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ViolationInfo>

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
NameDescription
indexint
Returns
TypeDescription
ViolationInfoOrBuilder

getViolationInfoOrBuilderList()

public List<? extends ViolationInfoOrBuilder> getViolationInfoOrBuilderList()

Optional. Policy violations

repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
boolean

Whether the payload field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OrgPolicyViolationInfo other)

public OrgPolicyViolationInfo.Builder mergeFrom(OrgPolicyViolationInfo other)
Parameter
NameDescription
otherOrgPolicyViolationInfo
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OrgPolicyViolationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OrgPolicyViolationInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
NameDescription
valueStruct
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrgPolicyViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
Overrides

putAllResourceTags(Map<String,String> values)

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

putResourceTags(String key, String value)

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
NameDescription
keyString
valueString
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

removeResourceTags(String key)

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
NameDescription
keyString
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
indexint
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OrgPolicyViolationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
NameDescription
valueStruct
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OrgPolicyViolationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
NameDescription
valueString

The resourceType to set.

Returns
TypeDescription
OrgPolicyViolationInfo.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for resourceType to set.

Returns
TypeDescription
OrgPolicyViolationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OrgPolicyViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrgPolicyViolationInfo.Builder
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
NameDescription
indexint
valueViolationInfo
Returns
TypeDescription
OrgPolicyViolationInfo.Builder

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
NameDescription
indexint
builderForValueViolationInfo.Builder
Returns
TypeDescription
OrgPolicyViolationInfo.Builder