Class CrawledUrl.Builder (2.5.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.v1alpha.CrawledUrl

Implements

CrawledUrlOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CrawledUrl.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CrawledUrl.Builder
Overrides

build()

public CrawledUrl build()
Returns
TypeDescription
CrawledUrl

buildPartial()

public CrawledUrl buildPartial()
Returns
TypeDescription
CrawledUrl

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CrawledUrl.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CrawledUrl.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CrawledUrl.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CrawledUrl.Builder
Overrides

clearUrl()

public CrawledUrl.Builder clearUrl()

Output only. The URL that was crawled.

string url = 2;

Returns
TypeDescription
CrawledUrl.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CrawledUrl other)

public CrawledUrl.Builder mergeFrom(CrawledUrl other)
Parameter
NameDescription
otherCrawledUrl
Returns
TypeDescription
CrawledUrl.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CrawledUrl.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CrawledUrl.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CrawledUrl.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CrawledUrl.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CrawledUrl.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The body to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for body to set.

Returns
TypeDescription
CrawledUrl.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CrawledUrl.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The httpMethod to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for httpMethod to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CrawledUrl.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CrawledUrl.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CrawledUrl.Builder
Overrides

setUrl(String value)

public CrawledUrl.Builder setUrl(String value)

Output only. The URL that was crawled.

string url = 2;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
CrawledUrl.Builder

This builder for chaining.