Class SetFindingStateRequest.Builder (2.42.0)

public static final class SetFindingStateRequest.Builder extends GeneratedMessageV3.Builder<SetFindingStateRequest.Builder> implements SetFindingStateRequestOrBuilder

Request message for updating a finding's state.

Protobuf type google.cloud.securitycenter.v1p1beta1.SetFindingStateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetFindingStateRequest build()
Returns
Type Description
SetFindingStateRequest

buildPartial()

public SetFindingStateRequest buildPartial()
Returns
Type Description
SetFindingStateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SetFindingStateRequest.Builder clearName()

Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".

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

Returns
Type Description
SetFindingStateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public SetFindingStateRequest.Builder clearStartTime()

Required. The time at which the updated state takes effect.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetFindingStateRequest.Builder

clearState()

public SetFindingStateRequest.Builder clearState()

Required. The desired State of the finding.

.google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetFindingStateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SetFindingStateRequest getDefaultInstanceForType()
Returns
Type Description
SetFindingStateRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The relative resource name of the finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/finding/{finding_id}".

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

Returns
Type Description
ByteString

The bytes for name.

getStartTime()

public Timestamp getStartTime()

Required. The time at which the updated state takes effect.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. The time at which the updated state takes effect.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. The time at which the updated state takes effect.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getState()

public Finding.State getState()

Required. The desired State of the finding.

.google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Finding.State

The state.

getStateValue()

public int getStateValue()

Required. The desired State of the finding.

.google.cloud.securitycenter.v1p1beta1.Finding.State state = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasStartTime()

public boolean hasStartTime()

Required. The time at which the updated state takes effect.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetFindingStateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SetFindingStateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input