Class PdfSecuritySettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
com.ironsoftware.ironpdf.internal.proto.PdfSecuritySettings.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PdfSecuritySettingsOrBuilder, Cloneable
Enclosing class:
PdfSecuritySettings

public static final class PdfSecuritySettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder> implements PdfSecuritySettingsOrBuilder
Protobuf type IronPdfEngine.Proto.PdfSecuritySettings
  • Method Details

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

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

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

      public PdfSecuritySettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<PdfSecuritySettings.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public PdfSecuritySettings.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<PdfSecuritySettings.Builder>
      Throws:
      IOException
    • hasAllowUserAnnotations

      public boolean hasAllowUserAnnotations()
      optional bool allow_user_annotations = 1;
      Specified by:
      hasAllowUserAnnotations in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserAnnotations field is set.
    • getAllowUserAnnotations

      public boolean getAllowUserAnnotations()
      optional bool allow_user_annotations = 1;
      Specified by:
      getAllowUserAnnotations in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserAnnotations.
    • setAllowUserAnnotations

      public PdfSecuritySettings.Builder setAllowUserAnnotations(boolean value)
      optional bool allow_user_annotations = 1;
      Parameters:
      value - The allowUserAnnotations to set.
      Returns:
      This builder for chaining.
    • clearAllowUserAnnotations

      public PdfSecuritySettings.Builder clearAllowUserAnnotations()
      optional bool allow_user_annotations = 1;
      Returns:
      This builder for chaining.
    • hasAllowUserCopyPasteContent

      public boolean hasAllowUserCopyPasteContent()
      optional bool allow_user_copy_paste_content = 2;
      Specified by:
      hasAllowUserCopyPasteContent in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserCopyPasteContent field is set.
    • getAllowUserCopyPasteContent

      public boolean getAllowUserCopyPasteContent()
      optional bool allow_user_copy_paste_content = 2;
      Specified by:
      getAllowUserCopyPasteContent in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserCopyPasteContent.
    • setAllowUserCopyPasteContent

      public PdfSecuritySettings.Builder setAllowUserCopyPasteContent(boolean value)
      optional bool allow_user_copy_paste_content = 2;
      Parameters:
      value - The allowUserCopyPasteContent to set.
      Returns:
      This builder for chaining.
    • clearAllowUserCopyPasteContent

      public PdfSecuritySettings.Builder clearAllowUserCopyPasteContent()
      optional bool allow_user_copy_paste_content = 2;
      Returns:
      This builder for chaining.
    • hasAllowUserCopyPasteContentForAccessibility

      public boolean hasAllowUserCopyPasteContentForAccessibility()
      optional bool allow_user_copy_paste_content_for_accessibility = 3;
      Specified by:
      hasAllowUserCopyPasteContentForAccessibility in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserCopyPasteContentForAccessibility field is set.
    • getAllowUserCopyPasteContentForAccessibility

      public boolean getAllowUserCopyPasteContentForAccessibility()
      optional bool allow_user_copy_paste_content_for_accessibility = 3;
      Specified by:
      getAllowUserCopyPasteContentForAccessibility in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserCopyPasteContentForAccessibility.
    • setAllowUserCopyPasteContentForAccessibility

      public PdfSecuritySettings.Builder setAllowUserCopyPasteContentForAccessibility(boolean value)
      optional bool allow_user_copy_paste_content_for_accessibility = 3;
      Parameters:
      value - The allowUserCopyPasteContentForAccessibility to set.
      Returns:
      This builder for chaining.
    • clearAllowUserCopyPasteContentForAccessibility

      public PdfSecuritySettings.Builder clearAllowUserCopyPasteContentForAccessibility()
      optional bool allow_user_copy_paste_content_for_accessibility = 3;
      Returns:
      This builder for chaining.
    • hasAllowUserEdits

      public boolean hasAllowUserEdits()
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
      Specified by:
      hasAllowUserEdits in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserEdits field is set.
    • getAllowUserEdits

      public PdfEditSecurity getAllowUserEdits()
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
      Specified by:
      getAllowUserEdits in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserEdits.
    • setAllowUserEdits

      public PdfSecuritySettings.Builder setAllowUserEdits(PdfEditSecurity value)
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
    • setAllowUserEdits

      public PdfSecuritySettings.Builder setAllowUserEdits(PdfEditSecurity.Builder builderForValue)
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
    • mergeAllowUserEdits

      public PdfSecuritySettings.Builder mergeAllowUserEdits(PdfEditSecurity value)
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
    • clearAllowUserEdits

      public PdfSecuritySettings.Builder clearAllowUserEdits()
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
    • getAllowUserEditsBuilder

      public PdfEditSecurity.Builder getAllowUserEditsBuilder()
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
    • getAllowUserEditsOrBuilder

      public PdfEditSecurityOrBuilder getAllowUserEditsOrBuilder()
      optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
      Specified by:
      getAllowUserEditsOrBuilder in interface PdfSecuritySettingsOrBuilder
    • hasAllowUserFormData

      public boolean hasAllowUserFormData()
      optional bool allow_user_form_data = 5;
      Specified by:
      hasAllowUserFormData in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserFormData field is set.
    • getAllowUserFormData

      public boolean getAllowUserFormData()
      optional bool allow_user_form_data = 5;
      Specified by:
      getAllowUserFormData in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserFormData.
    • setAllowUserFormData

      public PdfSecuritySettings.Builder setAllowUserFormData(boolean value)
      optional bool allow_user_form_data = 5;
      Parameters:
      value - The allowUserFormData to set.
      Returns:
      This builder for chaining.
    • clearAllowUserFormData

      public PdfSecuritySettings.Builder clearAllowUserFormData()
      optional bool allow_user_form_data = 5;
      Returns:
      This builder for chaining.
    • hasAllowUserPrinting

      public boolean hasAllowUserPrinting()
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
      Specified by:
      hasAllowUserPrinting in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the allowUserPrinting field is set.
    • getAllowUserPrinting

      public PdfPrintSecurity getAllowUserPrinting()
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
      Specified by:
      getAllowUserPrinting in interface PdfSecuritySettingsOrBuilder
      Returns:
      The allowUserPrinting.
    • setAllowUserPrinting

      public PdfSecuritySettings.Builder setAllowUserPrinting(PdfPrintSecurity value)
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
    • setAllowUserPrinting

      public PdfSecuritySettings.Builder setAllowUserPrinting(PdfPrintSecurity.Builder builderForValue)
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
    • mergeAllowUserPrinting

      public PdfSecuritySettings.Builder mergeAllowUserPrinting(PdfPrintSecurity value)
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
    • clearAllowUserPrinting

      public PdfSecuritySettings.Builder clearAllowUserPrinting()
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
    • getAllowUserPrintingBuilder

      public PdfPrintSecurity.Builder getAllowUserPrintingBuilder()
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
    • getAllowUserPrintingOrBuilder

      public PdfPrintSecurityOrBuilder getAllowUserPrintingOrBuilder()
      optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
      Specified by:
      getAllowUserPrintingOrBuilder in interface PdfSecuritySettingsOrBuilder
    • hasOwnerPassword

      public boolean hasOwnerPassword()
      optional string owner_password = 7;
      Specified by:
      hasOwnerPassword in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the ownerPassword field is set.
    • getOwnerPassword

      public String getOwnerPassword()
      optional string owner_password = 7;
      Specified by:
      getOwnerPassword in interface PdfSecuritySettingsOrBuilder
      Returns:
      The ownerPassword.
    • getOwnerPasswordBytes

      public com.google.protobuf.ByteString getOwnerPasswordBytes()
      optional string owner_password = 7;
      Specified by:
      getOwnerPasswordBytes in interface PdfSecuritySettingsOrBuilder
      Returns:
      The bytes for ownerPassword.
    • setOwnerPassword

      public PdfSecuritySettings.Builder setOwnerPassword(String value)
      optional string owner_password = 7;
      Parameters:
      value - The ownerPassword to set.
      Returns:
      This builder for chaining.
    • clearOwnerPassword

      public PdfSecuritySettings.Builder clearOwnerPassword()
      optional string owner_password = 7;
      Returns:
      This builder for chaining.
    • setOwnerPasswordBytes

      public PdfSecuritySettings.Builder setOwnerPasswordBytes(com.google.protobuf.ByteString value)
      optional string owner_password = 7;
      Parameters:
      value - The bytes for ownerPassword to set.
      Returns:
      This builder for chaining.
    • hasUserPassword

      public boolean hasUserPassword()
      optional string user_password = 8;
      Specified by:
      hasUserPassword in interface PdfSecuritySettingsOrBuilder
      Returns:
      Whether the userPassword field is set.
    • getUserPassword

      public String getUserPassword()
      optional string user_password = 8;
      Specified by:
      getUserPassword in interface PdfSecuritySettingsOrBuilder
      Returns:
      The userPassword.
    • getUserPasswordBytes

      public com.google.protobuf.ByteString getUserPasswordBytes()
      optional string user_password = 8;
      Specified by:
      getUserPasswordBytes in interface PdfSecuritySettingsOrBuilder
      Returns:
      The bytes for userPassword.
    • setUserPassword

      public PdfSecuritySettings.Builder setUserPassword(String value)
      optional string user_password = 8;
      Parameters:
      value - The userPassword to set.
      Returns:
      This builder for chaining.
    • clearUserPassword

      public PdfSecuritySettings.Builder clearUserPassword()
      optional string user_password = 8;
      Returns:
      This builder for chaining.
    • setUserPasswordBytes

      public PdfSecuritySettings.Builder setUserPasswordBytes(com.google.protobuf.ByteString value)
      optional string user_password = 8;
      Parameters:
      value - The bytes for userPassword to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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