public static final class ViolationInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder> implements ViolationInfoOrBuilder
Provides information about the Policy violation info for this request.Protobuf type
google.cloud.audit.ViolationInfo| Modifier and Type | Method and Description |
|---|---|
ViolationInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ViolationInfo |
build() |
ViolationInfo |
buildPartial() |
ViolationInfo.Builder |
clear() |
ViolationInfo.Builder |
clearCheckedValue()
Optional.
|
ViolationInfo.Builder |
clearConstraint()
Optional.
|
ViolationInfo.Builder |
clearErrorMessage()
Optional.
|
ViolationInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ViolationInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ViolationInfo.Builder |
clearPolicyType()
Optional.
|
ViolationInfo.Builder |
clone() |
String |
getCheckedValue()
Optional.
|
com.google.protobuf.ByteString |
getCheckedValueBytes()
Optional.
|
String |
getConstraint()
Optional.
|
com.google.protobuf.ByteString |
getConstraintBytes()
Optional.
|
ViolationInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getErrorMessage()
Optional.
|
com.google.protobuf.ByteString |
getErrorMessageBytes()
Optional.
|
ViolationInfo.PolicyType |
getPolicyType()
Optional.
|
int |
getPolicyTypeValue()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ViolationInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ViolationInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
ViolationInfo.Builder |
mergeFrom(ViolationInfo other) |
ViolationInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ViolationInfo.Builder |
setCheckedValue(String value)
Optional.
|
ViolationInfo.Builder |
setCheckedValueBytes(com.google.protobuf.ByteString value)
Optional.
|
ViolationInfo.Builder |
setConstraint(String value)
Optional.
|
ViolationInfo.Builder |
setConstraintBytes(com.google.protobuf.ByteString value)
Optional.
|
ViolationInfo.Builder |
setErrorMessage(String value)
Optional.
|
ViolationInfo.Builder |
setErrorMessageBytes(com.google.protobuf.ByteString value)
Optional.
|
ViolationInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ViolationInfo.Builder |
setPolicyType(ViolationInfo.PolicyType value)
Optional.
|
ViolationInfo.Builder |
setPolicyTypeValue(int value)
Optional.
|
ViolationInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ViolationInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ViolationInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ViolationInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ViolationInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>public ViolationInfo.Builder mergeFrom(ViolationInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public ViolationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>IOExceptionpublic String getConstraint()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];getConstraint in interface ViolationInfoOrBuilderpublic com.google.protobuf.ByteString getConstraintBytes()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];getConstraintBytes in interface ViolationInfoOrBuilderpublic ViolationInfo.Builder setConstraint(String value)
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];value - The constraint to set.public ViolationInfo.Builder clearConstraint()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];public ViolationInfo.Builder setConstraintBytes(com.google.protobuf.ByteString value)
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for constraint to set.public String getErrorMessage()
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];getErrorMessage in interface ViolationInfoOrBuilderpublic com.google.protobuf.ByteString getErrorMessageBytes()
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];getErrorMessageBytes in interface ViolationInfoOrBuilderpublic ViolationInfo.Builder setErrorMessage(String value)
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];value - The errorMessage to set.public ViolationInfo.Builder clearErrorMessage()
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];public ViolationInfo.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for errorMessage to set.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];getCheckedValue in interface ViolationInfoOrBuilderpublic com.google.protobuf.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];getCheckedValueBytes in interface ViolationInfoOrBuilderpublic 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];value - The checkedValue to set.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];public ViolationInfo.Builder setCheckedValueBytes(com.google.protobuf.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];value - The bytes for checkedValue to set.public int getPolicyTypeValue()
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
getPolicyTypeValue in interface ViolationInfoOrBuilderpublic 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];
value - The enum numeric value on the wire for policyType to set.public ViolationInfo.PolicyType getPolicyType()
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
getPolicyType in interface ViolationInfoOrBuilderpublic 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];
value - The policyType to set.public ViolationInfo.Builder clearPolicyType()
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
public final ViolationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>public final ViolationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>Copyright © 2022 Google LLC. All rights reserved.