Class Issue.Builder (0.6.0)

public static final class Issue.Builder extends GeneratedMessageV3.Builder<Issue.Builder> implements IssueOrBuilder

Issue contains the details of a single issue found by the linter.

Protobuf type google.cloud.apihub.v1.Issue

Implements

IssueOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllPath(Iterable<String> values)

public Issue.Builder addAllPath(Iterable<String> values)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The path to add.

Returns
Type Description
Issue.Builder

This builder for chaining.

addPath(String value)

public Issue.Builder addPath(String value)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The path to add.

Returns
Type Description
Issue.Builder

This builder for chaining.

addPathBytes(ByteString value)

public Issue.Builder addPathBytes(ByteString value)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the path to add.

Returns
Type Description
Issue.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Issue build()
Returns
Type Description
Issue

buildPartial()

public Issue buildPartial()
Returns
Type Description
Issue

clear()

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

clearCode()

public Issue.Builder clearCode()

Required. Rule code unique to each rule defined in linter.

string code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public Issue.Builder clearMessage()

Required. Human-readable message describing the issue found by the linter.

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public Issue.Builder clearPath()

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

This builder for chaining.

clearRange()

public Issue.Builder clearRange()

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

clearSeverity()

public Issue.Builder clearSeverity()

Required. Severity level of the rule violation.

.google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Issue.Builder

This builder for chaining.

clone()

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

getCode()

public String getCode()

Required. Rule code unique to each rule defined in linter.

string code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

Required. Rule code unique to each rule defined in linter.

string code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public Issue getDefaultInstanceForType()
Returns
Type Description
Issue

getDescriptorForType()

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

getMessage()

public String getMessage()

Required. Human-readable message describing the issue found by the linter.

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Required. Human-readable message describing the issue found by the linter.

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for message.

getPath(int index)

public String getPath(int index)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The path at the given index.

getPathBytes(int index)

public ByteString getPathBytes(int index)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the path at the given index.

getPathCount()

public int getPathCount()

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of path.

getPathList()

public ProtocolStringList getPathList()

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the path.

getRange()

public Range getRange()

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Range

The range.

getRangeBuilder()

public Range.Builder getRangeBuilder()

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Range.Builder

getRangeOrBuilder()

public RangeOrBuilder getRangeOrBuilder()

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RangeOrBuilder

getSeverity()

public Severity getSeverity()

Required. Severity level of the rule violation.

.google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Severity

The severity.

getSeverityValue()

public int getSeverityValue()

Required. Severity level of the rule violation.

.google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for severity.

hasRange()

public boolean hasRange()

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the range field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Issue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(Range value)

public Issue.Builder mergeRange(Range value)

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Range
Returns
Type Description
Issue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCode(String value)

public Issue.Builder setCode(String value)

Required. Rule code unique to each rule defined in linter.

string code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The code to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public Issue.Builder setCodeBytes(ByteString value)

Required. Rule code unique to each rule defined in linter.

string code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public Issue.Builder setMessage(String value)

Required. Human-readable message describing the issue found by the linter.

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The message to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Issue.Builder setMessageBytes(ByteString value)

Required. Human-readable message describing the issue found by the linter.

string message = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setPath(int index, String value)

public Issue.Builder setPath(int index, String value)

Required. An array of strings indicating the location in the analyzed document where the rule was triggered.

repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The path to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setRange(Range value)

public Issue.Builder setRange(Range value)

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Range
Returns
Type Description
Issue.Builder

setRange(Range.Builder builderForValue)

public Issue.Builder setRange(Range.Builder builderForValue)

Required. Object describing where in the file the issue was found.

.google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Range.Builder
Returns
Type Description
Issue.Builder

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

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

setSeverity(Severity value)

public Issue.Builder setSeverity(Severity value)

Required. Severity level of the rule violation.

.google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Severity

The severity to set.

Returns
Type Description
Issue.Builder

This builder for chaining.

setSeverityValue(int value)

public Issue.Builder setSeverityValue(int value)

Required. Severity level of the rule violation.

.google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
Issue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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