Class RunAssetDiscoveryResponse.Builder (2.52.0)

public static final class RunAssetDiscoveryResponse.Builder extends GeneratedMessageV3.Builder<RunAssetDiscoveryResponse.Builder> implements RunAssetDiscoveryResponseOrBuilder

Response of asset discovery run

Protobuf type google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunAssetDiscoveryResponse build()
Returns
Type Description
RunAssetDiscoveryResponse

buildPartial()

public RunAssetDiscoveryResponse buildPartial()
Returns
Type Description
RunAssetDiscoveryResponse

clear()

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

clearDuration()

public RunAssetDiscoveryResponse.Builder clearDuration()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
Type Description
RunAssetDiscoveryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public RunAssetDiscoveryResponse.Builder clearState()

The state of an asset discovery run.

.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1;

Returns
Type Description
RunAssetDiscoveryResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RunAssetDiscoveryResponse getDefaultInstanceForType()
Returns
Type Description
RunAssetDiscoveryResponse

getDescriptorForType()

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

getDuration()

public Duration getDuration()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
Type Description
DurationOrBuilder

getState()

public RunAssetDiscoveryResponse.State getState()

The state of an asset discovery run.

.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1;

Returns
Type Description
RunAssetDiscoveryResponse.State

The state.

getStateValue()

public int getStateValue()

The state of an asset discovery run.

.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

hasDuration()

public boolean hasDuration()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
Type Description
boolean

Whether the duration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDuration(Duration value)

public RunAssetDiscoveryResponse.Builder mergeDuration(Duration value)

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
RunAssetDiscoveryResponse.Builder

mergeFrom(RunAssetDiscoveryResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDuration(Duration value)

public RunAssetDiscoveryResponse.Builder setDuration(Duration value)

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
RunAssetDiscoveryResponse.Builder

setDuration(Duration.Builder builderForValue)

public RunAssetDiscoveryResponse.Builder setDuration(Duration.Builder builderForValue)

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RunAssetDiscoveryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(RunAssetDiscoveryResponse.State value)

public RunAssetDiscoveryResponse.Builder setState(RunAssetDiscoveryResponse.State value)

The state of an asset discovery run.

.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1;

Parameter
Name Description
value RunAssetDiscoveryResponse.State

The state to set.

Returns
Type Description
RunAssetDiscoveryResponse.Builder

This builder for chaining.

setStateValue(int value)

public RunAssetDiscoveryResponse.Builder setStateValue(int value)

The state of an asset discovery run.

.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryResponse.State state = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
RunAssetDiscoveryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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