'+newsBody.text+'
' + 27 | 'Text
57 |newBuilder()
.
86 | */
87 | public NewsEvent() {}
88 |
89 | /**
90 | * All-args constructor.
91 | * @param id The new value for id
92 | * @param title The new value for title
93 | * @param text The new value for text
94 | * @param datetime The new value for datetime
95 | * @param category The new value for category
96 | */
97 | public NewsEvent(java.lang.CharSequence id, java.lang.CharSequence title, java.lang.CharSequence text, java.lang.CharSequence datetime, java.lang.CharSequence category) {
98 | this.id = id;
99 | this.title = title;
100 | this.text = text;
101 | this.datetime = datetime;
102 | this.category = category;
103 | }
104 |
105 | @Override
106 | public org.apache.avro.specific.SpecificData getSpecificData() { return MODEL$; }
107 |
108 | @Override
109 | public org.apache.avro.Schema getSchema() { return SCHEMA$; }
110 |
111 | // Used by DatumWriter. Applications should not call.
112 | @Override
113 | public java.lang.Object get(int field$) {
114 | switch (field$) {
115 | case 0: return id;
116 | case 1: return title;
117 | case 2: return text;
118 | case 3: return datetime;
119 | case 4: return category;
120 | default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
121 | }
122 | }
123 |
124 | // Used by DatumReader. Applications should not call.
125 | @Override
126 | @SuppressWarnings(value="unchecked")
127 | public void put(int field$, java.lang.Object value$) {
128 | switch (field$) {
129 | case 0: id = (java.lang.CharSequence)value$; break;
130 | case 1: title = (java.lang.CharSequence)value$; break;
131 | case 2: text = (java.lang.CharSequence)value$; break;
132 | case 3: datetime = (java.lang.CharSequence)value$; break;
133 | case 4: category = (java.lang.CharSequence)value$; break;
134 | default: throw new IndexOutOfBoundsException("Invalid index: " + field$);
135 | }
136 | }
137 |
138 | /**
139 | * Gets the value of the 'id' field.
140 | * @return The value of the 'id' field.
141 | */
142 | public java.lang.CharSequence getId() {
143 | return id;
144 | }
145 |
146 |
147 | /**
148 | * Sets the value of the 'id' field.
149 | * @param value the value to set.
150 | */
151 | public void setId(java.lang.CharSequence value) {
152 | this.id = value;
153 | }
154 |
155 | /**
156 | * Gets the value of the 'title' field.
157 | * @return The value of the 'title' field.
158 | */
159 | public java.lang.CharSequence getTitle() {
160 | return title;
161 | }
162 |
163 |
164 | /**
165 | * Sets the value of the 'title' field.
166 | * @param value the value to set.
167 | */
168 | public void setTitle(java.lang.CharSequence value) {
169 | this.title = value;
170 | }
171 |
172 | /**
173 | * Gets the value of the 'text' field.
174 | * @return The value of the 'text' field.
175 | */
176 | public java.lang.CharSequence getText() {
177 | return text;
178 | }
179 |
180 |
181 | /**
182 | * Sets the value of the 'text' field.
183 | * @param value the value to set.
184 | */
185 | public void setText(java.lang.CharSequence value) {
186 | this.text = value;
187 | }
188 |
189 | /**
190 | * Gets the value of the 'datetime' field.
191 | * @return The value of the 'datetime' field.
192 | */
193 | public java.lang.CharSequence getDatetime() {
194 | return datetime;
195 | }
196 |
197 |
198 | /**
199 | * Sets the value of the 'datetime' field.
200 | * @param value the value to set.
201 | */
202 | public void setDatetime(java.lang.CharSequence value) {
203 | this.datetime = value;
204 | }
205 |
206 | /**
207 | * Gets the value of the 'category' field.
208 | * @return The value of the 'category' field.
209 | */
210 | public java.lang.CharSequence getCategory() {
211 | return category;
212 | }
213 |
214 |
215 | /**
216 | * Sets the value of the 'category' field.
217 | * @param value the value to set.
218 | */
219 | public void setCategory(java.lang.CharSequence value) {
220 | this.category = value;
221 | }
222 |
223 | /**
224 | * Creates a new NewsEvent RecordBuilder.
225 | * @return A new NewsEvent RecordBuilder
226 | */
227 | public static com.ivanfranchin.commonsnews.avro.NewsEvent.Builder newBuilder() {
228 | return new com.ivanfranchin.commonsnews.avro.NewsEvent.Builder();
229 | }
230 |
231 | /**
232 | * Creates a new NewsEvent RecordBuilder by copying an existing Builder.
233 | * @param other The existing builder to copy.
234 | * @return A new NewsEvent RecordBuilder
235 | */
236 | public static com.ivanfranchin.commonsnews.avro.NewsEvent.Builder newBuilder(com.ivanfranchin.commonsnews.avro.NewsEvent.Builder other) {
237 | if (other == null) {
238 | return new com.ivanfranchin.commonsnews.avro.NewsEvent.Builder();
239 | } else {
240 | return new com.ivanfranchin.commonsnews.avro.NewsEvent.Builder(other);
241 | }
242 | }
243 |
244 | /**
245 | * Creates a new NewsEvent RecordBuilder by copying an existing NewsEvent instance.
246 | * @param other The existing instance to copy.
247 | * @return A new NewsEvent RecordBuilder
248 | */
249 | public static com.ivanfranchin.commonsnews.avro.NewsEvent.Builder newBuilder(com.ivanfranchin.commonsnews.avro.NewsEvent other) {
250 | if (other == null) {
251 | return new com.ivanfranchin.commonsnews.avro.NewsEvent.Builder();
252 | } else {
253 | return new com.ivanfranchin.commonsnews.avro.NewsEvent.Builder(other);
254 | }
255 | }
256 |
257 | /**
258 | * RecordBuilder for NewsEvent instances.
259 | */
260 | @org.apache.avro.specific.AvroGenerated
261 | public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase'+newsBody.text+'
' + 27 | 'Text
57 |