• 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

5.56
/src/main/java/com/box/sdkgen/schemas/aillmendpointparamsopenai/AiLlmEndpointParamsOpenAi.java
1
package com.box.sdkgen.schemas.aillmendpointparamsopenai;
2

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class AiLlmEndpointParamsOpenAi extends SerializableObject {
15

16
  @JsonDeserialize(
17
      using =
18
          AiLlmEndpointParamsOpenAiTypeField.AiLlmEndpointParamsOpenAiTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = AiLlmEndpointParamsOpenAiTypeField.AiLlmEndpointParamsOpenAiTypeFieldSerializer.class)
21
  protected EnumWrapper<AiLlmEndpointParamsOpenAiTypeField> type;
22

23
  @Nullable protected Double temperature;
24

25
  @JsonProperty("top_p")
26
  @Nullable
27
  protected Double topP;
28

29
  @JsonProperty("frequency_penalty")
30
  @Nullable
31
  protected Double frequencyPenalty;
32

33
  @JsonProperty("presence_penalty")
34
  @Nullable
35
  protected Double presencePenalty;
36

37
  @Nullable protected String stop;
38

39
  public AiLlmEndpointParamsOpenAi() {
40
    super();
1✔
41
    this.type =
1✔
42
        new EnumWrapper<AiLlmEndpointParamsOpenAiTypeField>(
43
            AiLlmEndpointParamsOpenAiTypeField.OPENAI_PARAMS);
44
  }
1✔
45

46
  protected AiLlmEndpointParamsOpenAi(Builder builder) {
47
    super();
×
UNCOV
48
    this.type = builder.type;
×
UNCOV
49
    this.temperature = builder.temperature;
×
50
    this.topP = builder.topP;
×
UNCOV
51
    this.frequencyPenalty = builder.frequencyPenalty;
×
UNCOV
52
    this.presencePenalty = builder.presencePenalty;
×
UNCOV
53
    this.stop = builder.stop;
×
54
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
55
  }
×
56

57
  public EnumWrapper<AiLlmEndpointParamsOpenAiTypeField> getType() {
58
    return type;
×
59
  }
60

61
  public Double getTemperature() {
62
    return temperature;
×
63
  }
64

65
  public Double getTopP() {
66
    return topP;
×
67
  }
68

69
  public Double getFrequencyPenalty() {
70
    return frequencyPenalty;
×
71
  }
72

73
  public Double getPresencePenalty() {
UNCOV
74
    return presencePenalty;
×
75
  }
76

77
  public String getStop() {
78
    return stop;
×
79
  }
80

81
  @Override
82
  public boolean equals(Object o) {
83
    if (this == o) {
×
84
      return true;
×
85
    }
86
    if (o == null || getClass() != o.getClass()) {
×
87
      return false;
×
88
    }
UNCOV
89
    AiLlmEndpointParamsOpenAi casted = (AiLlmEndpointParamsOpenAi) o;
×
UNCOV
90
    return Objects.equals(type, casted.type)
×
UNCOV
91
        && Objects.equals(temperature, casted.temperature)
×
92
        && Objects.equals(topP, casted.topP)
×
UNCOV
93
        && Objects.equals(frequencyPenalty, casted.frequencyPenalty)
×
UNCOV
94
        && Objects.equals(presencePenalty, casted.presencePenalty)
×
UNCOV
95
        && Objects.equals(stop, casted.stop);
×
96
  }
97

98
  @Override
99
  public int hashCode() {
UNCOV
100
    return Objects.hash(type, temperature, topP, frequencyPenalty, presencePenalty, stop);
×
101
  }
102

103
  @Override
104
  public String toString() {
UNCOV
105
    return "AiLlmEndpointParamsOpenAi{"
×
106
        + "type='"
107
        + type
108
        + '\''
109
        + ", "
110
        + "temperature='"
111
        + temperature
112
        + '\''
113
        + ", "
114
        + "topP='"
115
        + topP
116
        + '\''
117
        + ", "
118
        + "frequencyPenalty='"
119
        + frequencyPenalty
120
        + '\''
121
        + ", "
122
        + "presencePenalty='"
123
        + presencePenalty
124
        + '\''
125
        + ", "
126
        + "stop='"
127
        + stop
128
        + '\''
129
        + "}";
130
  }
131

132
  public static class Builder extends NullableFieldTracker {
133

134
    protected EnumWrapper<AiLlmEndpointParamsOpenAiTypeField> type;
135

136
    protected Double temperature;
137

138
    protected Double topP;
139

140
    protected Double frequencyPenalty;
141

142
    protected Double presencePenalty;
143

144
    protected String stop;
145

146
    public Builder() {
UNCOV
147
      super();
×
UNCOV
148
      this.type =
×
149
          new EnumWrapper<AiLlmEndpointParamsOpenAiTypeField>(
150
              AiLlmEndpointParamsOpenAiTypeField.OPENAI_PARAMS);
151
    }
×
152

153
    public Builder type(AiLlmEndpointParamsOpenAiTypeField type) {
UNCOV
154
      this.type = new EnumWrapper<AiLlmEndpointParamsOpenAiTypeField>(type);
×
155
      return this;
×
156
    }
157

158
    public Builder type(EnumWrapper<AiLlmEndpointParamsOpenAiTypeField> type) {
UNCOV
159
      this.type = type;
×
160
      return this;
×
161
    }
162

163
    public Builder temperature(Double temperature) {
UNCOV
164
      this.temperature = temperature;
×
165
      this.markNullableFieldAsSet("temperature");
×
166
      return this;
×
167
    }
168

169
    public Builder topP(Double topP) {
170
      this.topP = topP;
×
171
      this.markNullableFieldAsSet("top_p");
×
UNCOV
172
      return this;
×
173
    }
174

175
    public Builder frequencyPenalty(Double frequencyPenalty) {
176
      this.frequencyPenalty = frequencyPenalty;
×
UNCOV
177
      this.markNullableFieldAsSet("frequency_penalty");
×
UNCOV
178
      return this;
×
179
    }
180

181
    public Builder presencePenalty(Double presencePenalty) {
UNCOV
182
      this.presencePenalty = presencePenalty;
×
UNCOV
183
      this.markNullableFieldAsSet("presence_penalty");
×
UNCOV
184
      return this;
×
185
    }
186

187
    public Builder stop(String stop) {
UNCOV
188
      this.stop = stop;
×
UNCOV
189
      this.markNullableFieldAsSet("stop");
×
UNCOV
190
      return this;
×
191
    }
192

193
    public AiLlmEndpointParamsOpenAi build() {
UNCOV
194
      return new AiLlmEndpointParamsOpenAi(this);
×
195
    }
196
  }
197
}
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