Class ViolationInfo.Builder (2.42.0)

public static final class ViolationInfo.Builder extends GeneratedMessageV3.Builder<ViolationInfo.Builder> implements ViolationInfoOrBuilder

Provides information about the Policy violation info for this request.

Protobuf type google.cloud.audit.ViolationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ViolationInfo build()
Returns
Type Description
ViolationInfo

buildPartial()

public ViolationInfo buildPartial()
Returns
Type Description
ViolationInfo

clear()

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

clearCheckedValue()

public ViolationInfo.Builder clearCheckedValue()

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

clearConstraint()

public ViolationInfo.Builder clearConstraint()

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

clearErrorMessage()

public ViolationInfo.Builder clearErrorMessage()

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyType()

public ViolationInfo.Builder clearPolicyType()

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

clone()

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

getCheckedValue()

public String getCheckedValue()

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The checkedValue.

getCheckedValueBytes()

public ByteString getCheckedValueBytes()

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for checkedValue.

getConstraint()

public String getConstraint()

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The constraint.

getConstraintBytes()

public ByteString getConstraintBytes()

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for constraint.

getDefaultInstanceForType()

public ViolationInfo getDefaultInstanceForType()
Returns
Type Description
ViolationInfo

getDescriptorForType()

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

getErrorMessage()

public String getErrorMessage()

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for errorMessage.

getPolicyType()

public ViolationInfo.PolicyType getPolicyType()

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ViolationInfo.PolicyType

The policyType.

getPolicyTypeValue()

public int getPolicyTypeValue()

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for policyType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ViolationInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCheckedValue(String value)

public ViolationInfo.Builder setCheckedValue(String value)

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The checkedValue to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setCheckedValueBytes(ByteString value)

public ViolationInfo.Builder setCheckedValueBytes(ByteString value)

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

string checked_value = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for checkedValue to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setConstraint(String value)

public ViolationInfo.Builder setConstraint(String value)

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The constraint to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setConstraintBytes(ByteString value)

public ViolationInfo.Builder setConstraintBytes(ByteString value)

Optional. Constraint name

string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for constraint to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setErrorMessage(String value)

public ViolationInfo.Builder setErrorMessage(String value)

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public ViolationInfo.Builder setErrorMessageBytes(ByteString value)

Optional. Error message that policy is indicating.

string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicyType(ViolationInfo.PolicyType value)

public ViolationInfo.Builder setPolicyType(ViolationInfo.PolicyType value)

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ViolationInfo.PolicyType

The policyType to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

setPolicyTypeValue(int value)

public ViolationInfo.Builder setPolicyTypeValue(int value)

Optional. Indicates the type of the policy.

.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for policyType to set.

Returns
Type Description
ViolationInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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