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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SetMuteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SetMuteRequest build()
Returns
buildPartial()
public SetMuteRequest buildPartial()
Returns
clear()
public SetMuteRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SetMuteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearName()
public SetMuteRequest.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}",
"folders/{folder_id}/sources/{source_id}/finding/{finding_id}",
"projects/{project_id}/sources/{source_id}/finding/{finding_id}".
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SetMuteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SetMuteRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SetMuteRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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()
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}",
"folders/{folder_id}/sources/{source_id}/finding/{finding_id}",
"projects/{project_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}",
"folders/{folder_id}/sources/{source_id}/finding/{finding_id}",
"projects/{project_id}/sources/{source_id}/finding/{finding_id}".
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SetMuteRequest other)
public SetMuteRequest.Builder mergeFrom(SetMuteRequest other)
Parameter
Returns
public SetMuteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SetMuteRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SetMuteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SetMuteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
setName(String value)
public SetMuteRequest.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}",
"folders/{folder_id}/sources/{source_id}/finding/{finding_id}",
"projects/{project_id}/sources/{source_id}/finding/{finding_id}".
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public SetMuteRequest.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}",
"folders/{folder_id}/sources/{source_id}/finding/{finding_id}",
"projects/{project_id}/sources/{source_id}/finding/{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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SetMuteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SetMuteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides