3131public class CompletionPostRequest
3232// CHECKSTYLE:ON
3333{
34- @ JsonProperty ("orchestration_config " )
35- private OrchestrationConfig orchestrationConfig ;
34+ @ JsonProperty ("config " )
35+ private OrchestrationConfig config ;
3636
37- @ JsonProperty ("input_params " )
38- private Map <String , String > inputParams = new HashMap <>();
37+ @ JsonProperty ("placeholder_values " )
38+ private Map <String , String > placeholderValues = new HashMap <>();
3939
4040 @ JsonProperty ("messages_history" )
4141 private List <ChatMessage > messagesHistory ;
@@ -47,86 +47,84 @@ public class CompletionPostRequest
4747 protected CompletionPostRequest () {}
4848
4949 /**
50- * Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same
51- * instance.
50+ * Set the config of this {@link CompletionPostRequest} instance and return the same instance.
5251 *
53- * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
52+ * @param config The config of this {@link CompletionPostRequest}
5453 * @return The same instance of this {@link CompletionPostRequest} class
5554 */
5655 @ Nonnull
57- public CompletionPostRequest orchestrationConfig (
58- @ Nonnull final OrchestrationConfig orchestrationConfig ) {
59- this .orchestrationConfig = orchestrationConfig ;
56+ public CompletionPostRequest config (@ Nonnull final OrchestrationConfig config ) {
57+ this .config = config ;
6058 return this ;
6159 }
6260
6361 /**
64- * Get orchestrationConfig
62+ * Get config
6563 *
66- * @return orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
67- * instance.
64+ * @return config The config of this {@link CompletionPostRequest} instance.
6865 */
6966 @ Nonnull
70- public OrchestrationConfig getOrchestrationConfig () {
71- return orchestrationConfig ;
67+ public OrchestrationConfig getConfig () {
68+ return config ;
7269 }
7370
7471 /**
75- * Set the orchestrationConfig of this {@link CompletionPostRequest} instance.
72+ * Set the config of this {@link CompletionPostRequest} instance.
7673 *
77- * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
74+ * @param config The config of this {@link CompletionPostRequest}
7875 */
79- public void setOrchestrationConfig (@ Nonnull final OrchestrationConfig orchestrationConfig ) {
80- this .orchestrationConfig = orchestrationConfig ;
76+ public void setConfig (@ Nonnull final OrchestrationConfig config ) {
77+ this .config = config ;
8178 }
8279
8380 /**
84- * Set the inputParams of this {@link CompletionPostRequest} instance and return the same
81+ * Set the placeholderValues of this {@link CompletionPostRequest} instance and return the same
8582 * instance.
8683 *
87- * @param inputParams The inputParams of this {@link CompletionPostRequest}
84+ * @param placeholderValues The placeholderValues of this {@link CompletionPostRequest}
8885 * @return The same instance of this {@link CompletionPostRequest} class
8986 */
9087 @ Nonnull
91- public CompletionPostRequest inputParams (@ Nullable final Map <String , String > inputParams ) {
92- this .inputParams = inputParams ;
88+ public CompletionPostRequest placeholderValues (
89+ @ Nullable final Map <String , String > placeholderValues ) {
90+ this .placeholderValues = placeholderValues ;
9391 return this ;
9492 }
9593
9694 /**
97- * Put one inputParams instance to this {@link CompletionPostRequest} instance.
95+ * Put one placeholderValues instance to this {@link CompletionPostRequest} instance.
9896 *
99- * @param key The String key of this inputParams instance
100- * @param inputParamsItem The inputParams that should be added under the given key
97+ * @param key The String key of this placeholderValues instance
98+ * @param placeholderValuesItem The placeholderValues that should be added under the given key
10199 * @return The same instance of type {@link CompletionPostRequest}
102100 */
103101 @ Nonnull
104- public CompletionPostRequest putinputParamsItem (
105- @ Nonnull final String key , @ Nonnull final String inputParamsItem ) {
106- if (this .inputParams == null ) {
107- this .inputParams = new HashMap <>();
102+ public CompletionPostRequest putplaceholderValuesItem (
103+ @ Nonnull final String key , @ Nonnull final String placeholderValuesItem ) {
104+ if (this .placeholderValues == null ) {
105+ this .placeholderValues = new HashMap <>();
108106 }
109- this .inputParams .put (key , inputParamsItem );
107+ this .placeholderValues .put (key , placeholderValuesItem );
110108 return this ;
111109 }
112110
113111 /**
114- * Get inputParams
112+ * Get placeholderValues
115113 *
116- * @return inputParams The inputParams of this {@link CompletionPostRequest} instance.
114+ * @return placeholderValues The placeholderValues of this {@link CompletionPostRequest} instance.
117115 */
118116 @ Nonnull
119- public Map <String , String > getInputParams () {
120- return inputParams ;
117+ public Map <String , String > getPlaceholderValues () {
118+ return placeholderValues ;
121119 }
122120
123121 /**
124- * Set the inputParams of this {@link CompletionPostRequest} instance.
122+ * Set the placeholderValues of this {@link CompletionPostRequest} instance.
125123 *
126- * @param inputParams The inputParams of this {@link CompletionPostRequest}
124+ * @param placeholderValues The placeholderValues of this {@link CompletionPostRequest}
127125 */
128- public void setInputParams (@ Nullable final Map <String , String > inputParams ) {
129- this .inputParams = inputParams ;
126+ public void setPlaceholderValues (@ Nullable final Map <String , String > placeholderValues ) {
127+ this .placeholderValues = placeholderValues ;
130128 }
131129
132130 /**
@@ -219,8 +217,8 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
219217 @ Nonnull
220218 public Map <String , Object > toMap () {
221219 final Map <String , Object > declaredFields = new LinkedHashMap <>(cloudSdkCustomFields );
222- if (orchestrationConfig != null ) declaredFields .put ("orchestrationConfig " , orchestrationConfig );
223- if (inputParams != null ) declaredFields .put ("inputParams " , inputParams );
220+ if (config != null ) declaredFields .put ("config " , config );
221+ if (placeholderValues != null ) declaredFields .put ("placeholderValues " , placeholderValues );
224222 if (messagesHistory != null ) declaredFields .put ("messagesHistory" , messagesHistory );
225223 return declaredFields ;
226224 }
@@ -247,25 +245,23 @@ public boolean equals(@Nullable final java.lang.Object o) {
247245 }
248246 final CompletionPostRequest completionPostRequest = (CompletionPostRequest ) o ;
249247 return Objects .equals (this .cloudSdkCustomFields , completionPostRequest .cloudSdkCustomFields )
250- && Objects .equals (this .orchestrationConfig , completionPostRequest .orchestrationConfig )
251- && Objects .equals (this .inputParams , completionPostRequest .inputParams )
248+ && Objects .equals (this .config , completionPostRequest .config )
249+ && Objects .equals (this .placeholderValues , completionPostRequest .placeholderValues )
252250 && Objects .equals (this .messagesHistory , completionPostRequest .messagesHistory );
253251 }
254252
255253 @ Override
256254 public int hashCode () {
257- return Objects .hash (orchestrationConfig , inputParams , messagesHistory , cloudSdkCustomFields );
255+ return Objects .hash (config , placeholderValues , messagesHistory , cloudSdkCustomFields );
258256 }
259257
260258 @ Override
261259 @ Nonnull
262260 public String toString () {
263261 final StringBuilder sb = new StringBuilder ();
264262 sb .append ("class CompletionPostRequest {\n " );
265- sb .append (" orchestrationConfig: " )
266- .append (toIndentedString (orchestrationConfig ))
267- .append ("\n " );
268- sb .append (" inputParams: " ).append (toIndentedString (inputParams )).append ("\n " );
263+ sb .append (" config: " ).append (toIndentedString (config )).append ("\n " );
264+ sb .append (" placeholderValues: " ).append (toIndentedString (placeholderValues )).append ("\n " );
269265 sb .append (" messagesHistory: " ).append (toIndentedString (messagesHistory )).append ("\n " );
270266 cloudSdkCustomFields .forEach (
271267 (k , v ) ->
@@ -289,19 +285,17 @@ private String toIndentedString(final java.lang.Object o) {
289285 * instance with all required arguments.
290286 */
291287 public static Builder create () {
292- return (orchestrationConfig ) ->
293- new CompletionPostRequest ().orchestrationConfig (orchestrationConfig );
288+ return (config ) -> new CompletionPostRequest ().config (config );
294289 }
295290
296291 /** Builder helper class. */
297292 public interface Builder {
298293 /**
299- * Set the orchestrationConfig of this {@link CompletionPostRequest} instance.
294+ * Set the config of this {@link CompletionPostRequest} instance.
300295 *
301- * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest}
296+ * @param config The config of this {@link CompletionPostRequest}
302297 * @return The CompletionPostRequest instance.
303298 */
304- CompletionPostRequest orchestrationConfig (
305- @ Nonnull final OrchestrationConfig orchestrationConfig );
299+ CompletionPostRequest config (@ Nonnull final OrchestrationConfig config );
306300 }
307301}
0 commit comments