Class LintResult.Builder (3.40.0)

public static final class LintResult.Builder extends GeneratedMessageV3.Builder<LintResult.Builder> implements LintResultOrBuilder

Structured response of a single validation unit.

Protobuf type google.iam.admin.v1.LintResult

Implements

LintResultOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LintResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LintResult.Builder
Overrides

build()

public LintResult build()
Returns
Type Description
LintResult

buildPartial()

public LintResult buildPartial()
Returns
Type Description
LintResult

clear()

public LintResult.Builder clear()
Returns
Type Description
LintResult.Builder
Overrides

clearDebugMessage()

public LintResult.Builder clearDebugMessage()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
Type Description
LintResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LintResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LintResult.Builder
Overrides

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
Type Description
LintResult.Builder

This builder for chaining.

clearLevel()

public LintResult.Builder clearLevel()

The validation unit level.

.google.iam.admin.v1.LintResult.Level level = 1;

Returns
Type Description
LintResult.Builder

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
Type Description
LintResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LintResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LintResult.Builder
Overrides

clearSeverity()

public LintResult.Builder clearSeverity()

The validation unit severity.

.google.iam.admin.v1.LintResult.Severity severity = 3;

Returns
Type Description
LintResult.Builder

This builder for chaining.

clearValidationUnitName()

public LintResult.Builder clearValidationUnitName()

The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck".

string validation_unit_name = 2;

Returns
Type Description
LintResult.Builder

This builder for chaining.

clone()

public LintResult.Builder clone()
Returns
Type Description
LintResult.Builder
Overrides

getDebugMessage()

public String getDebugMessage()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
Type Description
String

The debugMessage.

getDebugMessageBytes()

public ByteString getDebugMessageBytes()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
Type Description
ByteString

The bytes for debugMessage.

getDefaultInstanceForType()

public LintResult getDefaultInstanceForType()
Returns
Type Description
LintResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The fieldName.

getFieldNameBytes()

public 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;

Returns
Type Description
ByteString

The bytes for fieldName.

getLevel()

public LintResult.Level getLevel()

The validation unit level.

.google.iam.admin.v1.LintResult.Level level = 1;

Returns
Type Description
LintResult.Level

The level.

getLevelValue()

public int getLevelValue()

The validation unit level.

.google.iam.admin.v1.LintResult.Level level = 1;

Returns
Type Description
int

The enum numeric value on the wire for level.

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;

Returns
Type Description
int

The locationOffset.

getSeverity()

public LintResult.Severity getSeverity()

The validation unit severity.

.google.iam.admin.v1.LintResult.Severity severity = 3;

Returns
Type Description
LintResult.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The validation unit severity.

.google.iam.admin.v1.LintResult.Severity severity = 3;

Returns
Type Description
int

The enum numeric value on the wire for severity.

getValidationUnitName()

public String getValidationUnitName()

The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck".

string validation_unit_name = 2;

Returns
Type Description
String

The validationUnitName.

getValidationUnitNameBytes()

public ByteString getValidationUnitNameBytes()

The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck".

string validation_unit_name = 2;

Returns
Type Description
ByteString

The bytes for validationUnitName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LintResult other)

public LintResult.Builder mergeFrom(LintResult other)
Parameter
Name Description
other LintResult
Returns
Type Description
LintResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LintResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LintResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LintResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LintResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LintResult.Builder
Overrides

setDebugMessage(String value)

public LintResult.Builder setDebugMessage(String value)

Human readable debug message associated with the issue.

string debug_message = 7;

Parameter
Name Description
value String

The debugMessage to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setDebugMessageBytes(ByteString value)

public LintResult.Builder setDebugMessageBytes(ByteString value)

Human readable debug message associated with the issue.

string debug_message = 7;

Parameter
Name Description
value ByteString

The bytes for debugMessage to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LintResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LintResult.Builder
Overrides

setFieldName(String value)

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;

Parameter
Name Description
value String

The fieldName to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setFieldNameBytes(ByteString value)

public LintResult.Builder setFieldNameBytes(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;

Parameter
Name Description
value ByteString

The bytes for fieldName to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setLevel(LintResult.Level value)

public LintResult.Builder setLevel(LintResult.Level value)

The validation unit level.

.google.iam.admin.v1.LintResult.Level level = 1;

Parameter
Name Description
value LintResult.Level

The level to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setLevelValue(int value)

public LintResult.Builder setLevelValue(int value)

The validation unit level.

.google.iam.admin.v1.LintResult.Level level = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for level to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setLocationOffset(int value)

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;

Parameter
Name Description
value int

The locationOffset to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LintResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LintResult.Builder
Overrides

setSeverity(LintResult.Severity value)

public LintResult.Builder setSeverity(LintResult.Severity value)

The validation unit severity.

.google.iam.admin.v1.LintResult.Severity severity = 3;

Parameter
Name Description
value LintResult.Severity

The severity to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setSeverityValue(int value)

public LintResult.Builder setSeverityValue(int value)

The validation unit severity.

.google.iam.admin.v1.LintResult.Severity severity = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for severity to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LintResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LintResult.Builder
Overrides

setValidationUnitName(String value)

public LintResult.Builder setValidationUnitName(String value)

The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck".

string validation_unit_name = 2;

Parameter
Name Description
value String

The validationUnitName to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.

setValidationUnitNameBytes(ByteString value)

public LintResult.Builder setValidationUnitNameBytes(ByteString value)

The validation unit name, for instance "lintValidationUnits/ConditionComplexityCheck".

string validation_unit_name = 2;

Parameter
Name Description
value ByteString

The bytes for validationUnitName to set.

Returns
Type Description
LintResult.Builder

This builder for chaining.