Class SetFindingStateRequest.Builder (2.7.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetFindingStateRequest build()
Returns
TypeDescription
SetFindingStateRequest

buildPartial()

public SetFindingStateRequest buildPartial()
Returns
TypeDescription
SetFindingStateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SetFindingStateRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SetFindingStateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SetFindingStateRequest getDefaultInstanceForType()
Returns
TypeDescription
SetFindingStateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetFindingStateRequest other)

public SetFindingStateRequest.Builder mergeFrom(SetFindingStateRequest other)
Parameter
NameDescription
otherSetFindingStateRequest
Returns
TypeDescription
SetFindingStateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public SetFindingStateRequest.Builder mergeStartTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SetFindingStateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SetFindingStateRequest.Builder setName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetFindingStateRequest.Builder setNameBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

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

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

setStartTime(Timestamp value)

public SetFindingStateRequest.Builder setStartTime(Timestamp value)

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

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SetFindingStateRequest.Builder

setStartTime(Timestamp.Builder builderForValue)

public SetFindingStateRequest.Builder setStartTime(Timestamp.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SetFindingStateRequest.Builder

setState(Finding.State value)

public SetFindingStateRequest.Builder setState(Finding.State value)

Required. The desired State of the finding.

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

Parameter
NameDescription
valueFinding.State

The state to set.

Returns
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

setStateValue(int value)

public SetFindingStateRequest.Builder setStateValue(int value)

Required. The desired State of the finding.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SetFindingStateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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