File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
sdk/src/main/java/io/dapr/client/domain Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments