Package com.google.cloud.audit
Class ViolationInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
com.google.cloud.audit.ViolationInfo.Builder
- All Implemented Interfaces:
ViolationInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ViolationInfo
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
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Optional.Optional.Optional.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional.clone()
Optional.com.google.protobuf.ByteString
Optional.Optional.com.google.protobuf.ByteString
Optional.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Optional.com.google.protobuf.ByteString
Optional.Optional.int
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(ViolationInfo other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final ViolationInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCheckedValue
(String value) Optional.setCheckedValueBytes
(com.google.protobuf.ByteString value) Optional.setConstraint
(String value) Optional.setConstraintBytes
(com.google.protobuf.ByteString value) Optional.setErrorMessage
(String value) Optional.setErrorMessageBytes
(com.google.protobuf.ByteString value) Optional.Optional.setPolicyTypeValue
(int value) Optional.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ViolationInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
setField
public ViolationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
setRepeatedField
public ViolationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
addRepeatedField
public ViolationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
mergeFrom
public ViolationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>
- Throws:
IOException
-
getConstraint
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getConstraint
in interfaceViolationInfoOrBuilder
- Returns:
- The constraint.
-
getConstraintBytes
public com.google.protobuf.ByteString getConstraintBytes()Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getConstraintBytes
in interfaceViolationInfoOrBuilder
- Returns:
- The bytes for constraint.
-
setConstraint
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The constraint to set.- Returns:
- This builder for chaining.
-
clearConstraint
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setConstraintBytes
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for constraint to set.- Returns:
- This builder for chaining.
-
getErrorMessage
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getErrorMessage
in interfaceViolationInfoOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getErrorMessageBytes
in interfaceViolationInfoOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getCheckedValue
in interfaceViolationInfoOrBuilder
- Returns:
- The checkedValue.
-
getCheckedValueBytes
public 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];
- Specified by:
getCheckedValueBytes
in interfaceViolationInfoOrBuilder
- Returns:
- The bytes for checkedValue.
-
setCheckedValue
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];
- Parameters:
value
- The checkedValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCheckedValueBytes
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];
- Parameters:
value
- The bytes for checkedValue to set.- Returns:
- This builder for chaining.
-
getPolicyTypeValue
public int getPolicyTypeValue()Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPolicyTypeValue
in interfaceViolationInfoOrBuilder
- Returns:
- The enum numeric value on the wire for policyType.
-
setPolicyTypeValue
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for policyType to set.- Returns:
- This builder for chaining.
-
getPolicyType
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPolicyType
in interfaceViolationInfoOrBuilder
- Returns:
- The policyType.
-
setPolicyType
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The policyType to set.- Returns:
- This builder for chaining.
-
clearPolicyType
Optional. Indicates the type of the policy.
.google.cloud.audit.ViolationInfo.PolicyType policy_type = 4 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ViolationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
mergeUnknownFields
public final ViolationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-