Class LintResponse (0.4.0)

public final class LintResponse extends GeneratedMessageV3 implements LintResponseOrBuilder

LintResponse contains the response from the linter.

Protobuf type google.cloud.apihub.v1.LintResponse

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ISSUES_FIELD_NUMBER

public static final int ISSUES_FIELD_NUMBER
Field Value
Type Description
int

LINTER_FIELD_NUMBER

public static final int LINTER_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUMMARY_FIELD_NUMBER

public static final int SUMMARY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LintResponse getDefaultInstance()
Returns
Type Description
LintResponse

getDescriptor()

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

newBuilder()

public static LintResponse.Builder newBuilder()
Returns
Type Description
LintResponse.Builder

newBuilder(LintResponse prototype)

public static LintResponse.Builder newBuilder(LintResponse prototype)
Parameter
Name Description
prototype LintResponse
Returns
Type Description
LintResponse.Builder

parseDelimitedFrom(InputStream input)

public static LintResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LintResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LintResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LintResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LintResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LintResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LintResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LintResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LintResponse> parser()
Returns
Type Description
Parser<LintResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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

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.

getParserForType()

public Parser<LintResponse> getParserForType()
Returns
Type Description
Parser<LintResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LintResponse.Builder newBuilderForType()
Returns
Type Description
LintResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LintResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LintResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LintResponse.Builder toBuilder()
Returns
Type Description
LintResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException