Skip to content

Commit 9248cb3

Browse files
committed
added generator script
1 parent 35fb8bb commit 9248cb3

File tree

286 files changed

+5211
-1045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+5211
-1045
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* <p>Modifications copyright (C) 2017 Uber Technologies, Inc.
5+
*
6+
* <p>Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
7+
* except in compliance with the License. A copy of the License is located at
8+
*
9+
* <p>http://aws.amazon.com/apache2.0
10+
*
11+
* <p>or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
* specific language governing permissions and limitations under the License.
14+
*/
15+
package com.uber.cadence.entities;
16+
17+
import java.util.*;
18+
import lombok.Getter;
19+
import lombok.Setter;
20+
import lombok.experimental.Accessors;
21+
22+
/**
23+
* DO NOT EDIT THIS FILE.
24+
*
25+
* <p>This file is generated by cadence-idl custom generator for simple java entity
26+
*
27+
* <p>If you want to change the code, please modify the generator.
28+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
29+
*/
30+
@Getter
31+
@Setter
32+
@Accessors(chain = true)
33+
public class AccessDeniedError extends BaseError {
34+
35+
public AccessDeniedError() {
36+
super();
37+
}
38+
39+
public AccessDeniedError(String message, Throwable cause) {
40+
super(message, cause);
41+
}
42+
43+
public AccessDeniedError(Throwable cause) {
44+
super(cause);
45+
}
46+
}

src/main/java/com/uber/cadence/entities/ActivityLocalDispatchInfo.java renamed to .gen/com/uber/cadence/entities/ActivityLocalDispatchInfo.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityLocalDispatchInfo {
2132
private String activityId;
2233
private long scheduledTimestamp;

src/main/java/com/uber/cadence/entities/ActivityTaskCancelRequestedEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskCancelRequestedEventAttributes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskCancelRequestedEventAttributes {
2132
private String activityId;
2233
private long decisionTaskCompletedEventId;

src/main/java/com/uber/cadence/entities/ActivityTaskCanceledEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskCanceledEventAttributes.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,24 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskCanceledEventAttributes {
2132
private byte[] details;
33+
private long latestCancelRequestedEventId;
2234
private long scheduledEventId;
2335
private long startedEventId;
24-
private long latestCancelRequestedEventId;
2536
private String identity;
2637
}

src/main/java/com/uber/cadence/entities/ActivityTaskCompletedEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskCompletedEventAttributes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskCompletedEventAttributes {
2132
private byte[] result;
2233
private long scheduledEventId;

src/main/java/com/uber/cadence/entities/ActivityTaskFailedEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskFailedEventAttributes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskFailedEventAttributes {
2132
private String reason;
2233
private byte[] details;

src/main/java/com/uber/cadence/entities/ActivityTaskScheduledEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskScheduledEventAttributes.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,23 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskScheduledEventAttributes {
21-
private ActivityType activityType;
2232
private String activityId;
33+
private ActivityType activityType;
2334
private String domain;
2435
private TaskList taskList;
2536
private byte[] input;
@@ -30,5 +41,4 @@ public class ActivityTaskScheduledEventAttributes {
3041
private long decisionTaskCompletedEventId;
3142
private RetryPolicy retryPolicy;
3243
private Header header;
33-
private String requestLocalDispatch;
3444
}

src/main/java/com/uber/cadence/entities/ActivityTaskStartedEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskStartedEventAttributes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskStartedEventAttributes {
2132
private long scheduledEventId;
2233
private String identity;

src/main/java/com/uber/cadence/entities/ActivityTaskTimedOutEventAttributes.java renamed to .gen/com/uber/cadence/entities/ActivityTaskTimedOutEventAttributes.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,25 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityTaskTimedOutEventAttributes {
2132
private byte[] details;
2233
private long scheduledEventId;
2334
private long startedEventId;
2435
private TimeoutType timeoutType;
25-
private String lastHeartbeatDetails;
2636
private String lastFailureReason;
2737
private byte[] lastFailureDetails;
2838
}

src/main/java/com/uber/cadence/entities/ActivityType.java renamed to .gen/com/uber/cadence/entities/ActivityType.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@
1414
*/
1515
package com.uber.cadence.entities;
1616

17+
import java.util.*;
1718
import lombok.Data;
19+
import lombok.experimental.Accessors;
1820

21+
/**
22+
* DO NOT EDIT THIS FILE.
23+
*
24+
* <p>This file is generated by cadence-idl custom generator for simple java entity
25+
*
26+
* <p>If you want to change the code, please modify the generator.
27+
* https://github.com/cadence-workflow/cadence-idl/tree/main/java/thrift/generator
28+
*/
1929
@Data
30+
@Accessors(chain = true)
2031
public class ActivityType {
2132
private String name;
2233
}

0 commit comments

Comments
 (0)