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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

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

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

11
public class AiAgentTextGen extends SerializableObject {
12

13
  @JsonDeserialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldDeserializer.class)
14
  @JsonSerialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldSerializer.class)
15
  protected EnumWrapper<AiAgentTextGenTypeField> type;
16

17
  @JsonProperty("basic_gen")
18
  protected AiAgentBasicGenTool basicGen;
19

20
  public AiAgentTextGen() {
21
    super();
1✔
22
    this.type = new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
1✔
23
  }
1✔
24

25
  protected AiAgentTextGen(Builder builder) {
26
    super();
×
27
    this.type = builder.type;
×
28
    this.basicGen = builder.basicGen;
×
29
  }
×
30

31
  public EnumWrapper<AiAgentTextGenTypeField> getType() {
32
    return type;
×
33
  }
34

35
  public AiAgentBasicGenTool getBasicGen() {
36
    return basicGen;
×
37
  }
38

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

51
  @Override
52
  public int hashCode() {
53
    return Objects.hash(type, basicGen);
×
54
  }
55

56
  @Override
57
  public String toString() {
58
    return "AiAgentTextGen{" + "type='" + type + '\'' + ", " + "basicGen='" + basicGen + '\'' + "}";
×
59
  }
60

61
  public static class Builder {
62

63
    protected EnumWrapper<AiAgentTextGenTypeField> type;
64

65
    protected AiAgentBasicGenTool basicGen;
66

NEW
67
    public Builder() {
×
68
      this.type =
×
69
          new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
70
    }
×
71

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

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

82
    public Builder basicGen(AiAgentBasicGenTool basicGen) {
83
      this.basicGen = basicGen;
×
84
      return this;
×
85
    }
86

87
    public AiAgentTextGen build() {
88
      return new AiAgentTextGen(this);
×
89
    }
90
  }
91
}
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