public final class Issue extends GeneratedMessage implements IssueOrBuilder
Issue contains the details of a single issue found by the linter.
Protobuf type google.cloud.apihub.v1.Issue
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SEVERITY_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Issue getDefaultInstance()
| Returns |
| Type |
Description |
Issue |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Issue.Builder newBuilder()
newBuilder(Issue prototype)
public static Issue.Builder newBuilder(Issue prototype)
| Parameter |
| Name |
Description |
prototype |
Issue
|
public static Issue parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Issue |
|
public static Issue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
parseFrom(byte[] data)
public static Issue parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Issue |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Issue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
parseFrom(ByteString data)
public static Issue parseFrom(ByteString data)
| Returns |
| Type |
Description |
Issue |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Issue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
public static Issue parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Issue |
|
public static Issue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
public static Issue parseFrom(InputStream input)
| Returns |
| Type |
Description |
Issue |
|
public static Issue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
parseFrom(ByteBuffer data)
public static Issue parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Issue |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Issue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Issue |
|
parser()
public static Parser<Issue> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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 |
|
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.
|
getParserForType()
public Parser<Issue> getParserForType()
Overrides
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];
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.
|
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];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Issue.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Issue.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Issue.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides