Class SetMuteRequest.Builder (2.47.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.47.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SetMuteRequest . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   SetMuteRequest   build ()  
  
  buildPartial() 
  
    
public   SetMuteRequest   buildPartial ()  
  
  clear() 
  
    
public   SetMuteRequest . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   SetMuteRequest . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  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];
 
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) = { ... }
 
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   SetMuteRequest . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   SetMuteRequest . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SetMuteRequest   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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];
 
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  
      
        Type Description  
      
        int The enum numeric value on the wire for mute.
 
     
  
  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  
      
        Type Description  
      
        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  
      
        Type Description  
      
        ByteString The bytes for name.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(SetMuteRequest other) 
  
    
public   SetMuteRequest . Builder   mergeFrom ( SetMuteRequest   other )  
  
  
  
    
public   SetMuteRequest . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   SetMuteRequest . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SetMuteRequest . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   SetMuteRequest . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  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  
      
        Name Description  
      
        valueFinding.Mute The mute to set.
 
     
  
  
  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  
      
        Name Description  
      
        valueint The enum numeric value on the wire for mute to set.
 
     
  
  
  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  
      
        Name Description  
      
        valueString The name to set.
 
     
  
  
  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  
      
        Name Description  
      
        valueByteString The bytes for name to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   SetMuteRequest . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   SetMuteRequest . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]