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

box / box-java-sdk-gen / #293

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

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

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.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class AiStudioAgentLongTextTool extends AiAgentLongTextTool {
12

13
  @JsonProperty("is_custom_instructions_included")
14
  protected Boolean isCustomInstructionsIncluded;
15

16
  public AiStudioAgentLongTextTool() {
UNCOV
17
    super();
×
UNCOV
18
  }
×
19

20
  protected AiStudioAgentLongTextTool(Builder builder) {
21
    super(builder);
×
UNCOV
22
    this.isCustomInstructionsIncluded = builder.isCustomInstructionsIncluded;
×
UNCOV
23
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
24
  }
×
25

26
  public Boolean getIsCustomInstructionsIncluded() {
UNCOV
27
    return isCustomInstructionsIncluded;
×
28
  }
29

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

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

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

UNCOV
93
  public static class Builder extends AiAgentLongTextTool.Builder {
×
94

95
    protected Boolean isCustomInstructionsIncluded;
96

97
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
UNCOV
98
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
UNCOV
99
      return this;
×
100
    }
101

102
    @Override
103
    public Builder model(String model) {
UNCOV
104
      this.model = model;
×
UNCOV
105
      return this;
×
106
    }
107

108
    @Override
109
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
UNCOV
110
      this.numTokensForCompletion = numTokensForCompletion;
×
UNCOV
111
      return this;
×
112
    }
113

114
    @Override
115
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
116
      this.llmEndpointParams = llmEndpointParams;
×
UNCOV
117
      return this;
×
118
    }
119

120
    @Override
121
    public Builder systemMessage(String systemMessage) {
UNCOV
122
      this.systemMessage = systemMessage;
×
UNCOV
123
      return this;
×
124
    }
125

126
    @Override
127
    public Builder promptTemplate(String promptTemplate) {
UNCOV
128
      this.promptTemplate = promptTemplate;
×
UNCOV
129
      return this;
×
130
    }
131

132
    @Override
133
    public Builder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
UNCOV
134
      this.embeddings = embeddings;
×
UNCOV
135
      return this;
×
136
    }
137

138
    public AiStudioAgentLongTextTool build() {
UNCOV
139
      return new AiStudioAgentLongTextTool(this);
×
140
    }
141
  }
142
}
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