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

box / box-java-sdk-gen / #359

14 Jul 2025 11:20AM UTC coverage: 38.075% (+2.5%) from 35.58%
#359

push

github

web-flow
feat: Support common union fields and implicit union conversion (box/box-codegen#758) (#361)

288 of 1203 new or added lines in 106 files covered. (23.94%)

165 existing lines in 43 files now uncovered.

18537 of 48685 relevant lines covered (38.08%)

0.38 hits per line

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

7.14
/src/main/java/com/box/sdkgen/schemas/aiagentlongtexttooltextgen/AiAgentLongTextToolTextGen.java
1
package com.box.sdkgen.schemas.aiagentlongtexttooltextgen;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttooltextgen.AiAgentBasicTextToolTextGen;
4
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
5
import com.box.sdkgen.schemas.aillmendpointparamsaws.AiLlmEndpointParamsAws;
6
import com.box.sdkgen.schemas.aillmendpointparamsgoogle.AiLlmEndpointParamsGoogle;
7
import com.box.sdkgen.schemas.aillmendpointparamsibm.AiLlmEndpointParamsIbm;
8
import com.box.sdkgen.schemas.aillmendpointparamsopenai.AiLlmEndpointParamsOpenAi;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class AiAgentLongTextToolTextGen extends AiAgentBasicTextToolTextGen {
14

15
  protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
16

17
  public AiAgentLongTextToolTextGen() {
18
    super();
1✔
19
  }
1✔
20

21
  protected AiAgentLongTextToolTextGen(Builder builder) {
22
    super(builder);
×
23
    this.embeddings = builder.embeddings;
×
24
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
25
  }
×
26

27
  public AiAgentLongTextToolTextGenEmbeddingsField getEmbeddings() {
28
    return embeddings;
1✔
29
  }
30

31
  @Override
32
  public boolean equals(Object o) {
33
    if (this == o) {
×
34
      return true;
×
35
    }
36
    if (o == null || getClass() != o.getClass()) {
×
37
      return false;
×
38
    }
39
    AiAgentLongTextToolTextGen casted = (AiAgentLongTextToolTextGen) o;
×
40
    return Objects.equals(model, casted.model)
×
41
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
42
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
43
        && Objects.equals(systemMessage, casted.systemMessage)
×
44
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
45
        && Objects.equals(embeddings, casted.embeddings);
×
46
  }
47

48
  @Override
49
  public int hashCode() {
50
    return Objects.hash(
×
51
        model,
52
        numTokensForCompletion,
53
        llmEndpointParams,
54
        systemMessage,
55
        promptTemplate,
56
        embeddings);
57
  }
58

59
  @Override
60
  public String toString() {
61
    return "AiAgentLongTextToolTextGen{"
×
62
        + "model='"
63
        + model
64
        + '\''
65
        + ", "
66
        + "numTokensForCompletion='"
67
        + numTokensForCompletion
68
        + '\''
69
        + ", "
70
        + "llmEndpointParams='"
71
        + llmEndpointParams
72
        + '\''
73
        + ", "
74
        + "systemMessage='"
75
        + systemMessage
76
        + '\''
77
        + ", "
78
        + "promptTemplate='"
79
        + promptTemplate
80
        + '\''
81
        + ", "
82
        + "embeddings='"
83
        + embeddings
84
        + '\''
85
        + "}";
86
  }
87

88
  public static class Builder extends AiAgentBasicTextToolTextGen.Builder {
×
89

90
    protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
91

92
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
93
      this.embeddings = embeddings;
×
94
      return this;
×
95
    }
96

97
    @Override
98
    public Builder model(String model) {
99
      this.model = model;
×
100
      return this;
×
101
    }
102

103
    @Override
104
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
105
      this.numTokensForCompletion = numTokensForCompletion;
×
106
      return this;
×
107
    }
108

109
    @Override
110
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
NEW
111
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
112
      return this;
×
113
    }
114

115
    @Override
116
    public Builder llmEndpointParams(AiLlmEndpointParamsGoogle llmEndpointParams) {
NEW
117
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
118
      return this;
×
119
    }
120

121
    @Override
122
    public Builder llmEndpointParams(AiLlmEndpointParamsAws llmEndpointParams) {
NEW
123
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
124
      return this;
×
125
    }
126

127
    @Override
128
    public Builder llmEndpointParams(AiLlmEndpointParamsIbm llmEndpointParams) {
NEW
129
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
130
      return this;
×
131
    }
132

133
    @Override
134
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
135
      this.llmEndpointParams = llmEndpointParams;
×
136
      return this;
×
137
    }
138

139
    @Override
140
    public Builder systemMessage(String systemMessage) {
141
      this.systemMessage = systemMessage;
×
142
      return this;
×
143
    }
144

145
    @Override
146
    public Builder promptTemplate(String promptTemplate) {
147
      this.promptTemplate = promptTemplate;
×
148
      return this;
×
149
    }
150

151
    public AiAgentLongTextToolTextGen build() {
152
      return new AiAgentLongTextToolTextGen(this);
×
153
    }
154
  }
155
}
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