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.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
- com.google.cloud.audit.ViolationInfo.Builder
-
- All Implemented Interfaces:
ViolationInfoOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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 typegoogle.cloud.audit.ViolationInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ViolationInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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()
java.lang.String
getCheckedValue()
Optional.com.google.protobuf.ByteString
getCheckedValueBytes()
Optional.java.lang.String
getConstraint()
Optional.com.google.protobuf.ByteString
getConstraintBytes()
Optional.ViolationInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.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(ViolationInfo other)
ViolationInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ViolationInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ViolationInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ViolationInfo.Builder
setCheckedValue(java.lang.String value)
Optional.ViolationInfo.Builder
setCheckedValueBytes(com.google.protobuf.ByteString value)
Optional.ViolationInfo.Builder
setConstraint(java.lang.String value)
Optional.ViolationInfo.Builder
setConstraintBytes(com.google.protobuf.ByteString value)
Optional.ViolationInfo.Builder
setErrorMessage(java.lang.String value)
Optional.ViolationInfo.Builder
setErrorMessageBytes(com.google.protobuf.ByteString value)
Optional.ViolationInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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, java.lang.Object value)
ViolationInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clear
public 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.GeneratedMessage.Builder<ViolationInfo.Builder>
-
getDefaultInstanceForType
public ViolationInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ViolationInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ViolationInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ViolationInfo.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, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clearField
public ViolationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
clearOneof
public ViolationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
-
mergeFrom
public ViolationInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>
-
mergeFrom
public ViolationInfo.Builder mergeFrom(ViolationInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,ViolationInfo.Builder>
-
mergeFrom
public ViolationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getConstraint
public java.lang.String 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
public ViolationInfo.Builder setConstraint(java.lang.String value)
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The constraint to set.- Returns:
- This builder for chaining.
-
clearConstraint
public ViolationInfo.Builder clearConstraint()
Optional. Constraint name
string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setConstraintBytes
public ViolationInfo.Builder setConstraintBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public ViolationInfo.Builder setErrorMessage(java.lang.String value)
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
public ViolationInfo.Builder clearErrorMessage()
Optional. Error message that policy is indicating.
string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
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];
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
getCheckedValue
public java.lang.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];
- 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
public ViolationInfo.Builder setCheckedValue(java.lang.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];
- Parameters:
value
- The checkedValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCheckedValueBytes
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];
- 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
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];
- Parameters:
value
- The enum numeric value on the wire for policyType to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getPolicyType
in interfaceViolationInfoOrBuilder
- Returns:
- The policyType.
-
setPolicyType
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];
- Parameters:
value
- The policyType to set.- Returns:
- This builder for chaining.
-
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:
- 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>
-
-