Skip to content

Commit

Permalink
Automated SDK update
Browse files Browse the repository at this point in the history
This updates the SDK from internal repo commit segmentio/public-api@043d4b9e.
  • Loading branch information
APIs and Common Services team committed Jun 4, 2024
1 parent 6faa31b commit 3cf8e11
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/segment/publicapi/models/AudienceSummary.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class AudienceSummary {
public static final String SERIALIZED_NAME_DEFINITION = "definition";

@SerializedName(SERIALIZED_NAME_DEFINITION)
private Definition definition;
private Definition1 definition;

public static final String SERIALIZED_NAME_STATUS = "status";

Expand Down Expand Up @@ -216,7 +216,7 @@ public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}

public AudienceSummary definition(Definition definition) {
public AudienceSummary definition(Definition1 definition) {

this.definition = definition;
return this;
Expand All @@ -228,11 +228,11 @@ public AudienceSummary definition(Definition definition) {
* @return definition
*/
@javax.annotation.Nullable
public Definition getDefinition() {
public Definition1 getDefinition() {
return definition;
}

public void setDefinition(Definition definition) {
public void setDefinition(Definition1 definition) {
this.definition = definition;
}

Expand Down Expand Up @@ -542,7 +542,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
jsonObj.get("key").toString()));
}
// validate the required field `definition`
Definition.validateJsonElement(jsonObj.get("definition"));
Definition1.validateJsonElement(jsonObj.get("definition"));
if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull())
&& !jsonObj.get("status").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class ComputedTraitSummary {
public static final String SERIALIZED_NAME_DEFINITION = "definition";

@SerializedName(SERIALIZED_NAME_DEFINITION)
private Definition1 definition;
private Definition definition;

public static final String SERIALIZED_NAME_STATUS = "status";

Expand Down Expand Up @@ -216,7 +216,7 @@ public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}

public ComputedTraitSummary definition(Definition1 definition) {
public ComputedTraitSummary definition(Definition definition) {

this.definition = definition;
return this;
Expand All @@ -228,11 +228,11 @@ public ComputedTraitSummary definition(Definition1 definition) {
* @return definition
*/
@javax.annotation.Nullable
public Definition1 getDefinition() {
public Definition getDefinition() {
return definition;
}

public void setDefinition(Definition1 definition) {
public void setDefinition(Definition definition) {
this.definition = definition;
}

Expand Down Expand Up @@ -542,7 +542,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
jsonObj.get("key").toString()));
}
// validate the required field `definition`
Definition1.validateJsonElement(jsonObj.get("definition"));
Definition.validateJsonElement(jsonObj.get("definition"));
if ((jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull())
&& !jsonObj.get("status").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down
10 changes: 7 additions & 3 deletions src/main/java/com/segment/publicapi/models/Definition.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public class Definition {
private String query;

/**
* The underlying data type being segmented for this audience. Possible values: users, accounts.
* The underlying data type being aggregated for this computed trait. Possible values: users,
* accounts.
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
Expand Down Expand Up @@ -97,7 +98,9 @@ public Definition query(String query) {
}

/**
* The query language string defining the audience segmentation criteria.
* The query language string defining the computed trait aggregation criteria. For guidance on
* using the query language, see the [Segment documentation
* site](https://segment.com/docs/api/public-api/query-language).
*
* @return query
*/
Expand All @@ -117,7 +120,8 @@ public Definition type(TypeEnum type) {
}

/**
* The underlying data type being segmented for this audience. Possible values: users, accounts.
* The underlying data type being aggregated for this computed trait. Possible values: users,
* accounts.
*
* @return type
*/
Expand Down
10 changes: 3 additions & 7 deletions src/main/java/com/segment/publicapi/models/Definition1.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public class Definition1 {
private String query;

/**
* The underlying data type being aggregated for this computed trait. Possible values: users,
* accounts.
* The underlying data type being segmented for this audience. Possible values: users, accounts.
*/
@JsonAdapter(TypeEnum.Adapter.class)
public enum TypeEnum {
Expand Down Expand Up @@ -98,9 +97,7 @@ public Definition1 query(String query) {
}

/**
* The query language string defining the computed trait aggregation criteria. For guidance on
* using the query language, see the [Segment documentation
* site](https://segment.com/docs/api/public-api/query-language).
* The query language string defining the audience segmentation criteria.
*
* @return query
*/
Expand All @@ -120,8 +117,7 @@ public Definition1 type(TypeEnum type) {
}

/**
* The underlying data type being aggregated for this computed trait. Possible values: users,
* accounts.
* The underlying data type being segmented for this audience. Possible values: users, accounts.
*
* @return type
*/
Expand Down

0 comments on commit 3cf8e11

Please sign in to comment.