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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 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
/** AI LLM endpoint params Google object. */
14
@JsonFilter("nullablePropertyFilter")
15
public class AiLlmEndpointParamsGoogle extends SerializableObject {
16

17
  /** The type of the AI LLM endpoint params object for Google. This parameter is **required**. */
18
  @JsonDeserialize(
19
      using =
20
          AiLlmEndpointParamsGoogleTypeField.AiLlmEndpointParamsGoogleTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = AiLlmEndpointParamsGoogleTypeField.AiLlmEndpointParamsGoogleTypeFieldSerializer.class)
23
  protected EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type;
24

25
  /**
26
   * The temperature is used for sampling during response generation, which occurs when `top-P` and
27
   * `top-K` are applied. Temperature controls the degree of randomness in the token selection.
28
   */
29
  @Nullable protected Double temperature;
30

31
  /**
32
   * `Top-P` changes how the model selects tokens for output. Tokens are selected from the most (see
33
   * `top-K`) to least probable until the sum of their probabilities equals the `top-P` value.
34
   */
35
  @JsonProperty("top_p")
36
  @Nullable
37
  protected Double topP;
38

39
  /**
40
   * `Top-K` changes how the model selects tokens for output. A low `top-K` means the next selected
41
   * token is the most probable among all tokens in the model's vocabulary (also called greedy
42
   * decoding), while a high `top-K` means that the next token is selected from among the three most
43
   * probable tokens by using temperature.
44
   */
45
  @JsonProperty("top_k")
46
  @Nullable
47
  protected Double topK;
48

49
  public AiLlmEndpointParamsGoogle() {
50
    super();
×
51
    this.type =
×
52
        new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
53
            AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
54
  }
×
55

56
  protected AiLlmEndpointParamsGoogle(Builder builder) {
57
    super();
×
58
    this.type = builder.type;
×
59
    this.temperature = builder.temperature;
×
60
    this.topP = builder.topP;
×
61
    this.topK = builder.topK;
×
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
63
  }
×
64

65
  public EnumWrapper<AiLlmEndpointParamsGoogleTypeField> getType() {
66
    return type;
×
67
  }
68

69
  public Double getTemperature() {
70
    return temperature;
×
71
  }
72

73
  public Double getTopP() {
74
    return topP;
×
75
  }
76

77
  public Double getTopK() {
78
    return topK;
×
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
    }
89
    AiLlmEndpointParamsGoogle casted = (AiLlmEndpointParamsGoogle) o;
×
90
    return Objects.equals(type, casted.type)
×
91
        && Objects.equals(temperature, casted.temperature)
×
92
        && Objects.equals(topP, casted.topP)
×
93
        && Objects.equals(topK, casted.topK);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(type, temperature, topP, topK);
×
99
  }
100

101
  @Override
102
  public String toString() {
103
    return "AiLlmEndpointParamsGoogle{"
×
104
        + "type='"
105
        + type
106
        + '\''
107
        + ", "
108
        + "temperature='"
109
        + temperature
110
        + '\''
111
        + ", "
112
        + "topP='"
113
        + topP
114
        + '\''
115
        + ", "
116
        + "topK='"
117
        + topK
118
        + '\''
119
        + "}";
120
  }
121

122
  public static class Builder extends NullableFieldTracker {
123

124
    protected EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type;
125

126
    protected Double temperature;
127

128
    protected Double topP;
129

130
    protected Double topK;
131

132
    public Builder() {
133
      super();
×
134
    }
×
135

136
    public Builder type(AiLlmEndpointParamsGoogleTypeField type) {
UNCOV
137
      this.type = new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(type);
×
UNCOV
138
      return this;
×
139
    }
140

141
    public Builder type(EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type) {
UNCOV
142
      this.type = type;
×
UNCOV
143
      return this;
×
144
    }
145

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

152
    public Builder topP(Double topP) {
UNCOV
153
      this.topP = topP;
×
UNCOV
154
      this.markNullableFieldAsSet("top_p");
×
UNCOV
155
      return this;
×
156
    }
157

158
    public Builder topK(Double topK) {
UNCOV
159
      this.topK = topK;
×
UNCOV
160
      this.markNullableFieldAsSet("top_k");
×
UNCOV
161
      return this;
×
162
    }
163

164
    public AiLlmEndpointParamsGoogle build() {
NEW
165
      if (this.type == null) {
×
NEW
166
        this.type =
×
167
            new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
168
                AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
169
      }
UNCOV
170
      return new AiLlmEndpointParamsGoogle(this);
×
171
    }
172
  }
173
}
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