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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional bool allow_user_annotations = 1;
optional bool allow_user_copy_paste_content = 2;
optional bool allow_user_copy_paste_content_for_accessibility = 3;
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
optional bool allow_user_form_data = 5;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional string owner_password = 7;
optional string user_password = 8;
clone()
boolean
optional bool allow_user_annotations = 1;
boolean
optional bool allow_user_copy_paste_content = 2;
boolean
optional bool allow_user_copy_paste_content_for_accessibility = 3;
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
boolean
optional bool allow_user_form_data = 5;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional string owner_password = 7;
com.google.protobuf.ByteString
optional string owner_password = 7;
optional string user_password = 8;
com.google.protobuf.ByteString
optional string user_password = 8;
boolean
optional bool allow_user_annotations = 1;
boolean
optional bool allow_user_copy_paste_content = 2;
boolean
optional bool allow_user_copy_paste_content_for_accessibility = 3;
boolean
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
boolean
optional bool allow_user_form_data = 5;
boolean
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
boolean
optional string owner_password = 7;
boolean
optional string user_password = 8;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(PdfSecuritySettings other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAllowUserAnnotations
(boolean value) optional bool allow_user_annotations = 1;
setAllowUserCopyPasteContent
(boolean value) optional bool allow_user_copy_paste_content = 2;
setAllowUserCopyPasteContentForAccessibility
(boolean value) optional bool allow_user_copy_paste_content_for_accessibility = 3;
setAllowUserEdits
(PdfEditSecurity value) optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
setAllowUserEdits
(PdfEditSecurity.Builder builderForValue) optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
setAllowUserFormData
(boolean value) optional bool allow_user_form_data = 5;
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
setAllowUserPrinting
(PdfPrintSecurity.Builder builderForValue) optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
setOwnerPassword
(String value) optional string owner_password = 7;
setOwnerPasswordBytes
(com.google.protobuf.ByteString value) optional string owner_password = 7;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUserPassword
(String value) optional string user_password = 8;
setUserPasswordBytes
(com.google.protobuf.ByteString value) optional string user_password = 8;
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
setField
public PdfSecuritySettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
clearField
public PdfSecuritySettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
clearOneof
public PdfSecuritySettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
addRepeatedField
public PdfSecuritySettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PdfSecuritySettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PdfSecuritySettings.Builder>
- Throws:
IOException
-
hasAllowUserAnnotations
public boolean hasAllowUserAnnotations()optional bool allow_user_annotations = 1;
- Specified by:
hasAllowUserAnnotations
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the allowUserAnnotations field is set.
-
getAllowUserAnnotations
public boolean getAllowUserAnnotations()optional bool allow_user_annotations = 1;
- Specified by:
getAllowUserAnnotations
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserAnnotations.
-
setAllowUserAnnotations
optional bool allow_user_annotations = 1;
- Parameters:
value
- The allowUserAnnotations to set.- Returns:
- This builder for chaining.
-
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 interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the allowUserCopyPasteContent field is set.
-
getAllowUserCopyPasteContent
public boolean getAllowUserCopyPasteContent()optional bool allow_user_copy_paste_content = 2;
- Specified by:
getAllowUserCopyPasteContent
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserCopyPasteContent.
-
setAllowUserCopyPasteContent
optional bool allow_user_copy_paste_content = 2;
- Parameters:
value
- The allowUserCopyPasteContent to set.- Returns:
- This builder for chaining.
-
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 interfacePdfSecuritySettingsOrBuilder
- 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 interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserCopyPasteContentForAccessibility.
-
setAllowUserCopyPasteContentForAccessibility
optional bool allow_user_copy_paste_content_for_accessibility = 3;
- Parameters:
value
- The allowUserCopyPasteContentForAccessibility to set.- Returns:
- This builder for chaining.
-
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 interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the allowUserEdits field is set.
-
getAllowUserEdits
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
- Specified by:
getAllowUserEdits
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserEdits.
-
setAllowUserEdits
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
-
setAllowUserEdits
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
-
mergeAllowUserEdits
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
-
clearAllowUserEdits
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
-
getAllowUserEditsBuilder
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
-
getAllowUserEditsOrBuilder
optional .IronPdfEngine.Proto.PdfEditSecurity allow_user_edits = 4;
- Specified by:
getAllowUserEditsOrBuilder
in interfacePdfSecuritySettingsOrBuilder
-
hasAllowUserFormData
public boolean hasAllowUserFormData()optional bool allow_user_form_data = 5;
- Specified by:
hasAllowUserFormData
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the allowUserFormData field is set.
-
getAllowUserFormData
public boolean getAllowUserFormData()optional bool allow_user_form_data = 5;
- Specified by:
getAllowUserFormData
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserFormData.
-
setAllowUserFormData
optional bool allow_user_form_data = 5;
- Parameters:
value
- The allowUserFormData to set.- Returns:
- This builder for chaining.
-
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 interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the allowUserPrinting field is set.
-
getAllowUserPrinting
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
- Specified by:
getAllowUserPrinting
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The allowUserPrinting.
-
setAllowUserPrinting
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
-
setAllowUserPrinting
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
-
mergeAllowUserPrinting
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
-
clearAllowUserPrinting
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
-
getAllowUserPrintingBuilder
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
-
getAllowUserPrintingOrBuilder
optional .IronPdfEngine.Proto.PdfPrintSecurity allow_user_printing = 6;
- Specified by:
getAllowUserPrintingOrBuilder
in interfacePdfSecuritySettingsOrBuilder
-
hasOwnerPassword
public boolean hasOwnerPassword()optional string owner_password = 7;
- Specified by:
hasOwnerPassword
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the ownerPassword field is set.
-
getOwnerPassword
optional string owner_password = 7;
- Specified by:
getOwnerPassword
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The ownerPassword.
-
getOwnerPasswordBytes
public com.google.protobuf.ByteString getOwnerPasswordBytes()optional string owner_password = 7;
- Specified by:
getOwnerPasswordBytes
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The bytes for ownerPassword.
-
setOwnerPassword
optional string owner_password = 7;
- Parameters:
value
- The ownerPassword to set.- Returns:
- This builder for chaining.
-
clearOwnerPassword
optional string owner_password = 7;
- Returns:
- This builder for chaining.
-
setOwnerPasswordBytes
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 interfacePdfSecuritySettingsOrBuilder
- Returns:
- Whether the userPassword field is set.
-
getUserPassword
optional string user_password = 8;
- Specified by:
getUserPassword
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The userPassword.
-
getUserPasswordBytes
public com.google.protobuf.ByteString getUserPasswordBytes()optional string user_password = 8;
- Specified by:
getUserPasswordBytes
in interfacePdfSecuritySettingsOrBuilder
- Returns:
- The bytes for userPassword.
-
setUserPassword
optional string user_password = 8;
- Parameters:
value
- The userPassword to set.- Returns:
- This builder for chaining.
-
clearUserPassword
optional string user_password = 8;
- Returns:
- This builder for chaining.
-
setUserPasswordBytes
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-
mergeUnknownFields
public final PdfSecuritySettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PdfSecuritySettings.Builder>
-