public static final class Issue.Builder extends GeneratedMessageV3.Builder<Issue.Builder> implements IssueOrBuilderIssue contains the details of a single issue found by the linter.
 Protobuf type google.cloud.apihub.v1.Issue
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Issue.BuilderImplements
IssueOrBuilderStatic 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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        |
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 | 
        intThe 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 | 
        intThe 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 | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
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 | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public Issue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
Issue.Builder | 
        |
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 | 
        |
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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        |
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 | 
        StringThe 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 | 
        ByteStringThe 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 | 
        intThe index to set the value at.  | 
      
value | 
        StringThe 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 | 
        |
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 | 
        SeverityThe 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 | 
        intThe 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 | 
        |