2929import static com .uber .cadence .internal .compatibility .proto .Helpers .newFieldMask ;
3030import static com .uber .cadence .internal .compatibility .proto .Helpers .nullToEmpty ;
3131import static com .uber .cadence .internal .compatibility .proto .Helpers .secondsToDuration ;
32+ import static com .uber .cadence .internal .compatibility .proto .Helpers .unixNanoToTime ;
3233import static com .uber .cadence .internal .compatibility .proto .TypeMapper .badBinaries ;
3334import static com .uber .cadence .internal .compatibility .proto .TypeMapper .clusterReplicationConfigurationArray ;
3435import static com .uber .cadence .internal .compatibility .proto .TypeMapper .failure ;
@@ -403,6 +404,7 @@ public static DescribeWorkflowExecutionRequest describeWorkflowExecutionRequest(
403404 return DescribeWorkflowExecutionRequest .newBuilder ()
404405 .setDomain (t .getDomain ())
405406 .setWorkflowExecution (workflowExecution (t .getExecution ()))
407+ .setQueryConsistencyLevel (queryConsistencyLevel (t .getQueryConsistencyLevel ()))
406408 .build ();
407409 }
408410
@@ -418,7 +420,8 @@ public static GetWorkflowExecutionHistoryRequest getWorkflowExecutionHistoryRequ
418420 .setPageSize (t .getMaximumPageSize ())
419421 .setWaitForNewEvent (t .isWaitForNewEvent ())
420422 .setHistoryEventFilterType (eventFilterType (t .HistoryEventFilterType ))
421- .setSkipArchival (t .isSkipArchival ());
423+ .setSkipArchival (t .isSkipArchival ())
424+ .setQueryConsistencyLevel (queryConsistencyLevel (t .getQueryConsistencyLevel ()));
422425 if (t .getNextPageToken () != null ) {
423426 builder .setNextPageToken (arrayToByteString (t .getNextPageToken ()));
424427 }
@@ -445,6 +448,9 @@ public static SignalWithStartWorkflowExecutionRequest signalWithStartWorkflowExe
445448 .setSearchAttributes (searchAttributes (t .getSearchAttributes ()))
446449 .setHeader (header (t .getHeader ()))
447450 .setJitterStart (secondsToDuration (t .getJitterStartSeconds ()));
451+ if (t .isSetFirstRunAtTimestamp ()) {
452+ builder .setFirstRunAt (unixNanoToTime (t .getFirstRunAtTimestamp ()));
453+ }
448454 if (t .getRetryPolicy () != null ) {
449455 builder .setRetryPolicy (retryPolicy (t .getRetryPolicy ()));
450456 }
@@ -530,6 +536,9 @@ public static StartWorkflowExecutionRequest startWorkflowExecutionRequest(
530536 .setHeader (header (t .getHeader ()))
531537 .setDelayStart (secondsToDuration (t .getDelayStartSeconds ()))
532538 .setJitterStart (secondsToDuration (t .getJitterStartSeconds ()));
539+ if (t .isSetFirstRunAtTimestamp ()) {
540+ request .setFirstRunAt (unixNanoToTime (t .getFirstRunAtTimestamp ()));
541+ }
533542 if (t .getRetryPolicy () != null ) {
534543 request .setRetryPolicy (retryPolicy (t .getRetryPolicy ()));
535544 }
0 commit comments