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

box / box-java-sdk-gen / #356

11 Jul 2025 04:43PM UTC coverage: 38.076% (+2.5%) from 35.58%
#356

Pull #361

github

web-flow
Merge 112b63b24 into 426763c84
Pull Request #361: feat: Support common fields in Union in Java (box/box-codegen#758)

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

167 existing lines in 45 files now uncovered.

18536 of 48681 relevant lines covered (38.08%)

0.38 hits per line

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

9.76
/src/main/java/com/box/sdkgen/schemas/aiagentbasictexttooltextgen/AiAgentBasicTextToolTextGen.java
1
package com.box.sdkgen.schemas.aiagentbasictexttooltextgen;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttoolbase.AiAgentBasicTextToolBase;
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 com.fasterxml.jackson.annotation.JsonProperty;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class AiAgentBasicTextToolTextGen extends AiAgentBasicTextToolBase {
15

16
  @JsonProperty("system_message")
17
  protected String systemMessage;
18

19
  @JsonProperty("prompt_template")
20
  protected String promptTemplate;
21

22
  public AiAgentBasicTextToolTextGen() {
23
    super();
1✔
24
  }
1✔
25

26
  protected AiAgentBasicTextToolTextGen(Builder builder) {
27
    super(builder);
×
28
    this.systemMessage = builder.systemMessage;
×
29
    this.promptTemplate = builder.promptTemplate;
×
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
31
  }
×
32

33
  public String getSystemMessage() {
34
    return systemMessage;
1✔
35
  }
36

37
  public String getPromptTemplate() {
38
    return promptTemplate;
1✔
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    AiAgentBasicTextToolTextGen casted = (AiAgentBasicTextToolTextGen) o;
×
50
    return Objects.equals(model, casted.model)
×
51
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
52
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
53
        && Objects.equals(systemMessage, casted.systemMessage)
×
54
        && Objects.equals(promptTemplate, casted.promptTemplate);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
59
    return Objects.hash(
×
60
        model, numTokensForCompletion, llmEndpointParams, systemMessage, promptTemplate);
61
  }
62

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

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

90
    protected String systemMessage;
91

92
    protected String promptTemplate;
93

94
    public Builder systemMessage(String systemMessage) {
95
      this.systemMessage = systemMessage;
×
96
      return this;
×
97
    }
98

99
    public Builder promptTemplate(String promptTemplate) {
100
      this.promptTemplate = promptTemplate;
×
101
      return this;
×
102
    }
103

104
    @Override
105
    public Builder model(String model) {
106
      this.model = model;
×
107
      return this;
×
108
    }
109

110
    @Override
111
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
112
      this.numTokensForCompletion = numTokensForCompletion;
×
113
      return this;
×
114
    }
115

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

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

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

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

140
    @Override
141
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
142
      this.llmEndpointParams = llmEndpointParams;
×
143
      return this;
×
144
    }
145

146
    public AiAgentBasicTextToolTextGen build() {
147
      return new AiAgentBasicTextToolTextGen(this);
×
148
    }
149
  }
150
}
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