Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -20967,6 +20967,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun getProtectActionDeleteDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionDeleteDetails;
public fun getProtectActionExportDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionExportDetails;
public fun getProtectActionRemoveCollaboratorDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveCollaboratorDetails;
public fun getProtectActionRemoveDomainsDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsDetails;
public fun getProtectActionRemoveLinkDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveLinkDetails;
public fun getProtectActionStopSharingDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionStopSharingDetails;
public fun getProtectInternalDomainsChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedDetails;
Expand Down Expand Up @@ -21638,6 +21639,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun isProtectActionDeleteDetails ()Z
public fun isProtectActionExportDetails ()Z
public fun isProtectActionRemoveCollaboratorDetails ()Z
public fun isProtectActionRemoveDomainsDetails ()Z
public fun isProtectActionRemoveLinkDetails ()Z
public fun isProtectActionStopSharingDetails ()Z
public fun isProtectInternalDomainsChangedDetails ()Z
Expand Down Expand Up @@ -22042,6 +22044,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public static fun protectActionDeleteDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionDeleteDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectActionExportDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionExportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectActionRemoveCollaboratorDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveCollaboratorDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectActionRemoveDomainsDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectActionRemoveLinkDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveLinkDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectActionStopSharingDetails (Lcom/dropbox/core/v2/teamlog/ProtectActionStopSharingDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectInternalDomainsChangedDetails (Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
Expand Down Expand Up @@ -22683,6 +22686,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails$Tag : java/lang/Enum
public static final field PROTECT_ACTION_DELETE_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_ACTION_EXPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_ACTION_REMOVE_COLLABORATOR_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_ACTION_REMOVE_DOMAINS_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_ACTION_REMOVE_LINK_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_ACTION_STOP_SHARING_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
Expand Down Expand Up @@ -23518,6 +23522,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun getProtectActionDeleteValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionDeleteType;
public fun getProtectActionExportValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionExportType;
public fun getProtectActionRemoveCollaboratorValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveCollaboratorType;
public fun getProtectActionRemoveDomainsValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsType;
public fun getProtectActionRemoveLinkValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveLinkType;
public fun getProtectActionStopSharingValue ()Lcom/dropbox/core/v2/teamlog/ProtectActionStopSharingType;
public fun getProtectInternalDomainsChangedValue ()Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedType;
Expand Down Expand Up @@ -24188,6 +24193,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun isProtectActionDelete ()Z
public fun isProtectActionExport ()Z
public fun isProtectActionRemoveCollaborator ()Z
public fun isProtectActionRemoveDomains ()Z
public fun isProtectActionRemoveLink ()Z
public fun isProtectActionStopSharing ()Z
public fun isProtectInternalDomainsChanged ()Z
Expand Down Expand Up @@ -24591,6 +24597,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public static fun protectActionDelete (Lcom/dropbox/core/v2/teamlog/ProtectActionDeleteType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectActionExport (Lcom/dropbox/core/v2/teamlog/ProtectActionExportType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectActionRemoveCollaborator (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveCollaboratorType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectActionRemoveDomains (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectActionRemoveLink (Lcom/dropbox/core/v2/teamlog/ProtectActionRemoveLinkType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectActionStopSharing (Lcom/dropbox/core/v2/teamlog/ProtectActionStopSharingType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectInternalDomainsChanged (Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedType;)Lcom/dropbox/core/v2/teamlog/EventType;
Expand Down Expand Up @@ -25231,6 +25238,7 @@ public final class com/dropbox/core/v2/teamlog/EventType$Tag : java/lang/Enum {
public static final field PROTECT_ACTION_DELETE Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_ACTION_EXPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_ACTION_REMOVE_COLLABORATOR Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_ACTION_REMOVE_DOMAINS Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_ACTION_REMOVE_LINK Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_ACTION_STOP_SHARING Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
Expand Down Expand Up @@ -25870,6 +25878,7 @@ public final class com/dropbox/core/v2/teamlog/EventTypeArg : java/lang/Enum {
public static final field PROTECT_ACTION_DELETE Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_ACTION_EXPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_ACTION_REMOVE_COLLABORATOR Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_ACTION_REMOVE_DOMAINS Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_ACTION_REMOVE_LINK Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_ACTION_STOP_SHARING Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
Expand Down Expand Up @@ -32741,6 +32750,26 @@ public class com/dropbox/core/v2/teamlog/ProtectActionRemoveCollaboratorType {
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsDetails {
protected final field actionId Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
public fun equals (Ljava/lang/Object;)Z
public fun getActionId ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/ProtectActionRemoveDomainsType {
protected final field description Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
public fun equals (Ljava/lang/Object;)Z
public fun getDescription ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/ProtectActionRemoveLinkDetails {
protected final field actionId Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ public enum Tag {
PROTECT_ACTION_DELETE_DETAILS, // ProtectActionDeleteDetails
PROTECT_ACTION_EXPORT_DETAILS, // ProtectActionExportDetails
PROTECT_ACTION_REMOVE_COLLABORATOR_DETAILS, // ProtectActionRemoveCollaboratorDetails
PROTECT_ACTION_REMOVE_DOMAINS_DETAILS, // ProtectActionRemoveDomainsDetails
PROTECT_ACTION_REMOVE_LINK_DETAILS, // ProtectActionRemoveLinkDetails
PROTECT_ACTION_STOP_SHARING_DETAILS, // ProtectActionStopSharingDetails
PROTECT_INTERNAL_DOMAINS_CHANGED_DETAILS, // ProtectInternalDomainsChangedDetails
Expand Down Expand Up @@ -976,6 +977,7 @@ public enum Tag {
private ProtectActionDeleteDetails protectActionDeleteDetailsValue;
private ProtectActionExportDetails protectActionExportDetailsValue;
private ProtectActionRemoveCollaboratorDetails protectActionRemoveCollaboratorDetailsValue;
private ProtectActionRemoveDomainsDetails protectActionRemoveDomainsDetailsValue;
private ProtectActionRemoveLinkDetails protectActionRemoveLinkDetailsValue;
private ProtectActionStopSharingDetails protectActionStopSharingDetailsValue;
private ProtectInternalDomainsChangedDetails protectInternalDomainsChangedDetailsValue;
Expand Down Expand Up @@ -5929,6 +5931,22 @@ private EventDetails withTagAndProtectActionRemoveCollaboratorDetails(Tag _tag,
return result;
}

/**
* Additional fields depending on the event type.
*
* @param protectActionRemoveDomainsDetailsValue Must not be {@code null}.
* @param _tag Discriminating tag for this instance.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
private EventDetails withTagAndProtectActionRemoveDomainsDetails(Tag _tag, ProtectActionRemoveDomainsDetails protectActionRemoveDomainsDetailsValue) {
EventDetails result = new EventDetails();
result._tag = _tag;
result.protectActionRemoveDomainsDetailsValue = protectActionRemoveDomainsDetailsValue;
return result;
}

/**
* Additional fields depending on the event type.
*
Expand Down Expand Up @@ -25483,6 +25501,55 @@ public ProtectActionRemoveCollaboratorDetails getProtectActionRemoveCollaborator
return protectActionRemoveCollaboratorDetailsValue;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#PROTECT_ACTION_REMOVE_DOMAINS_DETAILS}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#PROTECT_ACTION_REMOVE_DOMAINS_DETAILS}, {@code false} otherwise.
*/
public boolean isProtectActionRemoveDomainsDetails() {
return this._tag == Tag.PROTECT_ACTION_REMOVE_DOMAINS_DETAILS;
}

/**
* Returns an instance of {@code EventDetails} that has its tag set to
* {@link Tag#PROTECT_ACTION_REMOVE_DOMAINS_DETAILS}.
*
* <p> None </p>
*
* @param value value to assign to this instance.
*
* @return Instance of {@code EventDetails} with its tag set to {@link
* Tag#PROTECT_ACTION_REMOVE_DOMAINS_DETAILS}.
*
* @throws IllegalArgumentException if {@code value} is {@code null}.
*/
public static EventDetails protectActionRemoveDomainsDetails(ProtectActionRemoveDomainsDetails value) {
if (value == null) {
throw new IllegalArgumentException("Value is null");
}
return new EventDetails().withTagAndProtectActionRemoveDomainsDetails(Tag.PROTECT_ACTION_REMOVE_DOMAINS_DETAILS, value);
}

/**
* This instance must be tagged as {@link
* Tag#PROTECT_ACTION_REMOVE_DOMAINS_DETAILS}.
*
* @return The {@link ProtectActionRemoveDomainsDetails} value associated
* with this instance if {@link #isProtectActionRemoveDomainsDetails} is
* {@code true}.
*
* @throws IllegalStateException If {@link
* #isProtectActionRemoveDomainsDetails} is {@code false}.
*/
public ProtectActionRemoveDomainsDetails getProtectActionRemoveDomainsDetailsValue() {
if (this._tag != Tag.PROTECT_ACTION_REMOVE_DOMAINS_DETAILS) {
throw new IllegalStateException("Invalid tag: required Tag.PROTECT_ACTION_REMOVE_DOMAINS_DETAILS, but was Tag." + this._tag.name());
}
return protectActionRemoveDomainsDetailsValue;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#PROTECT_ACTION_REMOVE_LINK_DETAILS}, {@code false} otherwise.
Expand Down Expand Up @@ -43159,6 +43226,7 @@ public int hashCode() {
this.protectActionDeleteDetailsValue,
this.protectActionExportDetailsValue,
this.protectActionRemoveCollaboratorDetailsValue,
this.protectActionRemoveDomainsDetailsValue,
this.protectActionRemoveLinkDetailsValue,
this.protectActionStopSharingDetailsValue,
this.protectInternalDomainsChangedDetailsValue,
Expand Down Expand Up @@ -44093,6 +44161,8 @@ else if (obj instanceof EventDetails) {
return (this.protectActionExportDetailsValue == other.protectActionExportDetailsValue) || (this.protectActionExportDetailsValue.equals(other.protectActionExportDetailsValue));
case PROTECT_ACTION_REMOVE_COLLABORATOR_DETAILS:
return (this.protectActionRemoveCollaboratorDetailsValue == other.protectActionRemoveCollaboratorDetailsValue) || (this.protectActionRemoveCollaboratorDetailsValue.equals(other.protectActionRemoveCollaboratorDetailsValue));
case PROTECT_ACTION_REMOVE_DOMAINS_DETAILS:
return (this.protectActionRemoveDomainsDetailsValue == other.protectActionRemoveDomainsDetailsValue) || (this.protectActionRemoveDomainsDetailsValue.equals(other.protectActionRemoveDomainsDetailsValue));
case PROTECT_ACTION_REMOVE_LINK_DETAILS:
return (this.protectActionRemoveLinkDetailsValue == other.protectActionRemoveLinkDetailsValue) || (this.protectActionRemoveLinkDetailsValue.equals(other.protectActionRemoveLinkDetailsValue));
case PROTECT_ACTION_STOP_SHARING_DETAILS:
Expand Down Expand Up @@ -46808,6 +46878,13 @@ public void serialize(EventDetails value, JsonGenerator g) throws IOException, J
g.writeEndObject();
break;
}
case PROTECT_ACTION_REMOVE_DOMAINS_DETAILS: {
g.writeStartObject();
writeTag("protect_action_remove_domains_details", g);
ProtectActionRemoveDomainsDetails.Serializer.INSTANCE.serialize(value.protectActionRemoveDomainsDetailsValue, g, true);
g.writeEndObject();
break;
}
case PROTECT_ACTION_REMOVE_LINK_DETAILS: {
g.writeStartObject();
writeTag("protect_action_remove_link_details", g);
Expand Down Expand Up @@ -50706,6 +50783,11 @@ else if ("protect_action_remove_collaborator_details".equals(tag)) {
fieldValue = ProtectActionRemoveCollaboratorDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.protectActionRemoveCollaboratorDetails(fieldValue);
}
else if ("protect_action_remove_domains_details".equals(tag)) {
ProtectActionRemoveDomainsDetails fieldValue = null;
fieldValue = ProtectActionRemoveDomainsDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.protectActionRemoveDomainsDetails(fieldValue);
}
else if ("protect_action_remove_link_details".equals(tag)) {
ProtectActionRemoveLinkDetails fieldValue = null;
fieldValue = ProtectActionRemoveLinkDetails.Serializer.INSTANCE.deserialize(p, true);
Expand Down
Loading
Loading