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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 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/aistudioagentbasictexttool/AiStudioAgentBasicTextTool.java
1
package com.box.sdkgen.schemas.aistudioagentbasictexttool;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttool.AiAgentBasicTextTool;
4
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
public class AiStudioAgentBasicTextTool extends AiAgentBasicTextTool {
9

10
  @JsonProperty("is_custom_instructions_included")
11
  protected Boolean isCustomInstructionsIncluded;
12

13
  public AiStudioAgentBasicTextTool() {
14
    super();
×
15
  }
×
16

17
  protected AiStudioAgentBasicTextTool(Builder builder) {
18
    super(builder);
×
19
    this.isCustomInstructionsIncluded = builder.isCustomInstructionsIncluded;
×
20
  }
×
21

22
  public Boolean getIsCustomInstructionsIncluded() {
23
    return isCustomInstructionsIncluded;
×
24
  }
25

26
  @Override
27
  public boolean equals(Object o) {
28
    if (this == o) {
×
29
      return true;
×
30
    }
31
    if (o == null || getClass() != o.getClass()) {
×
32
      return false;
×
33
    }
34
    AiStudioAgentBasicTextTool casted = (AiStudioAgentBasicTextTool) o;
×
35
    return Objects.equals(model, casted.model)
×
36
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
37
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
38
        && Objects.equals(systemMessage, casted.systemMessage)
×
39
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
40
        && Objects.equals(isCustomInstructionsIncluded, casted.isCustomInstructionsIncluded);
×
41
  }
42

43
  @Override
44
  public int hashCode() {
45
    return Objects.hash(
×
46
        model,
47
        numTokensForCompletion,
48
        llmEndpointParams,
49
        systemMessage,
50
        promptTemplate,
51
        isCustomInstructionsIncluded);
52
  }
53

54
  @Override
55
  public String toString() {
56
    return "AiStudioAgentBasicTextTool{"
×
57
        + "model='"
58
        + model
59
        + '\''
60
        + ", "
61
        + "numTokensForCompletion='"
62
        + numTokensForCompletion
63
        + '\''
64
        + ", "
65
        + "llmEndpointParams='"
66
        + llmEndpointParams
67
        + '\''
68
        + ", "
69
        + "systemMessage='"
70
        + systemMessage
71
        + '\''
72
        + ", "
73
        + "promptTemplate='"
74
        + promptTemplate
75
        + '\''
76
        + ", "
77
        + "isCustomInstructionsIncluded='"
78
        + isCustomInstructionsIncluded
79
        + '\''
80
        + "}";
81
  }
82

NEW
83
  public static class Builder extends AiAgentBasicTextTool.Builder {
×
84

85
    protected Boolean isCustomInstructionsIncluded;
86

87
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
UNCOV
88
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
89
      return this;
×
90
    }
91

92
    @Override
93
    public Builder model(String model) {
94
      this.model = model;
×
95
      return this;
×
96
    }
97

98
    @Override
99
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
100
      this.numTokensForCompletion = numTokensForCompletion;
×
101
      return this;
×
102
    }
103

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

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

116
    @Override
117
    public Builder promptTemplate(String promptTemplate) {
118
      this.promptTemplate = promptTemplate;
×
119
      return this;
×
120
    }
121

122
    public AiStudioAgentBasicTextTool build() {
123
      return new AiStudioAgentBasicTextTool(this);
×
124
    }
125
  }
126
}
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