Skip to content

Commit be34ec3

Browse files
🌿 Fern Regeneration -- September 25, 2025 (#153)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Armin Fard <[email protected]>
1 parent 2372a49 commit be34ec3

File tree

9 files changed

+271
-13
lines changed

9 files changed

+271
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Anduril Lattice SDK Java
1+
# Lattice SDK Java Library
22

33
![](https://www.anduril.com/lattice-sdk/)
44

55
[![Maven Central](https://img.shields.io/maven-central/v/com.anduril/lattice-sdk)](https://central.sonatype.com/artifact/com.anduril/lattice-sdk)
66

7-
The Lattice SDK Java library provides convenient access to the Lattice API from Java.
7+
The Lattice SDK Java library provides convenient access to the Lattice SDK APIs from Java.
88

99
## Documentation
1010

@@ -34,7 +34,7 @@ Add the dependency in your `pom.xml` file:
3434
<dependency>
3535
<groupId>com.anduril</groupId>
3636
<artifactId>lattice-sdk</artifactId>
37-
<version>2.3.0</version>
37+
<version>2.4.0</version>
3838
</dependency>
3939
```
4040

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ java {
4747

4848
group = 'com.anduril'
4949

50-
version = '2.3.0'
50+
version = '2.4.0'
5151

5252
jar {
5353
dependsOn(":generatePomFileForMavenPublication")
@@ -78,7 +78,7 @@ publishing {
7878
maven(MavenPublication) {
7979
groupId = 'com.anduril'
8080
artifactId = 'lattice-sdk'
81-
version = '2.3.0'
81+
version = '2.4.0'
8282
from components.java
8383
pom {
8484
name = 'Anduril Industries, Inc.'

src/main/java/com/anduril/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ private ClientOptions(
3232
this.headers.putAll(headers);
3333
this.headers.putAll(new HashMap<String, String>() {
3434
{
35-
put("User-Agent", "com.anduril:lattice-sdk/2.3.0");
35+
put("User-Agent", "com.anduril:lattice-sdk/2.4.0");
3636
put("X-Fern-Language", "JAVA");
3737
put("X-Fern-SDK-Name", "com.anduril.fern:api-sdk");
38-
put("X-Fern-SDK-Version", "2.3.0");
38+
put("X-Fern-SDK-Version", "2.4.0");
3939
}
4040
});
4141
this.headerSuppliers = headerSuppliers;

src/main/java/com/anduril/resources/objects/AsyncRawObjectsClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ public CompletableFuture<LatticeHttpResponse<InputStream>> getObject(
200200
_requestBuilder.addHeader(
201201
"Accept-Encoding", request.getAcceptEncoding().get().toString());
202202
}
203+
if (request.getPriority().isPresent()) {
204+
_requestBuilder.addHeader("Priority", request.getPriority().get());
205+
}
203206
Request okhttpRequest = _requestBuilder.build();
204207
OkHttpClient client = clientOptions.httpClient();
205208
if (requestOptions != null && requestOptions.getTimeout().isPresent()) {

src/main/java/com/anduril/resources/objects/RawObjectsClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ public LatticeHttpResponse<InputStream> getObject(
169169
_requestBuilder.addHeader(
170170
"Accept-Encoding", request.getAcceptEncoding().get().toString());
171171
}
172+
if (request.getPriority().isPresent()) {
173+
_requestBuilder.addHeader("Priority", request.getPriority().get());
174+
}
172175
Request okhttpRequest = _requestBuilder.build();
173176
OkHttpClient client = clientOptions.httpClient();
174177
if (requestOptions != null && requestOptions.getTimeout().isPresent()) {

src/main/java/com/anduril/resources/objects/requests/GetObjectRequest.java

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@
2323
public final class GetObjectRequest {
2424
private final Optional<GetObjectRequestAcceptEncoding> acceptEncoding;
2525

26+
private final Optional<String> priority;
27+
2628
private final Map<String, Object> additionalProperties;
2729

2830
private GetObjectRequest(
29-
Optional<GetObjectRequestAcceptEncoding> acceptEncoding, Map<String, Object> additionalProperties) {
31+
Optional<GetObjectRequestAcceptEncoding> acceptEncoding,
32+
Optional<String> priority,
33+
Map<String, Object> additionalProperties) {
3034
this.acceptEncoding = acceptEncoding;
35+
this.priority = priority;
3136
this.additionalProperties = additionalProperties;
3237
}
3338

@@ -39,6 +44,14 @@ public Optional<GetObjectRequestAcceptEncoding> getAcceptEncoding() {
3944
return acceptEncoding;
4045
}
4146

47+
/**
48+
* @return Indicates a client's preference for the priority of the response. The value is a structured header as defined in RFC 9218. If you do not set the header, Lattice uses the default priority set for the environment. Incremental delivery directives are not supported and will be ignored.
49+
*/
50+
@JsonProperty("Priority")
51+
public Optional<String> getPriority() {
52+
return priority;
53+
}
54+
4255
@java.lang.Override
4356
public boolean equals(Object other) {
4457
if (this == other) return true;
@@ -51,12 +64,12 @@ public Map<String, Object> getAdditionalProperties() {
5164
}
5265

5366
private boolean equalTo(GetObjectRequest other) {
54-
return acceptEncoding.equals(other.acceptEncoding);
67+
return acceptEncoding.equals(other.acceptEncoding) && priority.equals(other.priority);
5568
}
5669

5770
@java.lang.Override
5871
public int hashCode() {
59-
return Objects.hash(this.acceptEncoding);
72+
return Objects.hash(this.acceptEncoding, this.priority);
6073
}
6174

6275
@java.lang.Override
@@ -72,13 +85,16 @@ public static Builder builder() {
7285
public static final class Builder {
7386
private Optional<GetObjectRequestAcceptEncoding> acceptEncoding = Optional.empty();
7487

88+
private Optional<String> priority = Optional.empty();
89+
7590
@JsonAnySetter
7691
private Map<String, Object> additionalProperties = new HashMap<>();
7792

7893
private Builder() {}
7994

8095
public Builder from(GetObjectRequest other) {
8196
acceptEncoding(other.getAcceptEncoding());
97+
priority(other.getPriority());
8298
return this;
8399
}
84100

@@ -96,8 +112,22 @@ public Builder acceptEncoding(GetObjectRequestAcceptEncoding acceptEncoding) {
96112
return this;
97113
}
98114

115+
/**
116+
* <p>Indicates a client's preference for the priority of the response. The value is a structured header as defined in RFC 9218. If you do not set the header, Lattice uses the default priority set for the environment. Incremental delivery directives are not supported and will be ignored.</p>
117+
*/
118+
@JsonSetter(value = "Priority", nulls = Nulls.SKIP)
119+
public Builder priority(Optional<String> priority) {
120+
this.priority = priority;
121+
return this;
122+
}
123+
124+
public Builder priority(String priority) {
125+
this.priority = Optional.ofNullable(priority);
126+
return this;
127+
}
128+
99129
public GetObjectRequest build() {
100-
return new GetObjectRequest(acceptEncoding, additionalProperties);
130+
return new GetObjectRequest(acceptEncoding, priority, additionalProperties);
101131
}
102132
}
103133
}

src/main/java/com/anduril/types/Entity.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public final class Entity {
9595

9696
private final Optional<Orbit> orbit;
9797

98+
private final Optional<Symbology> symbology;
99+
98100
private final Map<String, Object> additionalProperties;
99101

100102
private Entity(
@@ -135,6 +137,7 @@ private Entity(
135137
Optional<GroupDetails> groupDetails,
136138
Optional<Supplies> supplies,
137139
Optional<Orbit> orbit,
140+
Optional<Symbology> symbology,
138141
Map<String, Object> additionalProperties) {
139142
this.entityId = entityId;
140143
this.description = description;
@@ -173,6 +176,7 @@ private Entity(
173176
this.groupDetails = groupDetails;
174177
this.supplies = supplies;
175178
this.orbit = orbit;
179+
this.symbology = symbology;
176180
this.additionalProperties = additionalProperties;
177181
}
178182

@@ -490,6 +494,14 @@ public Optional<Orbit> getOrbit() {
490494
return orbit;
491495
}
492496

497+
/**
498+
* @return Symbology/iconography for the entity respecting an existing standard.
499+
*/
500+
@JsonProperty("symbology")
501+
public Optional<Symbology> getSymbology() {
502+
return symbology;
503+
}
504+
493505
@java.lang.Override
494506
public boolean equals(Object other) {
495507
if (this == other) return true;
@@ -538,7 +550,8 @@ private boolean equalTo(Entity other) {
538550
&& health.equals(other.health)
539551
&& groupDetails.equals(other.groupDetails)
540552
&& supplies.equals(other.supplies)
541-
&& orbit.equals(other.orbit);
553+
&& orbit.equals(other.orbit)
554+
&& symbology.equals(other.symbology);
542555
}
543556

544557
@java.lang.Override
@@ -580,7 +593,8 @@ public int hashCode() {
580593
this.health,
581594
this.groupDetails,
582595
this.supplies,
583-
this.orbit);
596+
this.orbit,
597+
this.symbology);
584598
}
585599

586600
@java.lang.Override
@@ -668,6 +682,8 @@ public static final class Builder {
668682

669683
private Optional<Orbit> orbit = Optional.empty();
670684

685+
private Optional<Symbology> symbology = Optional.empty();
686+
671687
@JsonAnySetter
672688
private Map<String, Object> additionalProperties = new HashMap<>();
673689

@@ -711,6 +727,7 @@ public Builder from(Entity other) {
711727
groupDetails(other.getGroupDetails());
712728
supplies(other.getSupplies());
713729
orbit(other.getOrbit());
730+
symbology(other.getSymbology());
714731
return this;
715732
}
716733

@@ -1250,6 +1267,20 @@ public Builder orbit(Orbit orbit) {
12501267
return this;
12511268
}
12521269

1270+
/**
1271+
* <p>Symbology/iconography for the entity respecting an existing standard.</p>
1272+
*/
1273+
@JsonSetter(value = "symbology", nulls = Nulls.SKIP)
1274+
public Builder symbology(Optional<Symbology> symbology) {
1275+
this.symbology = symbology;
1276+
return this;
1277+
}
1278+
1279+
public Builder symbology(Symbology symbology) {
1280+
this.symbology = Optional.ofNullable(symbology);
1281+
return this;
1282+
}
1283+
12531284
public Entity build() {
12541285
return new Entity(
12551286
entityId,
@@ -1289,6 +1320,7 @@ public Entity build() {
12891320
groupDetails,
12901321
supplies,
12911322
orbit,
1323+
symbology,
12921324
additionalProperties);
12931325
}
12941326
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.anduril.types;
5+
6+
import com.anduril.core.ObjectMappers;
7+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
8+
import com.fasterxml.jackson.annotation.JsonAnySetter;
9+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
10+
import com.fasterxml.jackson.annotation.JsonInclude;
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.fasterxml.jackson.annotation.JsonSetter;
13+
import com.fasterxml.jackson.annotation.Nulls;
14+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
import java.util.Optional;
19+
20+
@JsonInclude(JsonInclude.Include.NON_ABSENT)
21+
@JsonDeserialize(builder = MilStd2525C.Builder.class)
22+
public final class MilStd2525C {
23+
private final Optional<String> sidc;
24+
25+
private final Map<String, Object> additionalProperties;
26+
27+
private MilStd2525C(Optional<String> sidc, Map<String, Object> additionalProperties) {
28+
this.sidc = sidc;
29+
this.additionalProperties = additionalProperties;
30+
}
31+
32+
@JsonProperty("sidc")
33+
public Optional<String> getSidc() {
34+
return sidc;
35+
}
36+
37+
@java.lang.Override
38+
public boolean equals(Object other) {
39+
if (this == other) return true;
40+
return other instanceof MilStd2525C && equalTo((MilStd2525C) other);
41+
}
42+
43+
@JsonAnyGetter
44+
public Map<String, Object> getAdditionalProperties() {
45+
return this.additionalProperties;
46+
}
47+
48+
private boolean equalTo(MilStd2525C other) {
49+
return sidc.equals(other.sidc);
50+
}
51+
52+
@java.lang.Override
53+
public int hashCode() {
54+
return Objects.hash(this.sidc);
55+
}
56+
57+
@java.lang.Override
58+
public String toString() {
59+
return ObjectMappers.stringify(this);
60+
}
61+
62+
public static Builder builder() {
63+
return new Builder();
64+
}
65+
66+
@JsonIgnoreProperties(ignoreUnknown = true)
67+
public static final class Builder {
68+
private Optional<String> sidc = Optional.empty();
69+
70+
@JsonAnySetter
71+
private Map<String, Object> additionalProperties = new HashMap<>();
72+
73+
private Builder() {}
74+
75+
public Builder from(MilStd2525C other) {
76+
sidc(other.getSidc());
77+
return this;
78+
}
79+
80+
@JsonSetter(value = "sidc", nulls = Nulls.SKIP)
81+
public Builder sidc(Optional<String> sidc) {
82+
this.sidc = sidc;
83+
return this;
84+
}
85+
86+
public Builder sidc(String sidc) {
87+
this.sidc = Optional.ofNullable(sidc);
88+
return this;
89+
}
90+
91+
public MilStd2525C build() {
92+
return new MilStd2525C(sidc, additionalProperties);
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)