Skip to content

Commit 35e1a2f

Browse files
update java petstore samples
1 parent 2402a72 commit 35e1a2f

6 files changed

Lines changed: 60 additions & 0 deletions

File tree

samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public String getBar() {
7171
}
7272

7373

74+
/**
75+
* Protected setter for bar (readOnly property, used by subclasses' @JsonCreator).
76+
*/
77+
protected void setBar(@javax.annotation.Nullable String bar) {
78+
this.bar = bar;
79+
}
7480

7581

7682
/**
@@ -85,6 +91,12 @@ public String getFoo() {
8591
}
8692

8793

94+
/**
95+
* Protected setter for foo (readOnly property, used by subclasses' @JsonCreator).
96+
*/
97+
protected void setFoo(@javax.annotation.Nullable String foo) {
98+
this.foo = foo;
99+
}
88100

89101

90102
/**

samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ public Integer getSnakeCase() {
105105
}
106106

107107

108+
/**
109+
* Protected setter for snakeCase (readOnly property, used by subclasses' @JsonCreator).
110+
*/
111+
protected void setSnakeCase(@javax.annotation.Nullable Integer snakeCase) {
112+
this.snakeCase = snakeCase;
113+
}
108114

109115

110116
public Name property(@javax.annotation.Nullable String property) {
@@ -143,6 +149,12 @@ public Integer get123number() {
143149
}
144150

145151

152+
/**
153+
* Protected setter for _123number (readOnly property, used by subclasses' @JsonCreator).
154+
*/
155+
protected void set123number(@javax.annotation.Nullable Integer _123number) {
156+
this._123number = _123number;
157+
}
146158

147159

148160
/**

samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ public String getBar() {
6969
}
7070

7171

72+
/**
73+
* Protected setter for bar (readOnly property, used by subclasses' @JsonCreator).
74+
*/
75+
protected void setBar(@javax.annotation.Nullable String bar) {
76+
this.bar = bar;
77+
}
7278

7379

7480
public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {

samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public String getBar() {
7373
}
7474

7575

76+
/**
77+
* Protected setter for bar (readOnly property, used by subclasses' @JsonCreator).
78+
*/
79+
protected void setBar(@javax.annotation.Nullable String bar) {
80+
this.bar = bar;
81+
}
7682

7783

7884
/**
@@ -87,6 +93,12 @@ public String getFoo() {
8793
}
8894

8995

96+
/**
97+
* Protected setter for foo (readOnly property, used by subclasses' @JsonCreator).
98+
*/
99+
protected void setFoo(@javax.annotation.Nullable String foo) {
100+
this.foo = foo;
101+
}
90102

91103

92104
/**

samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ public Integer getSnakeCase() {
107107
}
108108

109109

110+
/**
111+
* Protected setter for snakeCase (readOnly property, used by subclasses' @JsonCreator).
112+
*/
113+
protected void setSnakeCase(@javax.annotation.Nullable Integer snakeCase) {
114+
this.snakeCase = snakeCase;
115+
}
110116

111117

112118
public Name property(@javax.annotation.Nullable String property) {
@@ -145,6 +151,12 @@ public Integer get123number() {
145151
}
146152

147153

154+
/**
155+
* Protected setter for _123number (readOnly property, used by subclasses' @JsonCreator).
156+
*/
157+
protected void set123number(@javax.annotation.Nullable Integer _123number) {
158+
this._123number = _123number;
159+
}
148160

149161

150162
/**

samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public String getBar() {
7171
}
7272

7373

74+
/**
75+
* Protected setter for bar (readOnly property, used by subclasses' @JsonCreator).
76+
*/
77+
protected void setBar(@javax.annotation.Nullable String bar) {
78+
this.bar = bar;
79+
}
7480

7581

7682
public ReadOnlyFirst baz(@javax.annotation.Nullable String baz) {

0 commit comments

Comments
 (0)