Class PolicyViolationInfo.Builder (2.38.0)

public static final class PolicyViolationInfo.Builder extends GeneratedMessageV3.Builder<PolicyViolationInfo.Builder> implements PolicyViolationInfoOrBuilder

Information related to policy violations for this request.

Protobuf type google.cloud.audit.PolicyViolationInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

build()

public PolicyViolationInfo build()
Returns
Type Description
PolicyViolationInfo

buildPartial()

public PolicyViolationInfo buildPartial()
Returns
Type Description
PolicyViolationInfo

clear()

public PolicyViolationInfo.Builder clear()
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PolicyViolationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyViolationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

clearOrgPolicyViolationInfo()

public PolicyViolationInfo.Builder clearOrgPolicyViolationInfo()

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Returns
Type Description
PolicyViolationInfo.Builder

clone()

public PolicyViolationInfo.Builder clone()
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

getDefaultInstanceForType()

public PolicyViolationInfo getDefaultInstanceForType()
Returns
Type Description
PolicyViolationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOrgPolicyViolationInfo()

public OrgPolicyViolationInfo getOrgPolicyViolationInfo()

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Returns
Type Description
OrgPolicyViolationInfo

The orgPolicyViolationInfo.

getOrgPolicyViolationInfoBuilder()

public OrgPolicyViolationInfo.Builder getOrgPolicyViolationInfoBuilder()

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Returns
Type Description
OrgPolicyViolationInfo.Builder

getOrgPolicyViolationInfoOrBuilder()

public OrgPolicyViolationInfoOrBuilder getOrgPolicyViolationInfoOrBuilder()

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Returns
Type Description
OrgPolicyViolationInfoOrBuilder

hasOrgPolicyViolationInfo()

public boolean hasOrgPolicyViolationInfo()

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Returns
Type Description
boolean

Whether the orgPolicyViolationInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyViolationInfo other)

public PolicyViolationInfo.Builder mergeFrom(PolicyViolationInfo other)
Parameter
Name Description
other PolicyViolationInfo
Returns
Type Description
PolicyViolationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyViolationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PolicyViolationInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PolicyViolationInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

mergeOrgPolicyViolationInfo(OrgPolicyViolationInfo value)

public PolicyViolationInfo.Builder mergeOrgPolicyViolationInfo(OrgPolicyViolationInfo value)

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Parameter
Name Description
value OrgPolicyViolationInfo
Returns
Type Description
PolicyViolationInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyViolationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

setOrgPolicyViolationInfo(OrgPolicyViolationInfo value)

public PolicyViolationInfo.Builder setOrgPolicyViolationInfo(OrgPolicyViolationInfo value)

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Parameter
Name Description
value OrgPolicyViolationInfo
Returns
Type Description
PolicyViolationInfo.Builder

setOrgPolicyViolationInfo(OrgPolicyViolationInfo.Builder builderForValue)

public PolicyViolationInfo.Builder setOrgPolicyViolationInfo(OrgPolicyViolationInfo.Builder builderForValue)

Indicates the orgpolicy violations for this resource.

.google.cloud.audit.OrgPolicyViolationInfo org_policy_violation_info = 1;

Parameter
Name Description
builderForValue OrgPolicyViolationInfo.Builder
Returns
Type Description
PolicyViolationInfo.Builder

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

public PolicyViolationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PolicyViolationInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PolicyViolationInfo.Builder
Overrides