Class InspectContentRequest.Builder

    • 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<InspectContentRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public String getParent()
         Parent resource name.
        
         The format of this value varies depending on whether you have [specified a
         processing
         location](https://cloud.google.com/dlp/docs/specifying-location):
        
         + Projects scope, location specified:<br/>
           `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
         + Projects scope, no location specified (defaults to global):<br/>
           `projects/`<var>PROJECT_ID</var>
        
         The following example `parent` string specifies a parent project with the
         identifier `example-project`, and specifies the `europe-west3` location
         for processing data:
        
             parent=projects/example-project/locations/europe-west3
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface InspectContentRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Parent resource name.
        
         The format of this value varies depending on whether you have [specified a
         processing
         location](https://cloud.google.com/dlp/docs/specifying-location):
        
         + Projects scope, location specified:<br/>
           `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
         + Projects scope, no location specified (defaults to global):<br/>
           `projects/`<var>PROJECT_ID</var>
        
         The following example `parent` string specifies a parent project with the
         identifier `example-project`, and specifies the `europe-west3` location
         for processing data:
        
             parent=projects/example-project/locations/europe-west3
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface InspectContentRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public InspectContentRequest.Builder setParent​(String value)
         Parent resource name.
        
         The format of this value varies depending on whether you have [specified a
         processing
         location](https://cloud.google.com/dlp/docs/specifying-location):
        
         + Projects scope, location specified:<br/>
           `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
         + Projects scope, no location specified (defaults to global):<br/>
           `projects/`<var>PROJECT_ID</var>
        
         The following example `parent` string specifies a parent project with the
         identifier `example-project`, and specifies the `europe-west3` location
         for processing data:
        
             parent=projects/example-project/locations/europe-west3
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public InspectContentRequest.Builder clearParent()
         Parent resource name.
        
         The format of this value varies depending on whether you have [specified a
         processing
         location](https://cloud.google.com/dlp/docs/specifying-location):
        
         + Projects scope, location specified:<br/>
           `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
         + Projects scope, no location specified (defaults to global):<br/>
           `projects/`<var>PROJECT_ID</var>
        
         The following example `parent` string specifies a parent project with the
         identifier `example-project`, and specifies the `europe-west3` location
         for processing data:
        
             parent=projects/example-project/locations/europe-west3
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public InspectContentRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Parent resource name.
        
         The format of this value varies depending on whether you have [specified a
         processing
         location](https://cloud.google.com/dlp/docs/specifying-location):
        
         + Projects scope, location specified:<br/>
           `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
         + Projects scope, no location specified (defaults to global):<br/>
           `projects/`<var>PROJECT_ID</var>
        
         The following example `parent` string specifies a parent project with the
         identifier `example-project`, and specifies the `europe-west3` location
         for processing data:
        
             parent=projects/example-project/locations/europe-west3
         
        string parent = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasInspectConfig

        public boolean hasInspectConfig()
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
        Specified by:
        hasInspectConfig in interface InspectContentRequestOrBuilder
        Returns:
        Whether the inspectConfig field is set.
      • getInspectConfig

        public InspectConfig getInspectConfig()
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
        Specified by:
        getInspectConfig in interface InspectContentRequestOrBuilder
        Returns:
        The inspectConfig.
      • setInspectConfig

        public InspectContentRequest.Builder setInspectConfig​(InspectConfig value)
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • setInspectConfig

        public InspectContentRequest.Builder setInspectConfig​(InspectConfig.Builder builderForValue)
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • mergeInspectConfig

        public InspectContentRequest.Builder mergeInspectConfig​(InspectConfig value)
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • clearInspectConfig

        public InspectContentRequest.Builder clearInspectConfig()
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • getInspectConfigBuilder

        public InspectConfig.Builder getInspectConfigBuilder()
         Configuration for the inspector. What specified here will override
         the template referenced by the inspect_template_name argument.
         
        .google.privacy.dlp.v2.InspectConfig inspect_config = 2;
      • hasItem

        public boolean hasItem()
         The item to inspect.
         
        .google.privacy.dlp.v2.ContentItem item = 3;
        Specified by:
        hasItem in interface InspectContentRequestOrBuilder
        Returns:
        Whether the item field is set.
      • getItemBuilder

        public ContentItem.Builder getItemBuilder()
         The item to inspect.
         
        .google.privacy.dlp.v2.ContentItem item = 3;
      • getInspectTemplateName

        public String getInspectTemplateName()
         Template to use. Any configuration directly specified in
         inspect_config will override those set in the template. Singular fields
         that are set in this request will replace their corresponding fields in the
         template. Repeated fields are appended. Singular sub-messages and groups
         are recursively merged.
         
        string inspect_template_name = 4;
        Specified by:
        getInspectTemplateName in interface InspectContentRequestOrBuilder
        Returns:
        The inspectTemplateName.
      • getInspectTemplateNameBytes

        public com.google.protobuf.ByteString getInspectTemplateNameBytes()
         Template to use. Any configuration directly specified in
         inspect_config will override those set in the template. Singular fields
         that are set in this request will replace their corresponding fields in the
         template. Repeated fields are appended. Singular sub-messages and groups
         are recursively merged.
         
        string inspect_template_name = 4;
        Specified by:
        getInspectTemplateNameBytes in interface InspectContentRequestOrBuilder
        Returns:
        The bytes for inspectTemplateName.
      • setInspectTemplateName

        public InspectContentRequest.Builder setInspectTemplateName​(String value)
         Template to use. Any configuration directly specified in
         inspect_config will override those set in the template. Singular fields
         that are set in this request will replace their corresponding fields in the
         template. Repeated fields are appended. Singular sub-messages and groups
         are recursively merged.
         
        string inspect_template_name = 4;
        Parameters:
        value - The inspectTemplateName to set.
        Returns:
        This builder for chaining.
      • clearInspectTemplateName

        public InspectContentRequest.Builder clearInspectTemplateName()
         Template to use. Any configuration directly specified in
         inspect_config will override those set in the template. Singular fields
         that are set in this request will replace their corresponding fields in the
         template. Repeated fields are appended. Singular sub-messages and groups
         are recursively merged.
         
        string inspect_template_name = 4;
        Returns:
        This builder for chaining.
      • setInspectTemplateNameBytes

        public InspectContentRequest.Builder setInspectTemplateNameBytes​(com.google.protobuf.ByteString value)
         Template to use. Any configuration directly specified in
         inspect_config will override those set in the template. Singular fields
         that are set in this request will replace their corresponding fields in the
         template. Repeated fields are appended. Singular sub-messages and groups
         are recursively merged.
         
        string inspect_template_name = 4;
        Parameters:
        value - The bytes for inspectTemplateName to set.
        Returns:
        This builder for chaining.
      • getLocationIdBytes

        public com.google.protobuf.ByteString getLocationIdBytes()
         Deprecated. This field has no effect.
         
        string location_id = 5;
        Specified by:
        getLocationIdBytes in interface InspectContentRequestOrBuilder
        Returns:
        The bytes for locationId.
      • setLocationId

        public InspectContentRequest.Builder setLocationId​(String value)
         Deprecated. This field has no effect.
         
        string location_id = 5;
        Parameters:
        value - The locationId to set.
        Returns:
        This builder for chaining.
      • clearLocationId

        public InspectContentRequest.Builder clearLocationId()
         Deprecated. This field has no effect.
         
        string location_id = 5;
        Returns:
        This builder for chaining.
      • setLocationIdBytes

        public InspectContentRequest.Builder setLocationIdBytes​(com.google.protobuf.ByteString value)
         Deprecated. This field has no effect.
         
        string location_id = 5;
        Parameters:
        value - The bytes for locationId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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