Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "c571efa", "specHash": "f899bf6", "version": "10.10.0" }
{ "engineHash": "c571efa", "specHash": "fa39a3f", "version": "10.10.0" }
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public class CreateMetadataTemplateRequestBodyFieldsField extends SerializableOb
* The type of field. The basic fields are a `string` field for text, a `float` field for numbers,
* and a `date` field to present the user with a date-time picker.
*
* <p>Additionally, metadata templates support an `enum` field for a basic list of items, and `
* multiSelect` field for a similar list of items where the user can select more than one value.
* <p>Additionally, metadata templates support an `enum` field for a basic list of items, and
* `multiSelect` field for a similar list of items where the user can select more than one value.
*
* <p>Metadata taxonomies are also supported as a `taxonomy` field type with a specific set of
* additional properties, which describe its structure.
Expand Down Expand Up @@ -63,6 +63,12 @@ public class CreateMetadataTemplateRequestBodyFieldsField extends SerializableOb
*/
protected String taxonomyKey;

/**
* The unique ID of the metadata taxonomy to use for this taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
*/
protected String taxonomyId;

/**
* The namespace of the metadata taxonomy to use for this taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
Expand Down Expand Up @@ -102,6 +108,7 @@ protected CreateMetadataTemplateRequestBodyFieldsField(Builder builder) {
this.hidden = builder.hidden;
this.options = builder.options;
this.taxonomyKey = builder.taxonomyKey;
this.taxonomyId = builder.taxonomyId;
this.namespace = builder.namespace;
this.optionsRules = builder.optionsRules;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
Expand Down Expand Up @@ -135,6 +142,10 @@ public String getTaxonomyKey() {
return taxonomyKey;
}

public String getTaxonomyId() {
return taxonomyId;
}

public String getNamespace() {
return namespace;
}
Expand All @@ -160,14 +171,24 @@ public boolean equals(Object o) {
&& Objects.equals(hidden, casted.hidden)
&& Objects.equals(options, casted.options)
&& Objects.equals(taxonomyKey, casted.taxonomyKey)
&& Objects.equals(taxonomyId, casted.taxonomyId)
&& Objects.equals(namespace, casted.namespace)
&& Objects.equals(optionsRules, casted.optionsRules);
}

@Override
public int hashCode() {
return Objects.hash(
type, key, displayName, description, hidden, options, taxonomyKey, namespace, optionsRules);
type,
key,
displayName,
description,
hidden,
options,
taxonomyKey,
taxonomyId,
namespace,
optionsRules);
}

@Override
Expand Down Expand Up @@ -201,6 +222,10 @@ public String toString() {
+ taxonomyKey
+ '\''
+ ", "
+ "taxonomyId='"
+ taxonomyId
+ '\''
+ ", "
+ "namespace='"
+ namespace
+ '\''
Expand All @@ -227,6 +252,8 @@ public static class Builder extends NullableFieldTracker {

protected String taxonomyKey;

protected String taxonomyId;

protected String namespace;

protected CreateMetadataTemplateRequestBodyFieldsOptionsRulesField optionsRules;
Expand Down Expand Up @@ -269,6 +296,11 @@ public Builder taxonomyKey(String taxonomyKey) {
return this;
}

public Builder taxonomyId(String taxonomyId) {
this.taxonomyId = taxonomyId;
return this;
}

public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.box.sdkgen.internal.SerializableObject;
import com.box.sdkgen.serialization.json.EnumWrapper;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Objects;
Expand All @@ -23,10 +24,11 @@ public class AiAgentReference extends SerializableObject {
* Extract
* Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)).
*/
protected String id;
protected final String id;

public AiAgentReference() {
public AiAgentReference(@JsonProperty("id") String id) {
super();
this.id = id;
this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
}

Expand Down Expand Up @@ -71,10 +73,11 @@ public static class Builder extends NullableFieldTracker {

protected EnumWrapper<AiAgentReferenceTypeField> type;

protected String id;
protected final String id;

public Builder() {
public Builder(String id) {
super();
this.id = id;
}

public Builder type(AiAgentReferenceTypeField type) {
Expand All @@ -87,11 +90,6 @@ public Builder type(EnumWrapper<AiAgentReferenceTypeField> type) {
return this;
}

public Builder id(String id) {
this.id = id;
return this;
}

public AiAgentReference build() {
if (this.type == null) {
this.type =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ public class MetadataTemplateFieldsField extends SerializableObject {
* The type of field. The basic fields are a `string` field for text, a `float` field for numbers,
* and a `date` fields to present the user with a date-time picker.
*
* <p>Additionally, metadata templates support an `enum` field for a basic list of items, and `
* multiSelect` field for a similar list of items where the user can select more than one value.
* <p>Additionally, metadata templates support an `enum` field for a basic list of items, and
* `multiSelect` field for a similar list of items where the user can select more than one value.
*
* <p>Metadata taxonomies are also supported as a `taxonomy` field type with a specific set of
* additional properties, which describe its structure.
*
* <p>**Note**: The `integer` value is deprecated. It is still present in the response, but cannot
* be used in the POST request.
Expand Down Expand Up @@ -53,6 +56,30 @@ public class MetadataTemplateFieldsField extends SerializableObject {
*/
protected List<MetadataTemplateFieldsOptionsField> options;

/**
* The unique key of the metadata taxonomy to use for this taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
*/
protected String taxonomyKey;

/**
* The unique ID of the metadata taxonomy to use for this taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
*/
protected String taxonomyId;

/**
* The namespace of the metadata taxonomy to use for this taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
*/
protected String namespace;

/**
* An object defining additional rules for the options of the taxonomy field. This property is
* required when the field `type` is set to `taxonomy`.
*/
protected MetadataTemplateFieldsOptionsRulesField optionsRules;

/** The unique ID of the metadata template field. */
protected String id;

Expand Down Expand Up @@ -82,6 +109,10 @@ protected MetadataTemplateFieldsField(Builder builder) {
this.description = builder.description;
this.hidden = builder.hidden;
this.options = builder.options;
this.taxonomyKey = builder.taxonomyKey;
this.taxonomyId = builder.taxonomyId;
this.namespace = builder.namespace;
this.optionsRules = builder.optionsRules;
this.id = builder.id;
markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
}
Expand Down Expand Up @@ -110,6 +141,22 @@ public List<MetadataTemplateFieldsOptionsField> getOptions() {
return options;
}

public String getTaxonomyKey() {
return taxonomyKey;
}

public String getTaxonomyId() {
return taxonomyId;
}

public String getNamespace() {
return namespace;
}

public MetadataTemplateFieldsOptionsRulesField getOptionsRules() {
return optionsRules;
}

public String getId() {
return id;
}
Expand All @@ -129,12 +176,27 @@ public boolean equals(Object o) {
&& Objects.equals(description, casted.description)
&& Objects.equals(hidden, casted.hidden)
&& Objects.equals(options, casted.options)
&& Objects.equals(taxonomyKey, casted.taxonomyKey)
&& Objects.equals(taxonomyId, casted.taxonomyId)
&& Objects.equals(namespace, casted.namespace)
&& Objects.equals(optionsRules, casted.optionsRules)
&& Objects.equals(id, casted.id);
}

@Override
public int hashCode() {
return Objects.hash(type, key, displayName, description, hidden, options, id);
return Objects.hash(
type,
key,
displayName,
description,
hidden,
options,
taxonomyKey,
taxonomyId,
namespace,
optionsRules,
id);
}

@Override
Expand Down Expand Up @@ -164,6 +226,22 @@ public String toString() {
+ options
+ '\''
+ ", "
+ "taxonomyKey='"
+ taxonomyKey
+ '\''
+ ", "
+ "taxonomyId='"
+ taxonomyId
+ '\''
+ ", "
+ "namespace='"
+ namespace
+ '\''
+ ", "
+ "optionsRules='"
+ optionsRules
+ '\''
+ ", "
+ "id='"
+ id
+ '\''
Expand All @@ -184,6 +262,14 @@ public static class Builder extends NullableFieldTracker {

protected List<MetadataTemplateFieldsOptionsField> options;

protected String taxonomyKey;

protected String taxonomyId;

protected String namespace;

protected MetadataTemplateFieldsOptionsRulesField optionsRules;

protected String id;

public Builder(MetadataTemplateFieldsTypeField type, String key, String displayName) {
Expand Down Expand Up @@ -216,6 +302,26 @@ public Builder options(List<MetadataTemplateFieldsOptionsField> options) {
return this;
}

public Builder taxonomyKey(String taxonomyKey) {
this.taxonomyKey = taxonomyKey;
return this;
}

public Builder taxonomyId(String taxonomyId) {
this.taxonomyId = taxonomyId;
return this;
}

public Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}

public Builder optionsRules(MetadataTemplateFieldsOptionsRulesField optionsRules) {
this.optionsRules = optionsRules;
return this;
}

public Builder id(String id) {
this.id = id;
return this;
Expand Down
Loading
Loading