Class Xss (2.36.0)

public final class Xss extends GeneratedMessageV3 implements XssOrBuilder

Information reported for an XSS.

Protobuf type google.cloud.websecurityscanner.v1beta.Xss

Implements

XssOrBuilder

Static Fields

ERROR_MESSAGE_FIELD_NUMBER

public static final int ERROR_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

STACK_TRACES_FIELD_NUMBER

public static final int STACK_TRACES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Xss getDefaultInstance()
Returns
TypeDescription
Xss

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Xss.Builder newBuilder()
Returns
TypeDescription
Xss.Builder

newBuilder(Xss prototype)

public static Xss.Builder newBuilder(Xss prototype)
Parameter
NameDescription
prototypeXss
Returns
TypeDescription
Xss.Builder

parseDelimitedFrom(InputStream input)

public static Xss parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Xss parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Xss parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Xss parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Xss parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Xss parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Xss parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Xss parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Xss parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Xss parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Xss parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Xss parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Xss
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Xss> parser()
Returns
TypeDescription
Parser<Xss>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Xss getDefaultInstanceForType()
Returns
TypeDescription
Xss

getErrorMessage()

public String getErrorMessage()

An error message generated by a javascript breakage.

string error_message = 2;

Returns
TypeDescription
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

An error message generated by a javascript breakage.

string error_message = 2;

Returns
TypeDescription
ByteString

The bytes for errorMessage.

getParserForType()

public Parser<Xss> getParserForType()
Returns
TypeDescription
Parser<Xss>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStackTraces(int index)

public String getStackTraces(int index)

Stack traces leading to the point where the XSS occurred.

repeated string stack_traces = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The stackTraces at the given index.

getStackTracesBytes(int index)

public ByteString getStackTracesBytes(int index)

Stack traces leading to the point where the XSS occurred.

repeated string stack_traces = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the stackTraces at the given index.

getStackTracesCount()

public int getStackTracesCount()

Stack traces leading to the point where the XSS occurred.

repeated string stack_traces = 1;

Returns
TypeDescription
int

The count of stackTraces.

getStackTracesList()

public ProtocolStringList getStackTracesList()

Stack traces leading to the point where the XSS occurred.

repeated string stack_traces = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the stackTraces.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Xss.Builder newBuilderForType()
Returns
TypeDescription
Xss.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Xss.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Xss.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Xss.Builder toBuilder()
Returns
TypeDescription
Xss.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException