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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ViolationInfo.BuilderImplements
ViolationInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ViolationInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ViolationInfo.Builder |
build()
public ViolationInfo build()
Type | Description |
ViolationInfo |
buildPartial()
public ViolationInfo buildPartial()
Type | Description |
ViolationInfo |
clear()
public ViolationInfo.Builder clear()
Type | Description |
ViolationInfo.Builder |
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];
Type | Description |
ViolationInfo.Builder | This builder for chaining. |
clearConstraint()
public ViolationInfo.Builder clearConstraint()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
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];
Type | Description |
ViolationInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ViolationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ViolationInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ViolationInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ViolationInfo.Builder |
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];
Type | Description |
ViolationInfo.Builder | This builder for chaining. |
clone()
public ViolationInfo.Builder clone()
Type | Description |
ViolationInfo.Builder |
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];
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];
Type | Description |
ByteString | The bytes for checkedValue. |
getConstraint()
public String getConstraint()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The constraint. |
getConstraintBytes()
public ByteString getConstraintBytes()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for constraint. |
getDefaultInstanceForType()
public ViolationInfo getDefaultInstanceForType()
Type | Description |
ViolationInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getErrorMessage()
public String getErrorMessage()
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
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];
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];
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];
Type | Description |
int | The enum numeric value on the wire for policyType. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ViolationInfo other)
public ViolationInfo.Builder mergeFrom(ViolationInfo other)
Name | Description |
other | ViolationInfo |
Type | Description |
ViolationInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ViolationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ViolationInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ViolationInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ViolationInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ViolationInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ViolationInfo.Builder |
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];
Name | Description |
value | String The checkedValue to set. |
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];
Name | Description |
value | ByteString The bytes for checkedValue to set. |
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];
Name | Description |
value | String The constraint to set. |
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];
Name | Description |
value | ByteString The bytes for constraint to set. |
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];
Name | Description |
value | String The errorMessage to set. |
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];
Name | Description |
value | ByteString The bytes for errorMessage to set. |
Type | Description |
ViolationInfo.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ViolationInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ViolationInfo.Builder |
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];
Name | Description |
value | ViolationInfo.PolicyType The policyType to set. |
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];
Name | Description |
value | int The enum numeric value on the wire for policyType to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ViolationInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ViolationInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ViolationInfo.Builder |