Package com.google.cloud.apihub.v1
Class LintResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
com.google.cloud.apihub.v1.LintResponse.Builder
- All Implemented Interfaces:
LintResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LintResponse
public static final class LintResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
implements LintResponseOrBuilder
LintResponse contains the response from the linter.Protobuf type
google.cloud.apihub.v1.LintResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllIssues(Iterable<? extends Issue> values) Optional.addAllSummary(Iterable<? extends LintResponse.SummaryEntry> values) Optional.Optional.addIssues(int index, Issue.Builder builderForValue) Optional.Optional.addIssues(Issue.Builder builderForValue) Optional.Optional.addIssuesBuilder(int index) Optional.addSummary(int index, LintResponse.SummaryEntry value) Optional.addSummary(int index, LintResponse.SummaryEntry.Builder builderForValue) Optional.Optional.addSummary(LintResponse.SummaryEntry.Builder builderForValue) Optional.Optional.addSummaryBuilder(int index) Optional.build()clear()Required.Optional.Required.Required.Required.Optional.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIssues(int index) Optional.getIssuesBuilder(int index) Optional.Optional.intOptional.Optional.getIssuesOrBuilder(int index) Optional.List<? extends IssueOrBuilder>Optional.Required.intRequired.Required.com.google.protobuf.ByteStringRequired.getState()Required.intRequired.getSummary(int index) Optional.getSummaryBuilder(int index) Optional.Optional.intOptional.Optional.getSummaryOrBuilder(int index) Optional.List<? extends LintResponse.SummaryEntryOrBuilder>Optional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Required.mergeFrom(LintResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeIssues(int index) Optional.removeSummary(int index) Optional.setCreateTime(com.google.protobuf.Timestamp value) Required.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.Optional.setIssues(int index, Issue.Builder builderForValue) Optional.Required.setLinterValue(int value) Required.Required.setSourceBytes(com.google.protobuf.ByteString value) Required.Required.setStateValue(int value) Required.setSummary(int index, LintResponse.SummaryEntry value) Optional.setSummary(int index, LintResponse.SummaryEntry.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LintResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder>
-
mergeFrom
public LintResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LintResponse.Builder>- Throws:
IOException
-
getIssuesList
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIssuesListin interfaceLintResponseOrBuilder
-
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];- Specified by:
getIssuesCountin interfaceLintResponseOrBuilder
-
getIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIssuesin interfaceLintResponseOrBuilder
-
setIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
setIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addAllIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
clearIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
removeIssues
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getIssuesBuilder
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getIssuesOrBuilder
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIssuesOrBuilderin interfaceLintResponseOrBuilder
-
getIssuesOrBuilderList
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIssuesOrBuilderListin interfaceLintResponseOrBuilder
-
addIssuesBuilder
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
addIssuesBuilder
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getIssuesBuilderList
Optional. Array of issues found in the analyzed document.
repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL]; -
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];- Specified by:
getSummaryListin interfaceLintResponseOrBuilder
-
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];- Specified by:
getSummaryCountin interfaceLintResponseOrBuilder
-
getSummary
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];- Specified by:
getSummaryin interfaceLintResponseOrBuilder
-
setSummary
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]; -
setSummary
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]; -
addSummary
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]; -
addSummary
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]; -
addSummary
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]; -
addSummary
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]; -
addAllSummary
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]; -
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]; -
removeSummary
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]; -
getSummaryBuilder
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]; -
getSummaryOrBuilder
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];- Specified by:
getSummaryOrBuilderin interfaceLintResponseOrBuilder
-
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];- Specified by:
getSummaryOrBuilderListin interfaceLintResponseOrBuilder
-
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]; -
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]; -
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]; -
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];- Specified by:
getStateValuein interfaceLintResponseOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Required. Lint state represents success or failure for linting.
.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Required. Lint state represents success or failure for linting.
.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStatein interfaceLintResponseOrBuilder- Returns:
- The state.
-
setState
Required. Lint state represents success or failure for linting.
.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Required. Lint state represents success or failure for linting.
.google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getSource
Required. Name of the linting application.
string source = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourcein interfaceLintResponseOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()Required. Name of the linting application.
string source = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceBytesin interfaceLintResponseOrBuilder- Returns:
- The bytes for source.
-
setSource
Required. Name of the linting application.
string source = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Required. Name of the linting application.
string source = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceBytes
Required. Name of the linting application.
string source = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
getLinterValue
public int getLinterValue()Required. Name of the linter used.
.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLinterValuein interfaceLintResponseOrBuilder- Returns:
- The enum numeric value on the wire for linter.
-
setLinterValue
Required. Name of the linter used.
.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for linter to set.- Returns:
- This builder for chaining.
-
getLinter
Required. Name of the linter used.
.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getLinterin interfaceLintResponseOrBuilder- Returns:
- The linter.
-
setLinter
Required. Name of the linter used.
.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The linter to set.- Returns:
- This builder for chaining.
-
clearLinter
Required. Name of the linter used.
.google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasCreateTimein interfaceLintResponseOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCreateTimein interfaceLintResponseOrBuilder- Returns:
- The createTime.
-
setCreateTime
Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; -
setCreateTime
Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; -
mergeCreateTime
Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; -
clearCreateTime
Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Required. Timestamp when the linting response was generated.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCreateTimeOrBuilderin interfaceLintResponseOrBuilder
-