• 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

0.0
/src/main/java/com/box/sdkgen/schemas/aillmendpointparamsgoogle/AiLlmEndpointParamsGoogle.java
1
package com.box.sdkgen.schemas.aillmendpointparamsgoogle;
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 AiLlmEndpointParamsGoogle extends SerializableObject {
15

16
  @JsonDeserialize(
17
      using =
18
          AiLlmEndpointParamsGoogleTypeField.AiLlmEndpointParamsGoogleTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = AiLlmEndpointParamsGoogleTypeField.AiLlmEndpointParamsGoogleTypeFieldSerializer.class)
21
  protected EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type;
22

23
  @Nullable protected Double temperature;
24

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

29
  @JsonProperty("top_k")
30
  @Nullable
31
  protected Double topK;
32

33
  public AiLlmEndpointParamsGoogle() {
UNCOV
34
    super();
×
35
    this.type =
×
36
        new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
37
            AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
38
  }
×
39

40
  protected AiLlmEndpointParamsGoogle(Builder builder) {
UNCOV
41
    super();
×
UNCOV
42
    this.type = builder.type;
×
43
    this.temperature = builder.temperature;
×
UNCOV
44
    this.topP = builder.topP;
×
UNCOV
45
    this.topK = builder.topK;
×
UNCOV
46
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
47
  }
×
48

49
  public EnumWrapper<AiLlmEndpointParamsGoogleTypeField> getType() {
UNCOV
50
    return type;
×
51
  }
52

53
  public Double getTemperature() {
UNCOV
54
    return temperature;
×
55
  }
56

57
  public Double getTopP() {
UNCOV
58
    return topP;
×
59
  }
60

61
  public Double getTopK() {
UNCOV
62
    return topK;
×
63
  }
64

65
  @Override
66
  public boolean equals(Object o) {
67
    if (this == o) {
×
68
      return true;
×
69
    }
70
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
71
      return false;
×
72
    }
UNCOV
73
    AiLlmEndpointParamsGoogle casted = (AiLlmEndpointParamsGoogle) o;
×
UNCOV
74
    return Objects.equals(type, casted.type)
×
75
        && Objects.equals(temperature, casted.temperature)
×
UNCOV
76
        && Objects.equals(topP, casted.topP)
×
UNCOV
77
        && Objects.equals(topK, casted.topK);
×
78
  }
79

80
  @Override
81
  public int hashCode() {
UNCOV
82
    return Objects.hash(type, temperature, topP, topK);
×
83
  }
84

85
  @Override
86
  public String toString() {
UNCOV
87
    return "AiLlmEndpointParamsGoogle{"
×
88
        + "type='"
89
        + type
90
        + '\''
91
        + ", "
92
        + "temperature='"
93
        + temperature
94
        + '\''
95
        + ", "
96
        + "topP='"
97
        + topP
98
        + '\''
99
        + ", "
100
        + "topK='"
101
        + topK
102
        + '\''
103
        + "}";
104
  }
105

106
  public static class Builder extends NullableFieldTracker {
107

108
    protected EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type;
109

110
    protected Double temperature;
111

112
    protected Double topP;
113

114
    protected Double topK;
115

116
    public Builder() {
117
      super();
×
UNCOV
118
      this.type =
×
119
          new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
120
              AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
121
    }
×
122

123
    public Builder type(AiLlmEndpointParamsGoogleTypeField type) {
UNCOV
124
      this.type = new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(type);
×
UNCOV
125
      return this;
×
126
    }
127

128
    public Builder type(EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type) {
UNCOV
129
      this.type = type;
×
UNCOV
130
      return this;
×
131
    }
132

133
    public Builder temperature(Double temperature) {
UNCOV
134
      this.temperature = temperature;
×
UNCOV
135
      this.markNullableFieldAsSet("temperature");
×
136
      return this;
×
137
    }
138

139
    public Builder topP(Double topP) {
UNCOV
140
      this.topP = topP;
×
141
      this.markNullableFieldAsSet("top_p");
×
UNCOV
142
      return this;
×
143
    }
144

145
    public Builder topK(Double topK) {
UNCOV
146
      this.topK = topK;
×
UNCOV
147
      this.markNullableFieldAsSet("top_k");
×
UNCOV
148
      return this;
×
149
    }
150

151
    public AiLlmEndpointParamsGoogle build() {
UNCOV
152
      return new AiLlmEndpointParamsGoogle(this);
×
153
    }
154
  }
155
}
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