Class LintResult.Builder (3.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LintResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LintResult.Builder
Overrides

build()

public LintResult build()
Returns
TypeDescription
LintResult

buildPartial()

public LintResult buildPartial()
Returns
TypeDescription
LintResult

clear()

public LintResult.Builder clear()
Returns
TypeDescription
LintResult.Builder
Overrides

clearDebugMessage()

public LintResult.Builder clearDebugMessage()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
TypeDescription
LintResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LintResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
LintResult.Builder

This builder for chaining.

clearLevel()

public LintResult.Builder clearLevel()

The validation unit level.

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

Returns
TypeDescription
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
TypeDescription
LintResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LintResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LintResult.Builder
Overrides

clearSeverity()

public LintResult.Builder clearSeverity()

The validation unit severity.

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

Returns
TypeDescription
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
TypeDescription
LintResult.Builder

This builder for chaining.

clone()

public LintResult.Builder clone()
Returns
TypeDescription
LintResult.Builder
Overrides

getDebugMessage()

public String getDebugMessage()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
TypeDescription
String

The debugMessage.

getDebugMessageBytes()

public ByteString getDebugMessageBytes()

Human readable debug message associated with the issue.

string debug_message = 7;

Returns
TypeDescription
ByteString

The bytes for debugMessage.

getDefaultInstanceForType()

public LintResult getDefaultInstanceForType()
Returns
TypeDescription
LintResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for fieldName.

getLevel()

public LintResult.Level getLevel()

The validation unit level.

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

Returns
TypeDescription
LintResult.Level

The level.

getLevelValue()

public int getLevelValue()

The validation unit level.

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

Returns
TypeDescription
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
TypeDescription
int

The locationOffset.

getSeverity()

public LintResult.Severity getSeverity()

The validation unit severity.

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

Returns
TypeDescription
LintResult.Severity

The severity.

getSeverityValue()

public int getSeverityValue()

The validation unit severity.

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

Returns
TypeDescription
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
TypeDescription
String

The validationUnitName.

getValidationUnitNameBytes()

public ByteString getValidationUnitNameBytes()

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

string validation_unit_name = 2;

Returns
TypeDescription
ByteString

The bytes for validationUnitName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LintResult other)

public LintResult.Builder mergeFrom(LintResult other)
Parameter
NameDescription
otherLintResult
Returns
TypeDescription
LintResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LintResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LintResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LintResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LintResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LintResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The debugMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for debugMessage to set.

Returns
TypeDescription
LintResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LintResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fieldName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fieldName to set.

Returns
TypeDescription
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
NameDescription
valueLintResult.Level

The level to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueint

The locationOffset to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueLintResult.Severity

The severity to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
LintResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LintResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The validationUnitName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for validationUnitName to set.

Returns
TypeDescription
LintResult.Builder

This builder for chaining.