4444 ContentGenerationTask .JSON_PROPERTY_REVISED_PROMPT ,
4545 ContentGenerationTask .JSON_PROPERTY_SUBDIVISIONLEVEL ,
4646 ContentGenerationTask .JSON_PROPERTY_FILEFORMAT ,
47+ ContentGenerationTask .JSON_PROPERTY_FILE_FORMAT ,
48+ ContentGenerationTask .JSON_PROPERTY_OUTPUT_FORMAT ,
49+ ContentGenerationTask .JSON_PROPERTY_TEXTURE_RESOLUTION ,
50+ ContentGenerationTask .JSON_PROPERTY_PRIORITY ,
4751 ContentGenerationTask .JSON_PROPERTY_SERVICE_TIER ,
4852 ContentGenerationTask .JSON_PROPERTY_EXECUTION_EXPIRES_AFTER ,
4953 ContentGenerationTask .JSON_PROPERTY_GENERATE_AUDIO ,
@@ -123,6 +127,22 @@ public class ContentGenerationTask {
123127 @ javax .annotation .Nullable
124128 private String fileformat ;
125129
130+ public static final String JSON_PROPERTY_FILE_FORMAT = "file_format" ;
131+ @ javax .annotation .Nullable
132+ private String fileFormat ;
133+
134+ public static final String JSON_PROPERTY_OUTPUT_FORMAT = "output_format" ;
135+ @ javax .annotation .Nullable
136+ private String outputFormat ;
137+
138+ public static final String JSON_PROPERTY_TEXTURE_RESOLUTION = "texture_resolution" ;
139+ @ javax .annotation .Nullable
140+ private String textureResolution ;
141+
142+ public static final String JSON_PROPERTY_PRIORITY = "priority" ;
143+ @ javax .annotation .Nullable
144+ private Integer priority ;
145+
126146 public static final String JSON_PROPERTY_SERVICE_TIER = "service_tier" ;
127147 @ javax .annotation .Nullable
128148 private String serviceTier ;
@@ -240,7 +260,7 @@ public ContentGenerationTask error(@javax.annotation.Nullable TaskError error) {
240260 }
241261
242262 /**
243- * Populated when the task ended in `failed`.
263+ * Get error
244264 * @return error
245265 */
246266 @ javax .annotation .Nullable
@@ -583,6 +603,106 @@ public void setFileformat(@javax.annotation.Nullable String fileformat) {
583603 this .fileformat = fileformat ;
584604 }
585605
606+ public ContentGenerationTask fileFormat (@ javax .annotation .Nullable String fileFormat ) {
607+
608+ this .fileFormat = fileFormat ;
609+ return this ;
610+ }
611+
612+ /**
613+ * Output file format of a 3D generation task.
614+ * @return fileFormat
615+ */
616+ @ javax .annotation .Nullable
617+ @ JsonProperty (value = JSON_PROPERTY_FILE_FORMAT , required = false )
618+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
619+
620+ public String getFileFormat () {
621+ return fileFormat ;
622+ }
623+
624+
625+ @ JsonProperty (value = JSON_PROPERTY_FILE_FORMAT , required = false )
626+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
627+ public void setFileFormat (@ javax .annotation .Nullable String fileFormat ) {
628+ this .fileFormat = fileFormat ;
629+ }
630+
631+ public ContentGenerationTask outputFormat (@ javax .annotation .Nullable String outputFormat ) {
632+
633+ this .outputFormat = outputFormat ;
634+ return this ;
635+ }
636+
637+ /**
638+ * Get outputFormat
639+ * @return outputFormat
640+ */
641+ @ javax .annotation .Nullable
642+ @ JsonProperty (value = JSON_PROPERTY_OUTPUT_FORMAT , required = false )
643+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
644+
645+ public String getOutputFormat () {
646+ return outputFormat ;
647+ }
648+
649+
650+ @ JsonProperty (value = JSON_PROPERTY_OUTPUT_FORMAT , required = false )
651+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
652+ public void setOutputFormat (@ javax .annotation .Nullable String outputFormat ) {
653+ this .outputFormat = outputFormat ;
654+ }
655+
656+ public ContentGenerationTask textureResolution (@ javax .annotation .Nullable String textureResolution ) {
657+
658+ this .textureResolution = textureResolution ;
659+ return this ;
660+ }
661+
662+ /**
663+ * Texture resolution actually used by a 3D generation task.
664+ * @return textureResolution
665+ */
666+ @ javax .annotation .Nullable
667+ @ JsonProperty (value = JSON_PROPERTY_TEXTURE_RESOLUTION , required = false )
668+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
669+
670+ public String getTextureResolution () {
671+ return textureResolution ;
672+ }
673+
674+
675+ @ JsonProperty (value = JSON_PROPERTY_TEXTURE_RESOLUTION , required = false )
676+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
677+ public void setTextureResolution (@ javax .annotation .Nullable String textureResolution ) {
678+ this .textureResolution = textureResolution ;
679+ }
680+
681+ public ContentGenerationTask priority (@ javax .annotation .Nullable Integer priority ) {
682+
683+ this .priority = priority ;
684+ return this ;
685+ }
686+
687+ /**
688+ * Execution priority echoed back.
689+ * @return priority
690+ */
691+ @ javax .annotation .Nullable
692+ @ JsonProperty (value = JSON_PROPERTY_PRIORITY , required = false )
693+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
694+
695+ public Integer getPriority () {
696+ return priority ;
697+ }
698+
699+
700+ @ JsonProperty (value = JSON_PROPERTY_PRIORITY , required = false )
701+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
702+ public void setPriority (@ javax .annotation .Nullable Integer priority ) {
703+ this .priority = priority ;
704+ }
705+
586706 public ContentGenerationTask serviceTier (@ javax .annotation .Nullable String serviceTier ) {
587707
588708 this .serviceTier = serviceTier ;
@@ -818,6 +938,10 @@ public boolean equals(Object o) {
818938 Objects .equals (this .revisedPrompt , contentGenerationTask .revisedPrompt ) &&
819939 Objects .equals (this .subdivisionlevel , contentGenerationTask .subdivisionlevel ) &&
820940 Objects .equals (this .fileformat , contentGenerationTask .fileformat ) &&
941+ Objects .equals (this .fileFormat , contentGenerationTask .fileFormat ) &&
942+ Objects .equals (this .outputFormat , contentGenerationTask .outputFormat ) &&
943+ Objects .equals (this .textureResolution , contentGenerationTask .textureResolution ) &&
944+ Objects .equals (this .priority , contentGenerationTask .priority ) &&
821945 Objects .equals (this .serviceTier , contentGenerationTask .serviceTier ) &&
822946 Objects .equals (this .executionExpiresAfter , contentGenerationTask .executionExpiresAfter ) &&
823947 Objects .equals (this .generateAudio , contentGenerationTask .generateAudio ) &&
@@ -830,7 +954,7 @@ public boolean equals(Object o) {
830954
831955 @ Override
832956 public int hashCode () {
833- return Objects .hash (id , model , status , error , content , usage , createdAt , updatedAt , seed , resolution , ratio , duration , frames , framespersecond , revisedPrompt , subdivisionlevel , fileformat , serviceTier , executionExpiresAfter , generateAudio , draft , draftTaskId , tools , reasoningEffort , safetyIdentifier );
957+ return Objects .hash (id , model , status , error , content , usage , createdAt , updatedAt , seed , resolution , ratio , duration , frames , framespersecond , revisedPrompt , subdivisionlevel , fileformat , fileFormat , outputFormat , textureResolution , priority , serviceTier , executionExpiresAfter , generateAudio , draft , draftTaskId , tools , reasoningEffort , safetyIdentifier );
834958 }
835959
836960 @ Override
@@ -854,6 +978,10 @@ public String toString() {
854978 sb .append (" revisedPrompt: " ).append (toIndentedString (revisedPrompt )).append ("\n " );
855979 sb .append (" subdivisionlevel: " ).append (toIndentedString (subdivisionlevel )).append ("\n " );
856980 sb .append (" fileformat: " ).append (toIndentedString (fileformat )).append ("\n " );
981+ sb .append (" fileFormat: " ).append (toIndentedString (fileFormat )).append ("\n " );
982+ sb .append (" outputFormat: " ).append (toIndentedString (outputFormat )).append ("\n " );
983+ sb .append (" textureResolution: " ).append (toIndentedString (textureResolution )).append ("\n " );
984+ sb .append (" priority: " ).append (toIndentedString (priority )).append ("\n " );
857985 sb .append (" serviceTier: " ).append (toIndentedString (serviceTier )).append ("\n " );
858986 sb .append (" executionExpiresAfter: " ).append (toIndentedString (executionExpiresAfter )).append ("\n " );
859987 sb .append (" generateAudio: " ).append (toIndentedString (generateAudio )).append ("\n " );
@@ -954,6 +1082,22 @@ public ContentGenerationTask.Builder fileformat(String fileformat) {
9541082 this .instance .fileformat = fileformat ;
9551083 return this ;
9561084 }
1085+ public ContentGenerationTask .Builder fileFormat (String fileFormat ) {
1086+ this .instance .fileFormat = fileFormat ;
1087+ return this ;
1088+ }
1089+ public ContentGenerationTask .Builder outputFormat (String outputFormat ) {
1090+ this .instance .outputFormat = outputFormat ;
1091+ return this ;
1092+ }
1093+ public ContentGenerationTask .Builder textureResolution (String textureResolution ) {
1094+ this .instance .textureResolution = textureResolution ;
1095+ return this ;
1096+ }
1097+ public ContentGenerationTask .Builder priority (Integer priority ) {
1098+ this .instance .priority = priority ;
1099+ return this ;
1100+ }
9571101 public ContentGenerationTask .Builder serviceTier (String serviceTier ) {
9581102 this .instance .serviceTier = serviceTier ;
9591103 return this ;
@@ -1037,6 +1181,10 @@ public ContentGenerationTask.Builder toBuilder() {
10371181 .revisedPrompt (getRevisedPrompt ())
10381182 .subdivisionlevel (getSubdivisionlevel ())
10391183 .fileformat (getFileformat ())
1184+ .fileFormat (getFileFormat ())
1185+ .outputFormat (getOutputFormat ())
1186+ .textureResolution (getTextureResolution ())
1187+ .priority (getPriority ())
10401188 .serviceTier (getServiceTier ())
10411189 .executionExpiresAfter (getExecutionExpiresAfter ())
10421190 .generateAudio (getGenerateAudio ())
0 commit comments