Class SetMuteRequest.Builder (2.53.0)

public static final class SetMuteRequest.Builder extends GeneratedMessageV3.Builder<SetMuteRequest.Builder> implements SetMuteRequestOrBuilder

Request message for updating a finding's mute status.

Protobuf type google.cloud.securitycenter.v1.SetMuteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetMuteRequest build()
Returns
Type Description
SetMuteRequest

buildPartial()

public SetMuteRequest buildPartial()
Returns
Type Description
SetMuteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMute()

public SetMuteRequest.Builder clearMute()

Required. The desired state of the Mute.

.google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

clearName()

public SetMuteRequest.Builder clearName()

Required. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

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

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SetMuteRequest getDefaultInstanceForType()
Returns
Type Description
SetMuteRequest

getDescriptorForType()

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

getMute()

public Finding.Mute getMute()

Required. The desired state of the Mute.

.google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Finding.Mute

The mute.

getMuteValue()

public int getMuteValue()

Required. The desired state of the Mute.

.google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for mute.

getName()

public String getName()

Required. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{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. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetMuteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMute(Finding.Mute value)

public SetMuteRequest.Builder setMute(Finding.Mute value)

Required. The desired state of the Mute.

.google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Finding.Mute

The mute to set.

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

setMuteValue(int value)

public SetMuteRequest.Builder setMuteValue(int value)

Required. The desired state of the Mute.

.google.cloud.securitycenter.v1.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

setName(String value)

public SetMuteRequest.Builder setName(String value)

Required. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetMuteRequest.Builder setNameBytes(ByteString value)

Required. The relative resource name of the finding. Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", "folders/{folder_id}/sources/{source_id}/findings/{finding_id}", "projects/{project_id}/sources/{source_id}/findings/{finding_id}".

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SetMuteRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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