Class MuteConfig.Builder

  • All Implemented Interfaces:
    MuteConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    MuteConfig

    public static final class MuteConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
    implements MuteConfigOrBuilder
     A mute config is a Cloud SCC resource that contains the configuration
     to mute create/update events of findings.
     
    Protobuf type google.cloud.securitycenter.v1.MuteConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • clear

        public MuteConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • getDefaultInstanceForType

        public MuteConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MuteConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MuteConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MuteConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • setField

        public MuteConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • clearField

        public MuteConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • clearOneof

        public MuteConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • setRepeatedField

        public MuteConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • addRepeatedField

        public MuteConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • mergeFrom

        public MuteConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MuteConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • mergeFrom

        public MuteConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MuteConfig.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         This field will be ignored if provided on config creation. Format
         "organizations/{organization}/muteConfigs/{mute_config}"
         "folders/{folder}/muteConfigs/{mute_config}"
         "projects/{project}/muteConfigs/{mute_config}"
         
        string name = 1;
        Specified by:
        getName in interface MuteConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         This field will be ignored if provided on config creation. Format
         "organizations/{organization}/muteConfigs/{mute_config}"
         "folders/{folder}/muteConfigs/{mute_config}"
         "projects/{project}/muteConfigs/{mute_config}"
         
        string name = 1;
        Specified by:
        getNameBytes in interface MuteConfigOrBuilder
        Returns:
        The bytes for name.
      • setName

        public MuteConfig.Builder setName​(String value)
         This field will be ignored if provided on config creation. Format
         "organizations/{organization}/muteConfigs/{mute_config}"
         "folders/{folder}/muteConfigs/{mute_config}"
         "projects/{project}/muteConfigs/{mute_config}"
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public MuteConfig.Builder clearName()
         This field will be ignored if provided on config creation. Format
         "organizations/{organization}/muteConfigs/{mute_config}"
         "folders/{folder}/muteConfigs/{mute_config}"
         "projects/{project}/muteConfigs/{mute_config}"
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public MuteConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         This field will be ignored if provided on config creation. Format
         "organizations/{organization}/muteConfigs/{mute_config}"
         "folders/{folder}/muteConfigs/{mute_config}"
         "projects/{project}/muteConfigs/{mute_config}"
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        @Deprecated
        public String getDisplayName()
        Deprecated.
        google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See google/cloud/securitycenter/v1/mute_config.proto;l=47
         The human readable name to be displayed for the mute config.
         
        string display_name = 2 [deprecated = true];
        Specified by:
        getDisplayName in interface MuteConfigOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        @Deprecated
        public com.google.protobuf.ByteString getDisplayNameBytes()
        Deprecated.
        google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See google/cloud/securitycenter/v1/mute_config.proto;l=47
         The human readable name to be displayed for the mute config.
         
        string display_name = 2 [deprecated = true];
        Specified by:
        getDisplayNameBytes in interface MuteConfigOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        @Deprecated
        public MuteConfig.Builder setDisplayName​(String value)
        Deprecated.
        google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See google/cloud/securitycenter/v1/mute_config.proto;l=47
         The human readable name to be displayed for the mute config.
         
        string display_name = 2 [deprecated = true];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        @Deprecated
        public MuteConfig.Builder clearDisplayName()
        Deprecated.
        google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See google/cloud/securitycenter/v1/mute_config.proto;l=47
         The human readable name to be displayed for the mute config.
         
        string display_name = 2 [deprecated = true];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        @Deprecated
        public MuteConfig.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.securitycenter.v1.MuteConfig.display_name is deprecated. See google/cloud/securitycenter/v1/mute_config.proto;l=47
         The human readable name to be displayed for the mute config.
         
        string display_name = 2 [deprecated = true];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         A description of the mute config.
         
        string description = 3;
        Specified by:
        getDescription in interface MuteConfigOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A description of the mute config.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface MuteConfigOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public MuteConfig.Builder setDescription​(String value)
         A description of the mute config.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public MuteConfig.Builder clearDescription()
         A description of the mute config.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public MuteConfig.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A description of the mute config.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getFilter

        public String getFilter()
         Required. An expression that defines the filter to apply across
         create/update events of findings. While creating a filter string, be
         mindful of the scope in which the mute configuration is being created.
         E.g., If a filter contains project = X but is created under the project = Y
         scope, it might not match any findings.
        
         The following field and operator combinations are supported:
        
         * severity: `=`, `:`
         * category: `=`, `:`
         * resource.name: `=`, `:`
         * resource.project_name: `=`, `:`
         * resource.project_display_name: `=`, `:`
         * resource.folders.resource_folder: `=`, `:`
         * resource.parent_name: `=`, `:`
         * resource.parent_display_name: `=`, `:`
         * resource.type: `=`, `:`
         * finding_class: `=`, `:`
         * indicator.ip_addresses: `=`, `:`
         * indicator.domains: `=`, `:`
         
        string filter = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFilter in interface MuteConfigOrBuilder
        Returns:
        The filter.
      • getFilterBytes

        public com.google.protobuf.ByteString getFilterBytes()
         Required. An expression that defines the filter to apply across
         create/update events of findings. While creating a filter string, be
         mindful of the scope in which the mute configuration is being created.
         E.g., If a filter contains project = X but is created under the project = Y
         scope, it might not match any findings.
        
         The following field and operator combinations are supported:
        
         * severity: `=`, `:`
         * category: `=`, `:`
         * resource.name: `=`, `:`
         * resource.project_name: `=`, `:`
         * resource.project_display_name: `=`, `:`
         * resource.folders.resource_folder: `=`, `:`
         * resource.parent_name: `=`, `:`
         * resource.parent_display_name: `=`, `:`
         * resource.type: `=`, `:`
         * finding_class: `=`, `:`
         * indicator.ip_addresses: `=`, `:`
         * indicator.domains: `=`, `:`
         
        string filter = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFilterBytes in interface MuteConfigOrBuilder
        Returns:
        The bytes for filter.
      • setFilter

        public MuteConfig.Builder setFilter​(String value)
         Required. An expression that defines the filter to apply across
         create/update events of findings. While creating a filter string, be
         mindful of the scope in which the mute configuration is being created.
         E.g., If a filter contains project = X but is created under the project = Y
         scope, it might not match any findings.
        
         The following field and operator combinations are supported:
        
         * severity: `=`, `:`
         * category: `=`, `:`
         * resource.name: `=`, `:`
         * resource.project_name: `=`, `:`
         * resource.project_display_name: `=`, `:`
         * resource.folders.resource_folder: `=`, `:`
         * resource.parent_name: `=`, `:`
         * resource.parent_display_name: `=`, `:`
         * resource.type: `=`, `:`
         * finding_class: `=`, `:`
         * indicator.ip_addresses: `=`, `:`
         * indicator.domains: `=`, `:`
         
        string filter = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The filter to set.
        Returns:
        This builder for chaining.
      • clearFilter

        public MuteConfig.Builder clearFilter()
         Required. An expression that defines the filter to apply across
         create/update events of findings. While creating a filter string, be
         mindful of the scope in which the mute configuration is being created.
         E.g., If a filter contains project = X but is created under the project = Y
         scope, it might not match any findings.
        
         The following field and operator combinations are supported:
        
         * severity: `=`, `:`
         * category: `=`, `:`
         * resource.name: `=`, `:`
         * resource.project_name: `=`, `:`
         * resource.project_display_name: `=`, `:`
         * resource.folders.resource_folder: `=`, `:`
         * resource.parent_name: `=`, `:`
         * resource.parent_display_name: `=`, `:`
         * resource.type: `=`, `:`
         * finding_class: `=`, `:`
         * indicator.ip_addresses: `=`, `:`
         * indicator.domains: `=`, `:`
         
        string filter = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setFilterBytes

        public MuteConfig.Builder setFilterBytes​(com.google.protobuf.ByteString value)
         Required. An expression that defines the filter to apply across
         create/update events of findings. While creating a filter string, be
         mindful of the scope in which the mute configuration is being created.
         E.g., If a filter contains project = X but is created under the project = Y
         scope, it might not match any findings.
        
         The following field and operator combinations are supported:
        
         * severity: `=`, `:`
         * category: `=`, `:`
         * resource.name: `=`, `:`
         * resource.project_name: `=`, `:`
         * resource.project_display_name: `=`, `:`
         * resource.folders.resource_folder: `=`, `:`
         * resource.parent_name: `=`, `:`
         * resource.parent_display_name: `=`, `:`
         * resource.type: `=`, `:`
         * finding_class: `=`, `:`
         * indicator.ip_addresses: `=`, `:`
         * indicator.domains: `=`, `:`
         
        string filter = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for filter to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface MuteConfigOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface MuteConfigOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public MuteConfig.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public MuteConfig.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public MuteConfig.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public MuteConfig.Builder clearCreateTime()
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which the mute config was created.
         This field is set by the server and will be ignored if provided on config
         creation.
         
        .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface MuteConfigOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface MuteConfigOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface MuteConfigOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public MuteConfig.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public MuteConfig.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public MuteConfig.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public MuteConfig.Builder clearUpdateTime()
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The most recent time at which the mute config was updated.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface MuteConfigOrBuilder
      • getMostRecentEditor

        public String getMostRecentEditor()
         Output only. Email address of the user who last edited the mute config.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMostRecentEditor in interface MuteConfigOrBuilder
        Returns:
        The mostRecentEditor.
      • getMostRecentEditorBytes

        public com.google.protobuf.ByteString getMostRecentEditorBytes()
         Output only. Email address of the user who last edited the mute config.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMostRecentEditorBytes in interface MuteConfigOrBuilder
        Returns:
        The bytes for mostRecentEditor.
      • setMostRecentEditor

        public MuteConfig.Builder setMostRecentEditor​(String value)
         Output only. Email address of the user who last edited the mute config.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The mostRecentEditor to set.
        Returns:
        This builder for chaining.
      • clearMostRecentEditor

        public MuteConfig.Builder clearMostRecentEditor()
         Output only. Email address of the user who last edited the mute config.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setMostRecentEditorBytes

        public MuteConfig.Builder setMostRecentEditorBytes​(com.google.protobuf.ByteString value)
         Output only. Email address of the user who last edited the mute config.
         This field is set by the server and will be ignored if provided on config
         creation or update.
         
        string most_recent_editor = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for mostRecentEditor to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MuteConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>
      • mergeUnknownFields

        public final MuteConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MuteConfig.Builder>