Class RunAssetDiscoveryResponse.Builder (2.13.0)

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

Response of asset discovery run

Protobuf type google.cloud.securitycenter.v1p1beta1.RunAssetDiscoveryResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunAssetDiscoveryResponse build()
Returns
TypeDescription
RunAssetDiscoveryResponse

buildPartial()

public RunAssetDiscoveryResponse buildPartial()
Returns
TypeDescription
RunAssetDiscoveryResponse

clear()

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

clearDuration()

public RunAssetDiscoveryResponse.Builder clearDuration()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
RunAssetDiscoveryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public RunAssetDiscoveryResponse.Builder clearState()

The state of an asset discovery run.

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

Returns
TypeDescription
RunAssetDiscoveryResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RunAssetDiscoveryResponse getDefaultInstanceForType()
Returns
TypeDescription
RunAssetDiscoveryResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDuration()

public Duration getDuration()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

The duration between asset discovery run start and end

.google.protobuf.Duration duration = 2;

Returns
TypeDescription
DurationOrBuilder

getState()

public RunAssetDiscoveryResponse.State getState()

The state of an asset discovery run.

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

Returns
TypeDescription
RunAssetDiscoveryResponse.State

The state.

getStateValue()

public int getStateValue()

The state of an asset discovery run.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the duration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
RunAssetDiscoveryResponse.Builder

mergeFrom(RunAssetDiscoveryResponse other)

public RunAssetDiscoveryResponse.Builder mergeFrom(RunAssetDiscoveryResponse other)
Parameter
NameDescription
otherRunAssetDiscoveryResponse
Returns
TypeDescription
RunAssetDiscoveryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(RunAssetDiscoveryResponse.State value)

public RunAssetDiscoveryResponse.Builder setState(RunAssetDiscoveryResponse.State value)

The state of an asset discovery run.

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

Parameter
NameDescription
valueRunAssetDiscoveryResponse.State

The state to set.

Returns
TypeDescription
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.v1p1beta1.RunAssetDiscoveryResponse.State state = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RunAssetDiscoveryResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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