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

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

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

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

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

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

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

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

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

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

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

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

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

        public InfoTypeDescription.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<InfoTypeDescription.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Internal name of the infoType.
         
        string name = 1;
        Specified by:
        getNameBytes in interface InfoTypeDescriptionOrBuilder
        Returns:
        The bytes for name.
      • setName

        public InfoTypeDescription.Builder setName​(String value)
         Internal name of the infoType.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public InfoTypeDescription.Builder clearName()
         Internal name of the infoType.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public InfoTypeDescription.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Internal name of the infoType.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Human readable form of the infoType name.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface InfoTypeDescriptionOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public InfoTypeDescription.Builder setDisplayName​(String value)
         Human readable form of the infoType name.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public InfoTypeDescription.Builder clearDisplayName()
         Human readable form of the infoType name.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public InfoTypeDescription.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Human readable form of the infoType name.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getSupportedByCount

        public int getSupportedByCount()
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Specified by:
        getSupportedByCount in interface InfoTypeDescriptionOrBuilder
        Returns:
        The count of supportedBy.
      • getSupportedBy

        public InfoTypeSupportedBy getSupportedBy​(int index)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Specified by:
        getSupportedBy in interface InfoTypeDescriptionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The supportedBy at the given index.
      • setSupportedBy

        public InfoTypeDescription.Builder setSupportedBy​(int index,
                                                          InfoTypeSupportedBy value)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        index - The index to set the value at.
        value - The supportedBy to set.
        Returns:
        This builder for chaining.
      • addSupportedBy

        public InfoTypeDescription.Builder addSupportedBy​(InfoTypeSupportedBy value)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        value - The supportedBy to add.
        Returns:
        This builder for chaining.
      • addAllSupportedBy

        public InfoTypeDescription.Builder addAllSupportedBy​(Iterable<? extends InfoTypeSupportedBy> values)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        values - The supportedBy to add.
        Returns:
        This builder for chaining.
      • clearSupportedBy

        public InfoTypeDescription.Builder clearSupportedBy()
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Returns:
        This builder for chaining.
      • getSupportedByValueList

        public List<Integer> getSupportedByValueList()
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Specified by:
        getSupportedByValueList in interface InfoTypeDescriptionOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for supportedBy.
      • getSupportedByValue

        public int getSupportedByValue​(int index)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Specified by:
        getSupportedByValue in interface InfoTypeDescriptionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of supportedBy at the given index.
      • setSupportedByValue

        public InfoTypeDescription.Builder setSupportedByValue​(int index,
                                                               int value)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for supportedBy to set.
        Returns:
        This builder for chaining.
      • addSupportedByValue

        public InfoTypeDescription.Builder addSupportedByValue​(int value)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        value - The enum numeric value on the wire for supportedBy to add.
        Returns:
        This builder for chaining.
      • addAllSupportedByValue

        public InfoTypeDescription.Builder addAllSupportedByValue​(Iterable<Integer> values)
         Which parts of the API supports this InfoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
        Parameters:
        values - The enum numeric values on the wire for supportedBy to add.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Description of the infotype. Translated when language is provided in the
         request.
         
        string description = 4;
        Specified by:
        getDescription in interface InfoTypeDescriptionOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of the infotype. Translated when language is provided in the
         request.
         
        string description = 4;
        Specified by:
        getDescriptionBytes in interface InfoTypeDescriptionOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public InfoTypeDescription.Builder setDescription​(String value)
         Description of the infotype. Translated when language is provided in the
         request.
         
        string description = 4;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public InfoTypeDescription.Builder clearDescription()
         Description of the infotype. Translated when language is provided in the
         request.
         
        string description = 4;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public InfoTypeDescription.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the infotype. Translated when language is provided in the
         request.
         
        string description = 4;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getVersionsCount

        public int getVersionsCount()
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
        Specified by:
        getVersionsCount in interface InfoTypeDescriptionOrBuilder
      • clearVersions

        public InfoTypeDescription.Builder clearVersions()
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • removeVersions

        public InfoTypeDescription.Builder removeVersions​(int index)
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • getVersionsBuilder

        public VersionDescription.Builder getVersionsBuilder​(int index)
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • addVersionsBuilder

        public VersionDescription.Builder addVersionsBuilder()
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • addVersionsBuilder

        public VersionDescription.Builder addVersionsBuilder​(int index)
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • getVersionsBuilderList

        public List<VersionDescription.Builder> getVersionsBuilderList()
         A list of available versions for the infotype.
         
        repeated .google.privacy.dlp.v2.VersionDescription versions = 9;
      • clearCategories

        public InfoTypeDescription.Builder clearCategories()
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • removeCategories

        public InfoTypeDescription.Builder removeCategories​(int index)
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • getCategoriesBuilder

        public InfoTypeCategory.Builder getCategoriesBuilder​(int index)
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • addCategoriesBuilder

        public InfoTypeCategory.Builder addCategoriesBuilder()
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • addCategoriesBuilder

        public InfoTypeCategory.Builder addCategoriesBuilder​(int index)
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • getCategoriesBuilderList

        public List<InfoTypeCategory.Builder> getCategoriesBuilderList()
         The category of the infoType.
         
        repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
      • setUnknownFields

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

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