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

box / box-java-sdk-gen / #295

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

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

5.88
/src/main/java/com/box/sdkgen/schemas/aiagentlongtexttooltextgen/AiAgentLongTextToolTextGen.java
1
package com.box.sdkgen.schemas.aiagentlongtexttooltextgen;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttooltextgen.AiAgentBasicTextToolTextGen;
4
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class AiAgentLongTextToolTextGen extends AiAgentBasicTextToolTextGen {
10

11
  protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
12

13
  public AiAgentLongTextToolTextGen() {
14
    super();
1✔
15
  }
1✔
16

17
  protected AiAgentLongTextToolTextGen(Builder builder) {
18
    super(builder);
×
UNCOV
19
    this.embeddings = builder.embeddings;
×
UNCOV
20
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
21
  }
×
22

23
  public AiAgentLongTextToolTextGenEmbeddingsField getEmbeddings() {
UNCOV
24
    return embeddings;
×
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
    AiAgentLongTextToolTextGen casted = (AiAgentLongTextToolTextGen) o;
×
36
    return Objects.equals(model, casted.model)
×
37
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
38
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
UNCOV
39
        && Objects.equals(systemMessage, casted.systemMessage)
×
UNCOV
40
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
UNCOV
41
        && Objects.equals(embeddings, casted.embeddings);
×
42
  }
43

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

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

UNCOV
84
  public static class Builder extends AiAgentBasicTextToolTextGen.Builder {
×
85

86
    protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
87

88
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
UNCOV
89
      this.embeddings = embeddings;
×
UNCOV
90
      return this;
×
91
    }
92

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

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

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

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

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

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