Skip to content

Commit 4c13261

Browse files
committed
Fix things
Signed-off-by: sirivarma <[email protected]>
1 parent 683beae commit 4c13261

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

sdk/src/main/java/io/dapr/client/domain/AssistantMessage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ public String getName() {
4949
* Sets the name of the assistant participant.
5050
*
5151
* @param name the name to set
52+
* @return this instance for method chaining
5253
*/
53-
public void setName(String name) {
54+
public AssistantMessage setName(String name) {
5455
this.name = name;
56+
return this;
5557
}
5658

5759
@Override

sdk/src/main/java/io/dapr/client/domain/DeveloperMessage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ public String getName() {
4747
* Sets the name of the developer participant.
4848
*
4949
* @param name the name to set
50+
* @return this instance for method chaining
5051
*/
51-
public void setName(String name) {
52+
public DeveloperMessage setName(String name) {
5253
this.name = name;
54+
return this;
5355
}
5456

5557
@Override

sdk/src/main/java/io/dapr/client/domain/ToolMessage.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,22 @@ public String getName() {
4848
* Sets the tool identifier.
4949
*
5050
* @param toolId the tool identifier to set
51+
* @return this instance for method chaining
5152
*/
52-
public void setToolId(String toolId) {
53+
public ToolMessage setToolId(String toolId) {
5354
this.toolId = toolId;
55+
return this;
5456
}
5557

5658
/**
5759
* Sets the name of the tool participant.
5860
*
5961
* @param name the name to set
62+
* @return this instance for method chaining
6063
*/
61-
public void setName(String name) {
64+
public ToolMessage setName(String name) {
6265
this.name = name;
66+
return this;
6367
}
6468

6569
@Override

sdk/src/main/java/io/dapr/client/domain/UserMessage.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ public String getName() {
4747
* Sets the name of the user participant.
4848
*
4949
* @param name the name to set
50+
* @return this instance for method chaining
5051
*/
51-
public void setName(String name) {
52+
public UserMessage setName(String name) {
5253
this.name = name;
54+
return this;
5355
}
5456

5557
@Override

0 commit comments

Comments
 (0)