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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

10.71
/src/main/java/com/box/sdkgen/schemas/aiagenttextgen/AiAgentTextGen.java
1
package com.box.sdkgen.schemas.aiagenttextgen;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentbasicgentool.AiAgentBasicGenTool;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class AiAgentTextGen extends SerializableObject {
15

16
  @JsonDeserialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldDeserializer.class)
17
  @JsonSerialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldSerializer.class)
18
  protected EnumWrapper<AiAgentTextGenTypeField> type;
19

20
  @JsonProperty("basic_gen")
21
  protected AiAgentBasicGenTool basicGen;
22

23
  public AiAgentTextGen() {
24
    super();
1✔
25
    this.type = new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
1✔
26
  }
1✔
27

28
  protected AiAgentTextGen(Builder builder) {
29
    super();
×
UNCOV
30
    this.type = builder.type;
×
UNCOV
31
    this.basicGen = builder.basicGen;
×
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
33
  }
×
34

35
  public EnumWrapper<AiAgentTextGenTypeField> getType() {
36
    return type;
×
37
  }
38

39
  public AiAgentBasicGenTool getBasicGen() {
UNCOV
40
    return basicGen;
×
41
  }
42

43
  @Override
44
  public boolean equals(Object o) {
45
    if (this == o) {
×
UNCOV
46
      return true;
×
47
    }
48
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
49
      return false;
×
50
    }
UNCOV
51
    AiAgentTextGen casted = (AiAgentTextGen) o;
×
UNCOV
52
    return Objects.equals(type, casted.type) && Objects.equals(basicGen, casted.basicGen);
×
53
  }
54

55
  @Override
56
  public int hashCode() {
UNCOV
57
    return Objects.hash(type, basicGen);
×
58
  }
59

60
  @Override
61
  public String toString() {
UNCOV
62
    return "AiAgentTextGen{" + "type='" + type + '\'' + ", " + "basicGen='" + basicGen + '\'' + "}";
×
63
  }
64

65
  public static class Builder extends NullableFieldTracker {
66

67
    protected EnumWrapper<AiAgentTextGenTypeField> type;
68

69
    protected AiAgentBasicGenTool basicGen;
70

71
    public Builder() {
UNCOV
72
      super();
×
73
      this.type =
×
74
          new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
UNCOV
75
    }
×
76

77
    public Builder type(AiAgentTextGenTypeField type) {
78
      this.type = new EnumWrapper<AiAgentTextGenTypeField>(type);
×
79
      return this;
×
80
    }
81

82
    public Builder type(EnumWrapper<AiAgentTextGenTypeField> type) {
83
      this.type = type;
×
84
      return this;
×
85
    }
86

87
    public Builder basicGen(AiAgentBasicGenTool basicGen) {
88
      this.basicGen = basicGen;
×
UNCOV
89
      return this;
×
90
    }
91

92
    public AiAgentTextGen build() {
UNCOV
93
      return new AiAgentTextGen(this);
×
94
    }
95
  }
96
}
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

© 2026 Coveralls, Inc