Class LintResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LintResult.Builder>
com.google.iam.admin.v1.LintResult.Builder
All Implemented Interfaces:
LintResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LintResult

public static final class LintResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<LintResult.Builder> implements LintResultOrBuilder
 Structured response of a single validation unit.
 
Protobuf type google.iam.admin.v1.LintResult
  • Method Details

    • getDescriptor

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

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

      public LintResult.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.GeneratedMessage.Builder<LintResult.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.GeneratedMessage.Builder<LintResult.Builder>
    • getDefaultInstanceForType

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

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

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

      public LintResult.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<LintResult.Builder>
    • mergeFrom

      public LintResult.Builder mergeFrom(LintResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LintResult.Builder>
    • mergeFrom

      public LintResult.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<LintResult.Builder>
      Throws:
      IOException
    • getLevelValue

      public int getLevelValue()
       The validation unit level.
       
      .google.iam.admin.v1.LintResult.Level level = 1;
      Specified by:
      getLevelValue in interface LintResultOrBuilder
      Returns:
      The enum numeric value on the wire for level.
    • setLevelValue

      public LintResult.Builder setLevelValue(int value)
       The validation unit level.
       
      .google.iam.admin.v1.LintResult.Level level = 1;
      Parameters:
      value - The enum numeric value on the wire for level to set.
      Returns:
      This builder for chaining.
    • getLevel

      public LintResult.Level getLevel()
       The validation unit level.
       
      .google.iam.admin.v1.LintResult.Level level = 1;
      Specified by:
      getLevel in interface LintResultOrBuilder
      Returns:
      The level.
    • setLevel

      public LintResult.Builder setLevel(LintResult.Level value)
       The validation unit level.
       
      .google.iam.admin.v1.LintResult.Level level = 1;
      Parameters:
      value - The level to set.
      Returns:
      This builder for chaining.
    • clearLevel

      public LintResult.Builder clearLevel()
       The validation unit level.
       
      .google.iam.admin.v1.LintResult.Level level = 1;
      Returns:
      This builder for chaining.
    • getValidationUnitName

      public String getValidationUnitName()
       The validation unit name, for instance
       "lintValidationUnits/ConditionComplexityCheck".
       
      string validation_unit_name = 2;
      Specified by:
      getValidationUnitName in interface LintResultOrBuilder
      Returns:
      The validationUnitName.
    • getValidationUnitNameBytes

      public com.google.protobuf.ByteString getValidationUnitNameBytes()
       The validation unit name, for instance
       "lintValidationUnits/ConditionComplexityCheck".
       
      string validation_unit_name = 2;
      Specified by:
      getValidationUnitNameBytes in interface LintResultOrBuilder
      Returns:
      The bytes for validationUnitName.
    • setValidationUnitName

      public LintResult.Builder setValidationUnitName(String value)
       The validation unit name, for instance
       "lintValidationUnits/ConditionComplexityCheck".
       
      string validation_unit_name = 2;
      Parameters:
      value - The validationUnitName to set.
      Returns:
      This builder for chaining.
    • clearValidationUnitName

      public LintResult.Builder clearValidationUnitName()
       The validation unit name, for instance
       "lintValidationUnits/ConditionComplexityCheck".
       
      string validation_unit_name = 2;
      Returns:
      This builder for chaining.
    • setValidationUnitNameBytes

      public LintResult.Builder setValidationUnitNameBytes(com.google.protobuf.ByteString value)
       The validation unit name, for instance
       "lintValidationUnits/ConditionComplexityCheck".
       
      string validation_unit_name = 2;
      Parameters:
      value - The bytes for validationUnitName to set.
      Returns:
      This builder for chaining.
    • getSeverityValue

      public int getSeverityValue()
       The validation unit severity.
       
      .google.iam.admin.v1.LintResult.Severity severity = 3;
      Specified by:
      getSeverityValue in interface LintResultOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public LintResult.Builder setSeverityValue(int value)
       The validation unit severity.
       
      .google.iam.admin.v1.LintResult.Severity severity = 3;
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public LintResult.Severity getSeverity()
       The validation unit severity.
       
      .google.iam.admin.v1.LintResult.Severity severity = 3;
      Specified by:
      getSeverity in interface LintResultOrBuilder
      Returns:
      The severity.
    • setSeverity

      public LintResult.Builder setSeverity(LintResult.Severity value)
       The validation unit severity.
       
      .google.iam.admin.v1.LintResult.Severity severity = 3;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public LintResult.Builder clearSeverity()
       The validation unit severity.
       
      .google.iam.admin.v1.LintResult.Severity severity = 3;
      Returns:
      This builder for chaining.
    • getFieldName

      public String getFieldName()
       The name of the field for which this lint result is about.
      
       For nested messages `field_name` consists of names of the embedded fields
       separated by period character. The top-level qualifier is the input object
       to lint in the request. For example, the `field_name` value
       `condition.expression` identifies a lint result for the `expression` field
       of the provided condition.
       
      string field_name = 5;
      Specified by:
      getFieldName in interface LintResultOrBuilder
      Returns:
      The fieldName.
    • getFieldNameBytes

      public com.google.protobuf.ByteString getFieldNameBytes()
       The name of the field for which this lint result is about.
      
       For nested messages `field_name` consists of names of the embedded fields
       separated by period character. The top-level qualifier is the input object
       to lint in the request. For example, the `field_name` value
       `condition.expression` identifies a lint result for the `expression` field
       of the provided condition.
       
      string field_name = 5;
      Specified by:
      getFieldNameBytes in interface LintResultOrBuilder
      Returns:
      The bytes for fieldName.
    • setFieldName

      public LintResult.Builder setFieldName(String value)
       The name of the field for which this lint result is about.
      
       For nested messages `field_name` consists of names of the embedded fields
       separated by period character. The top-level qualifier is the input object
       to lint in the request. For example, the `field_name` value
       `condition.expression` identifies a lint result for the `expression` field
       of the provided condition.
       
      string field_name = 5;
      Parameters:
      value - The fieldName to set.
      Returns:
      This builder for chaining.
    • clearFieldName

      public LintResult.Builder clearFieldName()
       The name of the field for which this lint result is about.
      
       For nested messages `field_name` consists of names of the embedded fields
       separated by period character. The top-level qualifier is the input object
       to lint in the request. For example, the `field_name` value
       `condition.expression` identifies a lint result for the `expression` field
       of the provided condition.
       
      string field_name = 5;
      Returns:
      This builder for chaining.
    • setFieldNameBytes

      public LintResult.Builder setFieldNameBytes(com.google.protobuf.ByteString value)
       The name of the field for which this lint result is about.
      
       For nested messages `field_name` consists of names of the embedded fields
       separated by period character. The top-level qualifier is the input object
       to lint in the request. For example, the `field_name` value
       `condition.expression` identifies a lint result for the `expression` field
       of the provided condition.
       
      string field_name = 5;
      Parameters:
      value - The bytes for fieldName to set.
      Returns:
      This builder for chaining.
    • getLocationOffset

      public int getLocationOffset()
       0-based character position of problematic construct within the object
       identified by `field_name`. Currently, this is populated only for condition
       expression.
       
      int32 location_offset = 6;
      Specified by:
      getLocationOffset in interface LintResultOrBuilder
      Returns:
      The locationOffset.
    • setLocationOffset

      public LintResult.Builder setLocationOffset(int value)
       0-based character position of problematic construct within the object
       identified by `field_name`. Currently, this is populated only for condition
       expression.
       
      int32 location_offset = 6;
      Parameters:
      value - The locationOffset to set.
      Returns:
      This builder for chaining.
    • clearLocationOffset

      public LintResult.Builder clearLocationOffset()
       0-based character position of problematic construct within the object
       identified by `field_name`. Currently, this is populated only for condition
       expression.
       
      int32 location_offset = 6;
      Returns:
      This builder for chaining.
    • getDebugMessage

      public String getDebugMessage()
       Human readable debug message associated with the issue.
       
      string debug_message = 7;
      Specified by:
      getDebugMessage in interface LintResultOrBuilder
      Returns:
      The debugMessage.
    • getDebugMessageBytes

      public com.google.protobuf.ByteString getDebugMessageBytes()
       Human readable debug message associated with the issue.
       
      string debug_message = 7;
      Specified by:
      getDebugMessageBytes in interface LintResultOrBuilder
      Returns:
      The bytes for debugMessage.
    • setDebugMessage

      public LintResult.Builder setDebugMessage(String value)
       Human readable debug message associated with the issue.
       
      string debug_message = 7;
      Parameters:
      value - The debugMessage to set.
      Returns:
      This builder for chaining.
    • clearDebugMessage

      public LintResult.Builder clearDebugMessage()
       Human readable debug message associated with the issue.
       
      string debug_message = 7;
      Returns:
      This builder for chaining.
    • setDebugMessageBytes

      public LintResult.Builder setDebugMessageBytes(com.google.protobuf.ByteString value)
       Human readable debug message associated with the issue.
       
      string debug_message = 7;
      Parameters:
      value - The bytes for debugMessage to set.
      Returns:
      This builder for chaining.