Class CrawledUrl.Builder (2.45.0)

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

Implements

CrawledUrlOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CrawledUrl.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CrawledUrl.Builder
Overrides

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()

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

string body = 3;

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CrawledUrl.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CrawledUrl.Builder
Overrides

clearHttpMethod()

public CrawledUrl.Builder clearHttpMethod()

Output only. 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.

clearOneof(Descriptors.OneofDescriptor oneof)

public CrawledUrl.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CrawledUrl.Builder
Overrides

clearUrl()

public CrawledUrl.Builder clearUrl()

Output only. The URL that was crawled.

string url = 2;

Returns
Type Description
CrawledUrl.Builder

This builder for chaining.

clone()

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

getBody()

public String getBody()

Output only. 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()

Output only. 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()

Output only. 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()

Output only. 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()

Output only. The URL that was crawled.

string url = 2;

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Output only. The URL that was crawled.

string url = 2;

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CrawledUrl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CrawledUrl.Builder
Overrides

setBody(String value)

public CrawledUrl.Builder setBody(String value)

Output only. 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)

Output only. 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.

setField(Descriptors.FieldDescriptor field, Object value)

public CrawledUrl.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CrawledUrl.Builder
Overrides

setHttpMethod(String value)

public CrawledUrl.Builder setHttpMethod(String value)

Output only. 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)

Output only. 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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CrawledUrl.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CrawledUrl.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CrawledUrl.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CrawledUrl.Builder
Overrides

setUrl(String value)

public CrawledUrl.Builder setUrl(String value)

Output only. 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)

Output only. 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.