Class StopScanRunRequest.Builder (2.7.0)

public static final class StopScanRunRequest.Builder extends GeneratedMessageV3.Builder<StopScanRunRequest.Builder> implements StopScanRunRequestOrBuilder

Request for the StopScanRun method.

Protobuf type google.cloud.websecurityscanner.v1alpha.StopScanRunRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StopScanRunRequest build()
Returns
TypeDescription
StopScanRunRequest

buildPartial()

public StopScanRunRequest buildPartial()
Returns
TypeDescription
StopScanRunRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public StopScanRunRequest.Builder clearName()

Required. The resource name of the ScanRun to be stopped. 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
StopScanRunRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StopScanRunRequest getDefaultInstanceForType()
Returns
TypeDescription
StopScanRunRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the ScanRun to be stopped. 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 stopped. 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(StopScanRunRequest other)

public StopScanRunRequest.Builder mergeFrom(StopScanRunRequest other)
Parameter
NameDescription
otherStopScanRunRequest
Returns
TypeDescription
StopScanRunRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public StopScanRunRequest.Builder setName(String value)

Required. The resource name of the ScanRun to be stopped. 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
StopScanRunRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public StopScanRunRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the ScanRun to be stopped. 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
StopScanRunRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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