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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.9
/src/main/java/com/box/sdkgen/schemas/aiagentbasictexttoolbase/AiAgentBasicTextToolBase.java
1
package com.box.sdkgen.schemas.aiagentbasictexttoolbase;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class AiAgentBasicTextToolBase extends SerializableObject {
12

13
  protected String model;
14

15
  @JsonProperty("num_tokens_for_completion")
16
  protected Long numTokensForCompletion;
17

18
  @JsonProperty("llm_endpoint_params")
19
  protected AiLlmEndpointParams llmEndpointParams;
20

21
  public AiAgentBasicTextToolBase() {
22
    super();
1✔
23
  }
1✔
24

25
  protected AiAgentBasicTextToolBase(Builder builder) {
26
    super();
×
27
    this.model = builder.model;
×
UNCOV
28
    this.numTokensForCompletion = builder.numTokensForCompletion;
×
UNCOV
29
    this.llmEndpointParams = builder.llmEndpointParams;
×
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
31
  }
×
32

33
  public String getModel() {
34
    return model;
×
35
  }
36

37
  public Long getNumTokensForCompletion() {
38
    return numTokensForCompletion;
×
39
  }
40

41
  public AiLlmEndpointParams getLlmEndpointParams() {
UNCOV
42
    return llmEndpointParams;
×
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) {
×
UNCOV
48
      return true;
×
49
    }
50
    if (o == null || getClass() != o.getClass()) {
×
51
      return false;
×
52
    }
UNCOV
53
    AiAgentBasicTextToolBase casted = (AiAgentBasicTextToolBase) o;
×
UNCOV
54
    return Objects.equals(model, casted.model)
×
UNCOV
55
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
UNCOV
56
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams);
×
57
  }
58

59
  @Override
60
  public int hashCode() {
UNCOV
61
    return Objects.hash(model, numTokensForCompletion, llmEndpointParams);
×
62
  }
63

64
  @Override
65
  public String toString() {
UNCOV
66
    return "AiAgentBasicTextToolBase{"
×
67
        + "model='"
68
        + model
69
        + '\''
70
        + ", "
71
        + "numTokensForCompletion='"
72
        + numTokensForCompletion
73
        + '\''
74
        + ", "
75
        + "llmEndpointParams='"
76
        + llmEndpointParams
77
        + '\''
78
        + "}";
79
  }
80

UNCOV
81
  public static class Builder extends NullableFieldTracker {
×
82

83
    protected String model;
84

85
    protected Long numTokensForCompletion;
86

87
    protected AiLlmEndpointParams llmEndpointParams;
88

89
    public Builder model(String model) {
UNCOV
90
      this.model = model;
×
91
      return this;
×
92
    }
93

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

99
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
100
      this.llmEndpointParams = llmEndpointParams;
×
101
      return this;
×
102
    }
103

104
    public AiAgentBasicTextToolBase build() {
UNCOV
105
      return new AiAgentBasicTextToolBase(this);
×
106
    }
107
  }
108
}
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