Class GetScanRunRequest.Builder (2.8.0)

public static final class GetScanRunRequest.Builder extends GeneratedMessageV3.Builder<GetScanRunRequest.Builder> implements GetScanRunRequestOrBuilder

Request for the GetScanRun method.

Protobuf type google.cloud.websecurityscanner.v1alpha.GetScanRunRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetScanRunRequest build()
Returns
TypeDescription
GetScanRunRequest

buildPartial()

public GetScanRunRequest buildPartial()
Returns
TypeDescription
GetScanRunRequest

clear()

public GetScanRunRequest.Builder clear()
Returns
TypeDescription
GetScanRunRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetScanRunRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetScanRunRequest.Builder
Overrides

clearName()

public GetScanRunRequest.Builder clearName()

Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetScanRunRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GetScanRunRequest.Builder clone()
Returns
TypeDescription
GetScanRunRequest.Builder
Overrides

getDefaultInstanceForType()

public GetScanRunRequest getDefaultInstanceForType()
Returns
TypeDescription
GetScanRunRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetScanRunRequest other)

public GetScanRunRequest.Builder mergeFrom(GetScanRunRequest other)
Parameter
NameDescription
otherGetScanRunRequest
Returns
TypeDescription
GetScanRunRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetScanRunRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetScanRunRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetScanRunRequest.Builder setName(String value)

Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetScanRunRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetScanRunRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetScanRunRequest.Builder

This builder for chaining.

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

public GetScanRunRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetScanRunRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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