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

9
public class AiStudioAgentBasicGenTool extends AiAgentBasicGenTool {
10

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

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

18
  protected AiStudioAgentBasicGenTool(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
    AiStudioAgentBasicGenTool casted = (AiStudioAgentBasicGenTool) 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(contentTemplate, casted.contentTemplate)
×
43
        && Objects.equals(isCustomInstructionsIncluded, casted.isCustomInstructionsIncluded);
×
44
  }
45

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

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

NEW
96
  public static class Builder extends AiAgentBasicGenTool.Builder {
×
97

98
    protected Boolean isCustomInstructionsIncluded;
99

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

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

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

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

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

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

135
    @Override
136
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
UNCOV
137
      this.embeddings = embeddings;
×
138
      return this;
×
139
    }
140

141
    @Override
142
    public Builder contentTemplate(String contentTemplate) {
143
      this.contentTemplate = contentTemplate;
×
144
      return this;
×
145
    }
146

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