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

box / box-java-sdk-gen / #360

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

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.

18543 of 48681 relevant lines covered (38.09%)

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/aistudioagentlongtexttool/AiStudioAgentLongTextTool.java
1
package com.box.sdkgen.schemas.aistudioagentlongtexttool;
2

3
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
4
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextToolEmbeddingsField;
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 AiStudioAgentLongTextTool extends AiAgentLongTextTool {
16

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

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

24
  protected AiStudioAgentLongTextTool(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
    AiStudioAgentLongTextTool casted = (AiStudioAgentLongTextTool) 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(isCustomInstructionsIncluded, casted.isCustomInstructionsIncluded);
×
50
  }
51

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

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

97
  public static class Builder extends AiAgentLongTextTool.Builder {
×
98

99
    protected Boolean isCustomInstructionsIncluded;
100

101
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
102
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
103
      return this;
×
104
    }
105

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

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

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

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

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

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

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

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

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

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

166
    public AiStudioAgentLongTextTool build() {
167
      return new AiStudioAgentLongTextTool(this);
×
168
    }
169
  }
170
}
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