Class HybridOptions.Builder

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

    public static final class HybridOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HybridOptions.Builder>
    implements HybridOptionsOrBuilder
     Configuration to control jobs where the content being inspected is outside
     of Google Cloud Platform.
     
    Protobuf type google.privacy.dlp.v2.HybridOptions
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HybridOptions.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HybridOptions.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

        public HybridOptions.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<HybridOptions.Builder>
      • setField

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

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

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

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

        public HybridOptions.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<HybridOptions.Builder>
      • mergeFrom

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

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

        public HybridOptions.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<HybridOptions.Builder>
        Throws:
        IOException
      • getDescription

        public String getDescription()
         A short description of where the data is coming from. Will be stored once
         in the job. 256 max length.
         
        string description = 1;
        Specified by:
        getDescription in interface HybridOptionsOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         A short description of where the data is coming from. Will be stored once
         in the job. 256 max length.
         
        string description = 1;
        Specified by:
        getDescriptionBytes in interface HybridOptionsOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public HybridOptions.Builder setDescription​(String value)
         A short description of where the data is coming from. Will be stored once
         in the job. 256 max length.
         
        string description = 1;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public HybridOptions.Builder clearDescription()
         A short description of where the data is coming from. Will be stored once
         in the job. 256 max length.
         
        string description = 1;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public HybridOptions.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         A short description of where the data is coming from. Will be stored once
         in the job. 256 max length.
         
        string description = 1;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getRequiredFindingLabelKeysList

        public com.google.protobuf.ProtocolStringList getRequiredFindingLabelKeysList()
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Specified by:
        getRequiredFindingLabelKeysList in interface HybridOptionsOrBuilder
        Returns:
        A list containing the requiredFindingLabelKeys.
      • getRequiredFindingLabelKeysCount

        public int getRequiredFindingLabelKeysCount()
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Specified by:
        getRequiredFindingLabelKeysCount in interface HybridOptionsOrBuilder
        Returns:
        The count of requiredFindingLabelKeys.
      • getRequiredFindingLabelKeys

        public String getRequiredFindingLabelKeys​(int index)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Specified by:
        getRequiredFindingLabelKeys in interface HybridOptionsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The requiredFindingLabelKeys at the given index.
      • getRequiredFindingLabelKeysBytes

        public com.google.protobuf.ByteString getRequiredFindingLabelKeysBytes​(int index)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Specified by:
        getRequiredFindingLabelKeysBytes in interface HybridOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the requiredFindingLabelKeys at the given index.
      • setRequiredFindingLabelKeys

        public HybridOptions.Builder setRequiredFindingLabelKeys​(int index,
                                                                 String value)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Parameters:
        index - The index to set the value at.
        value - The requiredFindingLabelKeys to set.
        Returns:
        This builder for chaining.
      • addRequiredFindingLabelKeys

        public HybridOptions.Builder addRequiredFindingLabelKeys​(String value)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Parameters:
        value - The requiredFindingLabelKeys to add.
        Returns:
        This builder for chaining.
      • addAllRequiredFindingLabelKeys

        public HybridOptions.Builder addAllRequiredFindingLabelKeys​(Iterable<String> values)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Parameters:
        values - The requiredFindingLabelKeys to add.
        Returns:
        This builder for chaining.
      • clearRequiredFindingLabelKeys

        public HybridOptions.Builder clearRequiredFindingLabelKeys()
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Returns:
        This builder for chaining.
      • addRequiredFindingLabelKeysBytes

        public HybridOptions.Builder addRequiredFindingLabelKeysBytes​(com.google.protobuf.ByteString value)
         These are labels that each inspection request must include within their
         'finding_labels' map. Request may contain others, but any missing one of
         these will be rejected.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         No more than 10 keys can be required.
         
        repeated string required_finding_label_keys = 2;
        Parameters:
        value - The bytes of the requiredFindingLabelKeys to add.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: HybridOptionsOrBuilder
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsCount in interface HybridOptionsOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
        Specified by:
        containsLabels in interface HybridOptionsOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsMap in interface HybridOptionsOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrDefault in interface HybridOptionsOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrThrow in interface HybridOptionsOrBuilder
      • removeLabels

        public HybridOptions.Builder removeLabels​(String key)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public HybridOptions.Builder putLabels​(String key,
                                               String value)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
      • putAllLabels

        public HybridOptions.Builder putAllLabels​(Map<String,​String> values)
         To organize findings, these labels will be added to each finding.
        
         Label keys must be between 1 and 63 characters long and must conform
         to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
        
         Label values must be between 0 and 63 characters long and must conform
         to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
        
         No more than 10 labels can be associated with a given finding.
        
         Examples:
         * `"environment" : "production"`
         * `"pipeline" : "etl"`
         
        map<string, string> labels = 3;
      • hasTableOptions

        public boolean hasTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        hasTableOptions in interface HybridOptionsOrBuilder
        Returns:
        Whether the tableOptions field is set.
      • getTableOptions

        public TableOptions getTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        getTableOptions in interface HybridOptionsOrBuilder
        Returns:
        The tableOptions.
      • setTableOptions

        public HybridOptions.Builder setTableOptions​(TableOptions value)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • setTableOptions

        public HybridOptions.Builder setTableOptions​(TableOptions.Builder builderForValue)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • mergeTableOptions

        public HybridOptions.Builder mergeTableOptions​(TableOptions value)
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • clearTableOptions

        public HybridOptions.Builder clearTableOptions()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • getTableOptionsBuilder

        public TableOptions.Builder getTableOptionsBuilder()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
      • getTableOptionsOrBuilder

        public TableOptionsOrBuilder getTableOptionsOrBuilder()
         If the container is a table, additional information to make findings
         meaningful such as the columns that are primary keys.
         
        .google.privacy.dlp.v2.TableOptions table_options = 4;
        Specified by:
        getTableOptionsOrBuilder in interface HybridOptionsOrBuilder
      • setUnknownFields

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

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