• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #4746

19 Aug 2025 10:21AM UTC coverage: 38.831% (+0.7%) from 38.166%
#4746

push

github

web-flow
feat: Support external user deletion API

20 of 167 new or added lines in 8 files covered. (11.98%)

145 existing lines in 18 files now uncovered.

19109 of 49211 relevant lines covered (38.83%)

0.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.06
/src/main/java/com/box/sdkgen/schemas/aiextract/AiExtract.java
1
package com.box.sdkgen.schemas.aiextract;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentextract.AiAgentExtract;
6
import com.box.sdkgen.schemas.aiagentreference.AiAgentReference;
7
import com.box.sdkgen.schemas.aiextractagent.AiExtractAgent;
8
import com.box.sdkgen.schemas.aiitembase.AiItemBase;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import java.util.List;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class AiExtract extends SerializableObject {
16

17
  protected final String prompt;
18

19
  protected final List<AiItemBase> items;
20

21
  @JsonProperty("ai_agent")
22
  protected AiExtractAgent aiAgent;
23

24
  public AiExtract(
25
      @JsonProperty("prompt") String prompt, @JsonProperty("items") List<AiItemBase> items) {
26
    super();
×
27
    this.prompt = prompt;
×
28
    this.items = items;
×
29
  }
×
30

31
  protected AiExtract(Builder builder) {
32
    super();
1✔
33
    this.prompt = builder.prompt;
1✔
34
    this.items = builder.items;
1✔
35
    this.aiAgent = builder.aiAgent;
1✔
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
37
  }
1✔
38

39
  public String getPrompt() {
40
    return prompt;
1✔
41
  }
42

43
  public List<AiItemBase> getItems() {
44
    return items;
1✔
45
  }
46

47
  public AiExtractAgent getAiAgent() {
48
    return aiAgent;
1✔
49
  }
50

51
  @Override
52
  public boolean equals(Object o) {
53
    if (this == o) {
×
54
      return true;
×
55
    }
56
    if (o == null || getClass() != o.getClass()) {
×
57
      return false;
×
58
    }
59
    AiExtract casted = (AiExtract) o;
×
60
    return Objects.equals(prompt, casted.prompt)
×
61
        && Objects.equals(items, casted.items)
×
62
        && Objects.equals(aiAgent, casted.aiAgent);
×
63
  }
64

65
  @Override
66
  public int hashCode() {
67
    return Objects.hash(prompt, items, aiAgent);
×
68
  }
69

70
  @Override
71
  public String toString() {
72
    return "AiExtract{"
×
73
        + "prompt='"
74
        + prompt
75
        + '\''
76
        + ", "
77
        + "items='"
78
        + items
79
        + '\''
80
        + ", "
81
        + "aiAgent='"
82
        + aiAgent
83
        + '\''
84
        + "}";
85
  }
86

87
  public static class Builder extends NullableFieldTracker {
88

89
    protected final String prompt;
90

91
    protected final List<AiItemBase> items;
92

93
    protected AiExtractAgent aiAgent;
94

95
    public Builder(String prompt, List<AiItemBase> items) {
96
      super();
1✔
97
      this.prompt = prompt;
1✔
98
      this.items = items;
1✔
99
    }
1✔
100

101
    public Builder aiAgent(AiAgentReference aiAgent) {
UNCOV
102
      this.aiAgent = new AiExtractAgent(aiAgent);
×
UNCOV
103
      return this;
×
104
    }
105

106
    public Builder aiAgent(AiAgentExtract aiAgent) {
107
      this.aiAgent = new AiExtractAgent(aiAgent);
1✔
108
      return this;
1✔
109
    }
110

111
    public Builder aiAgent(AiExtractAgent aiAgent) {
112
      this.aiAgent = aiAgent;
×
113
      return this;
×
114
    }
115

116
    public AiExtract build() {
117
      return new AiExtract(this);
1✔
118
    }
119
  }
120
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc