Class CrawledUrl (2.20.0)

public final class CrawledUrl extends GeneratedMessageV3 implements CrawledUrlOrBuilder

A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web Security Scanner Service crawls the web applications, following all links within the scope of sites, to find the URLs to test against.

Protobuf type google.cloud.websecurityscanner.v1alpha.CrawledUrl

Implements

CrawledUrlOrBuilder

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

HTTP_METHOD_FIELD_NUMBER

public static final int HTTP_METHOD_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CrawledUrl getDefaultInstance()
Returns
TypeDescription
CrawledUrl

getDescriptor()

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

newBuilder()

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

newBuilder(CrawledUrl prototype)

public static CrawledUrl.Builder newBuilder(CrawledUrl prototype)
Parameter
NameDescription
prototypeCrawledUrl
Returns
TypeDescription
CrawledUrl.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBody()

public String getBody()

Output only. The body of the request that was used to visit the URL.

string body = 3;

Returns
TypeDescription
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

Output only. The body of the request that was used to visit the URL.

string body = 3;

Returns
TypeDescription
ByteString

The bytes for body.

getDefaultInstanceForType()

public CrawledUrl getDefaultInstanceForType()
Returns
TypeDescription
CrawledUrl

getHttpMethod()

public String getHttpMethod()

Output only. The http method of the request that was used to visit the URL, in uppercase.

string http_method = 1;

Returns
TypeDescription
String

The httpMethod.

getHttpMethodBytes()

public ByteString getHttpMethodBytes()

Output only. The http method of the request that was used to visit the URL, in uppercase.

string http_method = 1;

Returns
TypeDescription
ByteString

The bytes for httpMethod.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUrl()

public String getUrl()

Output only. The URL that was crawled.

string url = 2;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Output only. The URL that was crawled.

string url = 2;

Returns
TypeDescription
ByteString

The bytes for url.

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 CrawledUrl.Builder newBuilderForType()
Returns
TypeDescription
CrawledUrl.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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