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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • clear

      public ViolationInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • getDefaultInstanceForType

      public ViolationInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ViolationInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ViolationInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ViolationInfo.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • setField

      public ViolationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • clearField

      public ViolationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • clearOneof

      public ViolationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • addRepeatedField

      public ViolationInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • mergeFrom

      public ViolationInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>
    • mergeFrom

      public ViolationInfo.Builder mergeFrom(ViolationInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationInfo.Builder>
      Throws:
      IOException
    • getConstraint

      public String getConstraint()
       Optional. Constraint name
       
      string constraint = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConstraint in interface ViolationInfoOrBuilder
      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 interface ViolationInfoOrBuilder
      Returns:
      The bytes for constraint.
    • setConstraint

      public ViolationInfo.Builder setConstraint(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 String getErrorMessage()
       Optional. Error message that policy is indicating.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorMessage in interface ViolationInfoOrBuilder
      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 interface ViolationInfoOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public ViolationInfo.Builder setErrorMessage(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 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 interface ViolationInfoOrBuilder
      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 interface ViolationInfoOrBuilder
      Returns:
      The bytes for checkedValue.
    • setCheckedValue

      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];
      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 interface ViolationInfoOrBuilder
      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 interface ViolationInfoOrBuilder
      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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>
    • mergeUnknownFields

      public final ViolationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ViolationInfo.Builder>