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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

16.67
/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();
1✔
51
    this.type =
1✔
52
        new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
53
            AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
54
  }
1✔
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;
1✔
67
  }
68

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

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

77
  public Double getTopK() {
78
    return topK;
1✔
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
      this.type =
×
135
          new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(
136
              AiLlmEndpointParamsGoogleTypeField.GOOGLE_PARAMS);
137
    }
×
138

139
    public Builder type(AiLlmEndpointParamsGoogleTypeField type) {
140
      this.type = new EnumWrapper<AiLlmEndpointParamsGoogleTypeField>(type);
×
141
      return this;
×
142
    }
143

144
    public Builder type(EnumWrapper<AiLlmEndpointParamsGoogleTypeField> type) {
145
      this.type = type;
×
146
      return this;
×
147
    }
148

149
    public Builder temperature(Double temperature) {
150
      this.temperature = temperature;
×
151
      this.markNullableFieldAsSet("temperature");
×
152
      return this;
×
153
    }
154

155
    public Builder topP(Double topP) {
156
      this.topP = topP;
×
157
      this.markNullableFieldAsSet("top_p");
×
158
      return this;
×
159
    }
160

161
    public Builder topK(Double topK) {
162
      this.topK = topK;
×
163
      this.markNullableFieldAsSet("top_k");
×
164
      return this;
×
165
    }
166

167
    public AiLlmEndpointParamsGoogle build() {
168
      return new AiLlmEndpointParamsGoogle(this);
×
169
    }
170
  }
171
}
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