Class SetMuteRequest.Builder (2.45.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.v2.SetMuteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetMuteRequest build()
Returns
TypeDescription
SetMuteRequest

buildPartial()

public SetMuteRequest buildPartial()
Returns
TypeDescription
SetMuteRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMute()

public SetMuteRequest.Builder clearMute()

Required. The desired state of the Mute.

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

Returns
TypeDescription
SetMuteRequest.Builder

This builder for chaining.

clearName()

public SetMuteRequest.Builder clearName()

Required. The relative resource name of the finding. If no location is specified, finding is assumed to be in global. The following list shows some examples:

+ organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id} + folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
  • projects/{project_id}/sources/{source_id}/findings/{finding_id} + projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

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

Returns
TypeDescription
SetMuteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SetMuteRequest getDefaultInstanceForType()
Returns
TypeDescription
SetMuteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMute()

public Finding.Mute getMute()

Required. The desired state of the Mute.

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

Returns
TypeDescription
Finding.Mute

The mute.

getMuteValue()

public int getMuteValue()

Required. The desired state of the Mute.

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

Returns
TypeDescription
int

The enum numeric value on the wire for mute.

getName()

public String getName()

Required. The relative resource name of the finding. If no location is specified, finding is assumed to be in global. The following list shows some examples:

+ organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id} + folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
  • projects/{project_id}/sources/{source_id}/findings/{finding_id} + projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{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. If no location is specified, finding is assumed to be in global. The following list shows some examples:

+ organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id} + folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
  • projects/{project_id}/sources/{source_id}/findings/{finding_id} + projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetMuteRequest other)

public SetMuteRequest.Builder mergeFrom(SetMuteRequest other)
Parameter
NameDescription
otherSetMuteRequest
Returns
TypeDescription
SetMuteRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMute(Finding.Mute value)

public SetMuteRequest.Builder setMute(Finding.Mute value)

Required. The desired state of the Mute.

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

Parameter
NameDescription
valueFinding.Mute

The mute to set.

Returns
TypeDescription
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.v2.Finding.Mute mute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SetMuteRequest.Builder

This builder for chaining.

setName(String value)

public SetMuteRequest.Builder setName(String value)

Required. The relative resource name of the finding. If no location is specified, finding is assumed to be in global. The following list shows some examples:

+ organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id} + folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
  • projects/{project_id}/sources/{source_id}/findings/{finding_id} + projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SetMuteRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetMuteRequest.Builder setNameBytes(ByteString value)

Required. The relative resource name of the finding. If no location is specified, finding is assumed to be in global. The following list shows some examples:

+ organizations/{organization_id}/sources/{source_id}/findings/{finding_id} + organizations/{organization_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}

  • folders/{folder_id}/sources/{source_id}/findings/{finding_id} + folders/{folder_id}/sources/{source_id}/locations/{location_id}/findings/{finding_id}
  • projects/{project_id}/sources/{source_id}/findings/{finding_id} + projects/{project_id}/sources/{source_id}/locations/{location_id}/findings/{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
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SetMuteRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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