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

box / box-java-sdk-gen / #541

05 Sep 2025 02:31PM UTC coverage: 7.451% (-29.2%) from 36.66%
#541

push

other

web-flow
chore: release version 0.8.1 (#437)

1 of 1 new or added line in 1 file covered. (100.0%)

14652 existing lines in 1191 files now uncovered.

3737 of 50151 relevant lines covered (7.45%)

0.07 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/aitextgen/AiTextGen.java
1
package com.box.sdkgen.schemas.aitextgen;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentreference.AiAgentReference;
6
import com.box.sdkgen.schemas.aiagentreferenceoraiagenttextgen.AiAgentReferenceOrAiAgentTextGen;
7
import com.box.sdkgen.schemas.aiagenttextgen.AiAgentTextGen;
8
import com.box.sdkgen.schemas.aidialoguehistory.AiDialogueHistory;
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 AiTextGen extends SerializableObject {
16

17
  protected final String prompt;
18

19
  protected final List<AiTextGenItemsField> items;
20

21
  @JsonProperty("dialogue_history")
22
  protected List<AiDialogueHistory> dialogueHistory;
23

24
  @JsonProperty("ai_agent")
25
  protected AiAgentReferenceOrAiAgentTextGen aiAgent;
26

27
  public AiTextGen(
28
      @JsonProperty("prompt") String prompt,
29
      @JsonProperty("items") List<AiTextGenItemsField> items) {
30
    super();
×
31
    this.prompt = prompt;
×
32
    this.items = items;
×
33
  }
×
34

35
  protected AiTextGen(Builder builder) {
UNCOV
36
    super();
×
UNCOV
37
    this.prompt = builder.prompt;
×
UNCOV
38
    this.items = builder.items;
×
UNCOV
39
    this.dialogueHistory = builder.dialogueHistory;
×
UNCOV
40
    this.aiAgent = builder.aiAgent;
×
UNCOV
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
42
  }
×
43

44
  public String getPrompt() {
UNCOV
45
    return prompt;
×
46
  }
47

48
  public List<AiTextGenItemsField> getItems() {
UNCOV
49
    return items;
×
50
  }
51

52
  public List<AiDialogueHistory> getDialogueHistory() {
UNCOV
53
    return dialogueHistory;
×
54
  }
55

56
  public AiAgentReferenceOrAiAgentTextGen getAiAgent() {
UNCOV
57
    return aiAgent;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
62
    if (this == o) {
×
63
      return true;
×
64
    }
65
    if (o == null || getClass() != o.getClass()) {
×
66
      return false;
×
67
    }
68
    AiTextGen casted = (AiTextGen) o;
×
69
    return Objects.equals(prompt, casted.prompt)
×
70
        && Objects.equals(items, casted.items)
×
71
        && Objects.equals(dialogueHistory, casted.dialogueHistory)
×
72
        && Objects.equals(aiAgent, casted.aiAgent);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return Objects.hash(prompt, items, dialogueHistory, aiAgent);
×
78
  }
79

80
  @Override
81
  public String toString() {
82
    return "AiTextGen{"
×
83
        + "prompt='"
84
        + prompt
85
        + '\''
86
        + ", "
87
        + "items='"
88
        + items
89
        + '\''
90
        + ", "
91
        + "dialogueHistory='"
92
        + dialogueHistory
93
        + '\''
94
        + ", "
95
        + "aiAgent='"
96
        + aiAgent
97
        + '\''
98
        + "}";
99
  }
100

101
  public static class Builder extends NullableFieldTracker {
102

103
    protected final String prompt;
104

105
    protected final List<AiTextGenItemsField> items;
106

107
    protected List<AiDialogueHistory> dialogueHistory;
108

109
    protected AiAgentReferenceOrAiAgentTextGen aiAgent;
110

111
    public Builder(String prompt, List<AiTextGenItemsField> items) {
UNCOV
112
      super();
×
UNCOV
113
      this.prompt = prompt;
×
UNCOV
114
      this.items = items;
×
UNCOV
115
    }
×
116

117
    public Builder dialogueHistory(List<AiDialogueHistory> dialogueHistory) {
UNCOV
118
      this.dialogueHistory = dialogueHistory;
×
UNCOV
119
      return this;
×
120
    }
121

122
    public Builder aiAgent(AiAgentReference aiAgent) {
123
      this.aiAgent = new AiAgentReferenceOrAiAgentTextGen(aiAgent);
×
124
      return this;
×
125
    }
126

127
    public Builder aiAgent(AiAgentTextGen aiAgent) {
UNCOV
128
      this.aiAgent = new AiAgentReferenceOrAiAgentTextGen(aiAgent);
×
UNCOV
129
      return this;
×
130
    }
131

132
    public Builder aiAgent(AiAgentReferenceOrAiAgentTextGen aiAgent) {
133
      this.aiAgent = aiAgent;
×
134
      return this;
×
135
    }
136

137
    public AiTextGen build() {
UNCOV
138
      return new AiTextGen(this);
×
139
    }
140
  }
141
}
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