Class LintResponse.Builder (0.6.0)

public static final class LintResponse.Builder extends GeneratedMessageV3.Builder<LintResponse.Builder> implements LintResponseOrBuilder

LintResponse contains the response from the linter.

Protobuf type google.cloud.apihub.v1.LintResponse

Static Methods

getDescriptor()

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

Methods

addAllIssues(Iterable<? extends Issue> values)

public LintResponse.Builder addAllIssues(Iterable<? extends Issue> values)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.apihub.v1.Issue>
Returns
Type Description
LintResponse.Builder

addAllSummary(Iterable<? extends LintResponse.SummaryEntry> values)

public LintResponse.Builder addAllSummary(Iterable<? extends LintResponse.SummaryEntry> values)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.apihub.v1.LintResponse.SummaryEntry>
Returns
Type Description
LintResponse.Builder

addIssues(Issue value)

public LintResponse.Builder addIssues(Issue value)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Issue
Returns
Type Description
LintResponse.Builder

addIssues(Issue.Builder builderForValue)

public LintResponse.Builder addIssues(Issue.Builder builderForValue)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

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

addIssues(int index, Issue value)

public LintResponse.Builder addIssues(int index, Issue value)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Issue
Returns
Type Description
LintResponse.Builder

addIssues(int index, Issue.Builder builderForValue)

public LintResponse.Builder addIssues(int index, Issue.Builder builderForValue)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Issue.Builder
Returns
Type Description
LintResponse.Builder

addIssuesBuilder()

public Issue.Builder addIssuesBuilder()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Issue.Builder

addIssuesBuilder(int index)

public Issue.Builder addIssuesBuilder(int index)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Issue.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSummary(LintResponse.SummaryEntry value)

public LintResponse.Builder addSummary(LintResponse.SummaryEntry value)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LintResponse.SummaryEntry
Returns
Type Description
LintResponse.Builder

addSummary(LintResponse.SummaryEntry.Builder builderForValue)

public LintResponse.Builder addSummary(LintResponse.SummaryEntry.Builder builderForValue)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue LintResponse.SummaryEntry.Builder
Returns
Type Description
LintResponse.Builder

addSummary(int index, LintResponse.SummaryEntry value)

public LintResponse.Builder addSummary(int index, LintResponse.SummaryEntry value)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value LintResponse.SummaryEntry
Returns
Type Description
LintResponse.Builder

addSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)

public LintResponse.Builder addSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue LintResponse.SummaryEntry.Builder
Returns
Type Description
LintResponse.Builder

addSummaryBuilder()

public LintResponse.SummaryEntry.Builder addSummaryBuilder()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LintResponse.SummaryEntry.Builder

addSummaryBuilder(int index)

public LintResponse.SummaryEntry.Builder addSummaryBuilder(int index)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.SummaryEntry.Builder

build()

public LintResponse build()
Returns
Type Description
LintResponse

buildPartial()

public LintResponse buildPartial()
Returns
Type Description
LintResponse

clear()

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

clearCreateTime()

public LintResponse.Builder clearCreateTime()

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LintResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIssues()

public LintResponse.Builder clearIssues()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LintResponse.Builder

clearLinter()

public LintResponse.Builder clearLinter()

Required. Name of the linter used.

.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LintResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public LintResponse.Builder clearSource()

Required. Name of the linting application.

string source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LintResponse.Builder

This builder for chaining.

clearState()

public LintResponse.Builder clearState()

Required. Lint state represents success or failure for linting.

.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LintResponse.Builder

This builder for chaining.

clearSummary()

public LintResponse.Builder clearSummary()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LintResponse.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public LintResponse getDefaultInstanceForType()
Returns
Type Description
LintResponse

getDescriptorForType()

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

getIssues(int index)

public Issue getIssues(int index)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Issue

getIssuesBuilder(int index)

public Issue.Builder getIssuesBuilder(int index)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Issue.Builder

getIssuesBuilderList()

public List<Issue.Builder> getIssuesBuilderList()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getIssuesCount()

public int getIssuesCount()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getIssuesList()

public List<Issue> getIssuesList()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Issue>

getIssuesOrBuilder(int index)

public IssueOrBuilder getIssuesOrBuilder(int index)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IssueOrBuilder

getIssuesOrBuilderList()

public List<? extends IssueOrBuilder> getIssuesOrBuilderList()

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.IssueOrBuilder>

getLinter()

public Linter getLinter()

Required. Name of the linter used.

.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Linter

The linter.

getLinterValue()

public int getLinterValue()

Required. Name of the linter used.

.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for linter.

getSource()

public String getSource()

Required. Name of the linting application.

string source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Required. Name of the linting application.

string source = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for source.

getState()

public LintState getState()

Required. Lint state represents success or failure for linting.

.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LintState

The state.

getStateValue()

public int getStateValue()

Required. Lint state represents success or failure for linting.

.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSummary(int index)

public LintResponse.SummaryEntry getSummary(int index)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.SummaryEntry

getSummaryBuilder(int index)

public LintResponse.SummaryEntry.Builder getSummaryBuilder(int index)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.SummaryEntry.Builder

getSummaryBuilderList()

public List<LintResponse.SummaryEntry.Builder> getSummaryBuilderList()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSummaryCount()

public int getSummaryCount()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSummaryList()

public List<LintResponse.SummaryEntry> getSummaryList()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SummaryEntry>

getSummaryOrBuilder(int index)

public LintResponse.SummaryEntryOrBuilder getSummaryOrBuilder(int index)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.SummaryEntryOrBuilder

getSummaryOrBuilderList()

public List<? extends LintResponse.SummaryEntryOrBuilder> getSummaryOrBuilderList()

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.apihub.v1.LintResponse.SummaryEntryOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public LintResponse.Builder mergeCreateTime(Timestamp value)

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
LintResponse.Builder

mergeFrom(LintResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeIssues(int index)

public LintResponse.Builder removeIssues(int index)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.Builder

removeSummary(int index)

public LintResponse.Builder removeSummary(int index)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LintResponse.Builder

setCreateTime(Timestamp value)

public LintResponse.Builder setCreateTime(Timestamp value)

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
LintResponse.Builder

setCreateTime(Timestamp.Builder builderForValue)

public LintResponse.Builder setCreateTime(Timestamp.Builder builderForValue)

Required. Timestamp when the linting response was generated.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LintResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIssues(int index, Issue value)

public LintResponse.Builder setIssues(int index, Issue value)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Issue
Returns
Type Description
LintResponse.Builder

setIssues(int index, Issue.Builder builderForValue)

public LintResponse.Builder setIssues(int index, Issue.Builder builderForValue)

Optional. Array of issues found in the analyzed document.

repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Issue.Builder
Returns
Type Description
LintResponse.Builder

setLinter(Linter value)

public LintResponse.Builder setLinter(Linter value)

Required. Name of the linter used.

.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Linter

The linter to set.

Returns
Type Description
LintResponse.Builder

This builder for chaining.

setLinterValue(int value)

public LintResponse.Builder setLinterValue(int value)

Required. Name of the linter used.

.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
LintResponse.Builder

This builder for chaining.

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

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

setSource(String value)

public LintResponse.Builder setSource(String value)

Required. Name of the linting application.

string source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The source to set.

Returns
Type Description
LintResponse.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public LintResponse.Builder setSourceBytes(ByteString value)

Required. Name of the linting application.

string source = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
LintResponse.Builder

This builder for chaining.

setState(LintState value)

public LintResponse.Builder setState(LintState value)

Required. Lint state represents success or failure for linting.

.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value LintState

The state to set.

Returns
Type Description
LintResponse.Builder

This builder for chaining.

setStateValue(int value)

public LintResponse.Builder setStateValue(int value)

Required. Lint state represents success or failure for linting.

.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
LintResponse.Builder

This builder for chaining.

setSummary(int index, LintResponse.SummaryEntry value)

public LintResponse.Builder setSummary(int index, LintResponse.SummaryEntry value)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value LintResponse.SummaryEntry
Returns
Type Description
LintResponse.Builder

setSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)

public LintResponse.Builder setSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)

Optional. Summary of all issue types and counts for each severity level.

repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue LintResponse.SummaryEntry.Builder
Returns
Type Description
LintResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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