Class BulkMuteFindingsRequest.Builder

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

    public static final class BulkMuteFindingsRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BulkMuteFindingsRequest.Builder>
    implements BulkMuteFindingsRequestOrBuilder
     Request message for bulk findings update.
    
     Note:
     1. If multiple bulk update requests match the same resource, the order in
     which they get executed is not defined.
     2. Once a bulk operation is started, there is no way to stop it.
     
    Protobuf type google.cloud.securitycenter.v1.BulkMuteFindingsRequest
    • 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<BulkMuteFindingsRequest.Builder>
      • clear

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • clearField

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • clearOneof

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • setRepeatedField

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • addRepeatedField

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • isInitialized

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

        public BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent, at which bulk action needs to be applied. Its format
         is "organizations/[organization_id]", "folders/[folder_id]",
         "projects/[project_id]".
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent, at which bulk action needs to be applied. Its format
         is "organizations/[organization_id]", "folders/[folder_id]",
         "projects/[project_id]".
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public BulkMuteFindingsRequest.Builder setParent​(String value)
         Required. The parent, at which bulk action needs to be applied. Its format
         is "organizations/[organization_id]", "folders/[folder_id]",
         "projects/[project_id]".
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public BulkMuteFindingsRequest.Builder clearParent()
         Required. The parent, at which bulk action needs to be applied. Its format
         is "organizations/[organization_id]", "folders/[folder_id]",
         "projects/[project_id]".
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public BulkMuteFindingsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent, at which bulk action needs to be applied. Its format
         is "organizations/[organization_id]", "folders/[folder_id]",
         "projects/[project_id]".
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getFilter

        public String getFilter()
         Expression that identifies findings that should be updated.
         The expression is a list of zero or more restrictions combined
         via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
         has higher precedence than `AND`.
        
         Restrictions have the form `<field> <operator> <value>` and may have a
         `-` character in front of them to indicate negation. The fields map to
         those defined in the corresponding resource.
        
         The supported operators are:
        
         * `=` for all value types.
         * `>`, `<`, `>=`, `<=` for integer values.
         * `:`, meaning substring matching, for strings.
        
         The supported value types are:
        
         * string literals in quotes.
         * integer literals without quotes.
         * boolean literals `true` and `false` without quotes.
         
        string filter = 2;
        Specified by:
        getFilter in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The filter.
      • getFilterBytes

        public com.google.protobuf.ByteString getFilterBytes()
         Expression that identifies findings that should be updated.
         The expression is a list of zero or more restrictions combined
         via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
         has higher precedence than `AND`.
        
         Restrictions have the form `<field> <operator> <value>` and may have a
         `-` character in front of them to indicate negation. The fields map to
         those defined in the corresponding resource.
        
         The supported operators are:
        
         * `=` for all value types.
         * `>`, `<`, `>=`, `<=` for integer values.
         * `:`, meaning substring matching, for strings.
        
         The supported value types are:
        
         * string literals in quotes.
         * integer literals without quotes.
         * boolean literals `true` and `false` without quotes.
         
        string filter = 2;
        Specified by:
        getFilterBytes in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The bytes for filter.
      • setFilter

        public BulkMuteFindingsRequest.Builder setFilter​(String value)
         Expression that identifies findings that should be updated.
         The expression is a list of zero or more restrictions combined
         via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
         has higher precedence than `AND`.
        
         Restrictions have the form `<field> <operator> <value>` and may have a
         `-` character in front of them to indicate negation. The fields map to
         those defined in the corresponding resource.
        
         The supported operators are:
        
         * `=` for all value types.
         * `>`, `<`, `>=`, `<=` for integer values.
         * `:`, meaning substring matching, for strings.
        
         The supported value types are:
        
         * string literals in quotes.
         * integer literals without quotes.
         * boolean literals `true` and `false` without quotes.
         
        string filter = 2;
        Parameters:
        value - The filter to set.
        Returns:
        This builder for chaining.
      • clearFilter

        public BulkMuteFindingsRequest.Builder clearFilter()
         Expression that identifies findings that should be updated.
         The expression is a list of zero or more restrictions combined
         via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
         has higher precedence than `AND`.
        
         Restrictions have the form `<field> <operator> <value>` and may have a
         `-` character in front of them to indicate negation. The fields map to
         those defined in the corresponding resource.
        
         The supported operators are:
        
         * `=` for all value types.
         * `>`, `<`, `>=`, `<=` for integer values.
         * `:`, meaning substring matching, for strings.
        
         The supported value types are:
        
         * string literals in quotes.
         * integer literals without quotes.
         * boolean literals `true` and `false` without quotes.
         
        string filter = 2;
        Returns:
        This builder for chaining.
      • setFilterBytes

        public BulkMuteFindingsRequest.Builder setFilterBytes​(com.google.protobuf.ByteString value)
         Expression that identifies findings that should be updated.
         The expression is a list of zero or more restrictions combined
         via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
         has higher precedence than `AND`.
        
         Restrictions have the form `<field> <operator> <value>` and may have a
         `-` character in front of them to indicate negation. The fields map to
         those defined in the corresponding resource.
        
         The supported operators are:
        
         * `=` for all value types.
         * `>`, `<`, `>=`, `<=` for integer values.
         * `:`, meaning substring matching, for strings.
        
         The supported value types are:
        
         * string literals in quotes.
         * integer literals without quotes.
         * boolean literals `true` and `false` without quotes.
         
        string filter = 2;
        Parameters:
        value - The bytes for filter to set.
        Returns:
        This builder for chaining.
      • getMuteAnnotation

        @Deprecated
        public String getMuteAnnotation()
        Deprecated.
        google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
         This can be a mute configuration name or any identifier for mute/unmute
         of findings based on the filter.
         
        string mute_annotation = 3 [deprecated = true];
        Specified by:
        getMuteAnnotation in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The muteAnnotation.
      • getMuteAnnotationBytes

        @Deprecated
        public com.google.protobuf.ByteString getMuteAnnotationBytes()
        Deprecated.
        google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
         This can be a mute configuration name or any identifier for mute/unmute
         of findings based on the filter.
         
        string mute_annotation = 3 [deprecated = true];
        Specified by:
        getMuteAnnotationBytes in interface BulkMuteFindingsRequestOrBuilder
        Returns:
        The bytes for muteAnnotation.
      • setMuteAnnotation

        @Deprecated
        public BulkMuteFindingsRequest.Builder setMuteAnnotation​(String value)
        Deprecated.
        google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
         This can be a mute configuration name or any identifier for mute/unmute
         of findings based on the filter.
         
        string mute_annotation = 3 [deprecated = true];
        Parameters:
        value - The muteAnnotation to set.
        Returns:
        This builder for chaining.
      • clearMuteAnnotation

        @Deprecated
        public BulkMuteFindingsRequest.Builder clearMuteAnnotation()
        Deprecated.
        google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
         This can be a mute configuration name or any identifier for mute/unmute
         of findings based on the filter.
         
        string mute_annotation = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • setMuteAnnotationBytes

        @Deprecated
        public BulkMuteFindingsRequest.Builder setMuteAnnotationBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.securitycenter.v1.BulkMuteFindingsRequest.mute_annotation is deprecated. See google/cloud/securitycenter/v1/securitycenter_service.proto;l=766
         This can be a mute configuration name or any identifier for mute/unmute
         of findings based on the filter.
         
        string mute_annotation = 3 [deprecated = true];
        Parameters:
        value - The bytes for muteAnnotation to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>
      • mergeUnknownFields

        public final BulkMuteFindingsRequest.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<BulkMuteFindingsRequest.Builder>