Class CrawledUrl.Builder (2.85.0)

public static final class CrawledUrl.Builder extends GeneratedMessage.Builder<CrawledUrl.Builder> 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.v1beta.CrawledUrl

Implements

CrawledUrlOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public CrawledUrl build()
Returns
Type Description
CrawledUrl

buildPartial()

public CrawledUrl buildPartial()
Returns
Type Description
CrawledUrl

clear()

public CrawledUrl.Builder clear()
Returns
Type Description
CrawledUrl.Builder
Overrides

clearBody()

public CrawledUrl.Builder clearBody()

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

string body = 3;

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

clearHttpMethod()

public CrawledUrl.Builder clearHttpMethod()

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

string http_method = 1;

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

clearUrl()

public CrawledUrl.Builder clearUrl()

The URL that was crawled.

string url = 2;

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

getBody()

public String getBody()

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

string body = 3;

Returns
Type Description
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

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

string body = 3;

Returns
Type Description
ByteString

The bytes for body.

getDefaultInstanceForType()

public CrawledUrl getDefaultInstanceForType()
Returns
Type Description
CrawledUrl

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHttpMethod()

public String getHttpMethod()

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

string http_method = 1;

Returns
Type Description
String

The httpMethod.

getHttpMethodBytes()

public ByteString getHttpMethodBytes()

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

string http_method = 1;

Returns
Type Description
ByteString

The bytes for httpMethod.

getUrl()

public String getUrl()

The URL that was crawled.

string url = 2;

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The URL that was crawled.

string url = 2;

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CrawledUrl other)

public CrawledUrl.Builder mergeFrom(CrawledUrl other)
Parameter
Name Description
other CrawledUrl
Returns
Type Description
CrawledUrl.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CrawledUrl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CrawledUrl.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CrawledUrl.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CrawledUrl.Builder
Overrides

setBody(String value)

public CrawledUrl.Builder setBody(String value)

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

string body = 3;

Parameter
Name Description
value String

The body to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public CrawledUrl.Builder setBodyBytes(ByteString value)

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

string body = 3;

Parameter
Name Description
value ByteString

The bytes for body to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

setHttpMethod(String value)

public CrawledUrl.Builder setHttpMethod(String value)

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

string http_method = 1;

Parameter
Name Description
value String

The httpMethod to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

setHttpMethodBytes(ByteString value)

public CrawledUrl.Builder setHttpMethodBytes(ByteString value)

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

string http_method = 1;

Parameter
Name Description
value ByteString

The bytes for httpMethod to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

setUrl(String value)

public CrawledUrl.Builder setUrl(String value)

The URL that was crawled.

string url = 2;

Parameter
Name Description
value String

The url to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public CrawledUrl.Builder setUrlBytes(ByteString value)

The URL that was crawled.

string url = 2;

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.