• 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/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.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
public class AiStudioAgentLongTextTool extends AiAgentLongTextTool {
10

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

14
  public AiStudioAgentLongTextTool() {
15
    super();
×
16
  }
×
17

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

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

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

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

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

NEW
90
  public static class Builder extends AiAgentLongTextTool.Builder {
×
91

92
    protected Boolean isCustomInstructionsIncluded;
93

94
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
UNCOV
95
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
96
      return this;
×
97
    }
98

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

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

111
    @Override
112
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
113
      this.llmEndpointParams = llmEndpointParams;
×
114
      return this;
×
115
    }
116

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

123
    @Override
124
    public Builder promptTemplate(String promptTemplate) {
125
      this.promptTemplate = promptTemplate;
×
126
      return this;
×
127
    }
128

129
    @Override
130
    public Builder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
UNCOV
131
      this.embeddings = embeddings;
×
132
      return this;
×
133
    }
134

135
    public AiStudioAgentLongTextTool build() {
136
      return new AiStudioAgentLongTextTool(this);
×
137
    }
138
  }
139
}
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