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

box / box-java-sdk-gen / #362

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

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%)

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

0.0
/src/main/java/com/box/sdkgen/schemas/aistudioagentbasicgentool/AiStudioAgentBasicGenTool.java
1
package com.box.sdkgen.schemas.aistudioagentbasicgentool;
2

3
import com.box.sdkgen.schemas.aiagentbasicgentool.AiAgentBasicGenTool;
4
import com.box.sdkgen.schemas.aiagentlongtexttooltextgen.AiAgentLongTextToolTextGenEmbeddingsField;
5
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
6
import com.box.sdkgen.schemas.aillmendpointparamsaws.AiLlmEndpointParamsAws;
7
import com.box.sdkgen.schemas.aillmendpointparamsgoogle.AiLlmEndpointParamsGoogle;
8
import com.box.sdkgen.schemas.aillmendpointparamsibm.AiLlmEndpointParamsIbm;
9
import com.box.sdkgen.schemas.aillmendpointparamsopenai.AiLlmEndpointParamsOpenAi;
10
import com.fasterxml.jackson.annotation.JsonFilter;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import java.util.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class AiStudioAgentBasicGenTool extends AiAgentBasicGenTool {
16

17
  @JsonProperty("is_custom_instructions_included")
18
  protected Boolean isCustomInstructionsIncluded;
19

20
  public AiStudioAgentBasicGenTool() {
21
    super();
×
22
  }
×
23

24
  protected AiStudioAgentBasicGenTool(Builder builder) {
25
    super(builder);
×
26
    this.isCustomInstructionsIncluded = builder.isCustomInstructionsIncluded;
×
27
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
28
  }
×
29

30
  public Boolean getIsCustomInstructionsIncluded() {
31
    return isCustomInstructionsIncluded;
×
32
  }
33

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

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(
×
56
        model,
57
        numTokensForCompletion,
58
        llmEndpointParams,
59
        systemMessage,
60
        promptTemplate,
61
        embeddings,
62
        contentTemplate,
63
        isCustomInstructionsIncluded);
64
  }
65

66
  @Override
67
  public String toString() {
68
    return "AiStudioAgentBasicGenTool{"
×
69
        + "model='"
70
        + model
71
        + '\''
72
        + ", "
73
        + "numTokensForCompletion='"
74
        + numTokensForCompletion
75
        + '\''
76
        + ", "
77
        + "llmEndpointParams='"
78
        + llmEndpointParams
79
        + '\''
80
        + ", "
81
        + "systemMessage='"
82
        + systemMessage
83
        + '\''
84
        + ", "
85
        + "promptTemplate='"
86
        + promptTemplate
87
        + '\''
88
        + ", "
89
        + "embeddings='"
90
        + embeddings
91
        + '\''
92
        + ", "
93
        + "contentTemplate='"
94
        + contentTemplate
95
        + '\''
96
        + ", "
97
        + "isCustomInstructionsIncluded='"
98
        + isCustomInstructionsIncluded
99
        + '\''
100
        + "}";
101
  }
102

103
  public static class Builder extends AiAgentBasicGenTool.Builder {
×
104

105
    protected Boolean isCustomInstructionsIncluded;
106

107
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
108
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
109
      return this;
×
110
    }
111

112
    @Override
113
    public Builder model(String model) {
114
      this.model = model;
×
115
      return this;
×
116
    }
117

118
    @Override
119
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
120
      this.numTokensForCompletion = numTokensForCompletion;
×
121
      return this;
×
122
    }
123

124
    @Override
125
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
NEW
126
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
127
      return this;
×
128
    }
129

130
    @Override
131
    public Builder llmEndpointParams(AiLlmEndpointParamsGoogle llmEndpointParams) {
NEW
132
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
133
      return this;
×
134
    }
135

136
    @Override
137
    public Builder llmEndpointParams(AiLlmEndpointParamsAws llmEndpointParams) {
NEW
138
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
139
      return this;
×
140
    }
141

142
    @Override
143
    public Builder llmEndpointParams(AiLlmEndpointParamsIbm llmEndpointParams) {
NEW
144
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
NEW
145
      return this;
×
146
    }
147

148
    @Override
149
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
150
      this.llmEndpointParams = llmEndpointParams;
×
151
      return this;
×
152
    }
153

154
    @Override
155
    public Builder systemMessage(String systemMessage) {
156
      this.systemMessage = systemMessage;
×
157
      return this;
×
158
    }
159

160
    @Override
161
    public Builder promptTemplate(String promptTemplate) {
162
      this.promptTemplate = promptTemplate;
×
163
      return this;
×
164
    }
165

166
    @Override
167
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
168
      this.embeddings = embeddings;
×
169
      return this;
×
170
    }
171

172
    @Override
173
    public Builder contentTemplate(String contentTemplate) {
174
      this.contentTemplate = contentTemplate;
×
175
      return this;
×
176
    }
177

178
    public AiStudioAgentBasicGenTool build() {
179
      return new AiStudioAgentBasicGenTool(this);
×
180
    }
181
  }
182
}
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