Class ViolationInfo.Builder (2.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ViolationInfo.Builder
Overrides

build()

public ViolationInfo build()
Returns
TypeDescription
ViolationInfo

buildPartial()

public ViolationInfo buildPartial()
Returns
TypeDescription
ViolationInfo

clear()

public ViolationInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
ViolationInfo.Builder

This builder for chaining.

clearConstraint()

public ViolationInfo.Builder clearConstraint()

Optional. Constraint name

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ViolationInfo.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for checkedValue.

getConstraint()

public String getConstraint()

Optional. Constraint name

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

Returns
TypeDescription
String

The constraint.

getConstraintBytes()

public ByteString getConstraintBytes()

Optional. Constraint name

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

Returns
TypeDescription
ByteString

The bytes for constraint.

getDefaultInstanceForType()

public ViolationInfo getDefaultInstanceForType()
Returns
TypeDescription
ViolationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorMessage()

public String getErrorMessage()

Optional. Error message that policy is indicating.

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

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Optional. Error message that policy is indicating.

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

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

The enum numeric value on the wire for policyType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ViolationInfo other)

public ViolationInfo.Builder mergeFrom(ViolationInfo other)
Parameter
NameDescription
otherViolationInfo
Returns
TypeDescription
ViolationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ViolationInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ViolationInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The checkedValue to set.

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

The bytes for checkedValue to set.

Returns
TypeDescription
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
NameDescription
valueString

The constraint to set.

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

The bytes for constraint to set.

Returns
TypeDescription
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
NameDescription
valueString

The errorMessage to set.

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

The bytes for errorMessage to set.

Returns
TypeDescription
ViolationInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The policyType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ViolationInfo.Builder
Overrides