@@ -173,6 +173,147 @@ public Locations locations() {
173173 */
174174 public class Locations {
175175
176+ /**
177+ * Generates shifts constrained by various parameters.
178+ *
179+ * Create a request for the method "locations.generateShifts".
180+ *
181+ * This request holds the parameters needed by the contactcenteraiplatform server. After setting
182+ * any optional parameters, call the {@link GenerateShifts#execute()} method to invoke the remote
183+ * operation.
184+ *
185+ * @param parent Required. Name of the parent resource associated with the request. Format:
186+ * projects/{project}/locations/{location}
187+ * @param content the {@link com.google.api.services.contactcenteraiplatform.v1alpha1.model.GenerateShiftsRequest}
188+ * @return the request
189+ */
190+ public GenerateShifts generateShifts (java .lang .String parent , com .google .api .services .contactcenteraiplatform .v1alpha1 .model .GenerateShiftsRequest content ) throws java .io .IOException {
191+ GenerateShifts result = new GenerateShifts (parent , content );
192+ initialize (result );
193+ return result ;
194+ }
195+
196+ public class GenerateShifts extends CCAIPlatformRequest <com .google .api .services .contactcenteraiplatform .v1alpha1 .model .Operation > {
197+
198+ private static final String REST_PATH = "v1alpha1/{+parent}:generateShifts" ;
199+
200+ private final java .util .regex .Pattern PARENT_PATTERN =
201+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+$" );
202+
203+ /**
204+ * Generates shifts constrained by various parameters.
205+ *
206+ * Create a request for the method "locations.generateShifts".
207+ *
208+ * This request holds the parameters needed by the the contactcenteraiplatform server. After
209+ * setting any optional parameters, call the {@link GenerateShifts#execute()} method to invoke the
210+ * remote operation. <p> {@link GenerateShifts#initialize(com.google.api.client.googleapis.service
211+ * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
212+ * invoking the constructor. </p>
213+ *
214+ * @param parent Required. Name of the parent resource associated with the request. Format:
215+ * projects/{project}/locations/{location}
216+ * @param content the {@link com.google.api.services.contactcenteraiplatform.v1alpha1.model.GenerateShiftsRequest}
217+ * @since 1.13
218+ */
219+ protected GenerateShifts (java .lang .String parent , com .google .api .services .contactcenteraiplatform .v1alpha1 .model .GenerateShiftsRequest content ) {
220+ super (CCAIPlatform .this , "POST" , REST_PATH , content , com .google .api .services .contactcenteraiplatform .v1alpha1 .model .Operation .class );
221+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
222+ if (!getSuppressPatternChecks ()) {
223+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
224+ "Parameter parent must conform to the pattern " +
225+ "^projects/[^/]+/locations/[^/]+$" );
226+ }
227+ }
228+
229+ @ Override
230+ public GenerateShifts set$Xgafv (java .lang .String $Xgafv ) {
231+ return (GenerateShifts ) super .set$Xgafv ($Xgafv );
232+ }
233+
234+ @ Override
235+ public GenerateShifts setAccessToken (java .lang .String accessToken ) {
236+ return (GenerateShifts ) super .setAccessToken (accessToken );
237+ }
238+
239+ @ Override
240+ public GenerateShifts setAlt (java .lang .String alt ) {
241+ return (GenerateShifts ) super .setAlt (alt );
242+ }
243+
244+ @ Override
245+ public GenerateShifts setCallback (java .lang .String callback ) {
246+ return (GenerateShifts ) super .setCallback (callback );
247+ }
248+
249+ @ Override
250+ public GenerateShifts setFields (java .lang .String fields ) {
251+ return (GenerateShifts ) super .setFields (fields );
252+ }
253+
254+ @ Override
255+ public GenerateShifts setKey (java .lang .String key ) {
256+ return (GenerateShifts ) super .setKey (key );
257+ }
258+
259+ @ Override
260+ public GenerateShifts setOauthToken (java .lang .String oauthToken ) {
261+ return (GenerateShifts ) super .setOauthToken (oauthToken );
262+ }
263+
264+ @ Override
265+ public GenerateShifts setPrettyPrint (java .lang .Boolean prettyPrint ) {
266+ return (GenerateShifts ) super .setPrettyPrint (prettyPrint );
267+ }
268+
269+ @ Override
270+ public GenerateShifts setQuotaUser (java .lang .String quotaUser ) {
271+ return (GenerateShifts ) super .setQuotaUser (quotaUser );
272+ }
273+
274+ @ Override
275+ public GenerateShifts setUploadType (java .lang .String uploadType ) {
276+ return (GenerateShifts ) super .setUploadType (uploadType );
277+ }
278+
279+ @ Override
280+ public GenerateShifts setUploadProtocol (java .lang .String uploadProtocol ) {
281+ return (GenerateShifts ) super .setUploadProtocol (uploadProtocol );
282+ }
283+
284+ /**
285+ * Required. Name of the parent resource associated with the request. Format:
286+ * projects/{project}/locations/{location}
287+ */
288+ @ com .google .api .client .util .Key
289+ private java .lang .String parent ;
290+
291+ /** Required. Name of the parent resource associated with the request. Format:
292+ projects/{project}/locations/{location}
293+ */
294+ public java .lang .String getParent () {
295+ return parent ;
296+ }
297+
298+ /**
299+ * Required. Name of the parent resource associated with the request. Format:
300+ * projects/{project}/locations/{location}
301+ */
302+ public GenerateShifts setParent (java .lang .String parent ) {
303+ if (!getSuppressPatternChecks ()) {
304+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
305+ "Parameter parent must conform to the pattern " +
306+ "^projects/[^/]+/locations/[^/]+$" );
307+ }
308+ this .parent = parent ;
309+ return this ;
310+ }
311+
312+ @ Override
313+ public GenerateShifts set (String parameterName , Object value ) {
314+ return (GenerateShifts ) super .set (parameterName , value );
315+ }
316+ }
176317 /**
177318 * Gets information about a location.
178319 *
0 commit comments