Skip to content

Instantly share code, notes, and snippets.

@ebernhardson
Last active September 22, 2015 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebernhardson/4b90f88779bdc51d894d to your computer and use it in GitHub Desktop.
Save ebernhardson/4b90f88779bdc51d894d to your computer and use it in GitHub Desktop.

Generated via the avro schema with avro-tools-1.7.7

/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.wikimedia.mediawiki.search;
@SuppressWarnings("all")
/** An individual request made between mediawiki and elasticsearch */
@org.apache.avro.specific.AvroGenerated
public class CirrusSearchRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"CirrusSearchRequest\",\"namespace\":\"org.wikimedia.mediawiki.search\",\"doc\":\"An individual request made between mediawiki and elasticsearch\",\"fields\":[{\"name\":\"query\",\"type\":\"string\",\"doc\":\"The actual search request\"},{\"name\":\"queryType\",\"type\":\"string\",\"doc\":\"The general type of query performed, such as full_text, prefix, etc.\"},{\"name\":\"index\",\"type\":{\"type\":\"array\",\"items\":\"string\"},\"doc\":\"The list of indices the request was performed against\"},{\"name\":\"tookMs\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of milliseconds between passing the query to the client library and getting the response back in the application\",\"default\":null},{\"name\":\"elasticTookMs\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of milliseconds the query took, according to the elasticsearch response\",\"default\":null},{\"name\":\"limit\",\"type\":[\"null\",\"int\"],\"doc\":\"The maximum number of results requested by the application\",\"default\":null},{\"name\":\"hitsTotal\",\"type\":[\"null\",\"int\"],\"doc\":\"The approximate total number of documents matching the query\",\"default\":null},{\"name\":\"hitsReturned\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of results returned to the application\",\"default\":null},{\"name\":\"hitsOffset\",\"type\":[\"null\",\"int\"],\"doc\":\"The offset of the query\",\"default\":null},{\"name\":\"namespaces\",\"type\":{\"type\":\"array\",\"items\":\"int\"},\"doc\":\"Each element is a mediawiki namespace id that was searched.\"},{\"name\":\"isSuggestionRequested\",\"type\":\"boolean\",\"doc\":\"True when elasticsearch is asked to generate a suggestion\",\"default\":false},{\"name\":\"suggestion\",\"type\":[\"null\",\"string\"],\"doc\":\"The suggestion generated by elasticsearch, or null if not available\",\"default\":null}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The actual search request */
@Deprecated public java.lang.CharSequence query;
/** The general type of query performed, such as full_text, prefix, etc. */
@Deprecated public java.lang.CharSequence queryType;
/** The list of indices the request was performed against */
@Deprecated public java.util.List<java.lang.CharSequence> index;
/** The number of milliseconds between passing the query to the client library and getting the response back in the application */
@Deprecated public java.lang.Integer tookMs;
/** The number of milliseconds the query took, according to the elasticsearch response */
@Deprecated public java.lang.Integer elasticTookMs;
/** The maximum number of results requested by the application */
@Deprecated public java.lang.Integer limit;
/** The approximate total number of documents matching the query */
@Deprecated public java.lang.Integer hitsTotal;
/** The number of results returned to the application */
@Deprecated public java.lang.Integer hitsReturned;
/** The offset of the query */
@Deprecated public java.lang.Integer hitsOffset;
/** Each element is a mediawiki namespace id that was searched. */
@Deprecated public java.util.List<java.lang.Integer> namespaces;
/** True when elasticsearch is asked to generate a suggestion */
@Deprecated public boolean isSuggestionRequested;
/** The suggestion generated by elasticsearch, or null if not available */
@Deprecated public java.lang.CharSequence suggestion;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use <code>newBuilder()</code>.
*/
public CirrusSearchRequest() {}
/**
* All-args constructor.
*/
public CirrusSearchRequest(java.lang.CharSequence query, java.lang.CharSequence queryType, java.util.List<java.lang.CharSequence> index, java.lang.Integer tookMs, java.lang.Integer elasticTookMs, java.lang.Integer limit, java.lang.Integer hitsTotal, java.lang.Integer hitsReturned, java.lang.Integer hitsOffset, java.util.List<java.lang.Integer> namespaces, java.lang.Boolean isSuggestionRequested, java.lang.CharSequence suggestion) {
this.query = query;
this.queryType = queryType;
this.index = index;
this.tookMs = tookMs;
this.elasticTookMs = elasticTookMs;
this.limit = limit;
this.hitsTotal = hitsTotal;
this.hitsReturned = hitsReturned;
this.hitsOffset = hitsOffset;
this.namespaces = namespaces;
this.isSuggestionRequested = isSuggestionRequested;
this.suggestion = suggestion;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return query;
case 1: return queryType;
case 2: return index;
case 3: return tookMs;
case 4: return elasticTookMs;
case 5: return limit;
case 6: return hitsTotal;
case 7: return hitsReturned;
case 8: return hitsOffset;
case 9: return namespaces;
case 10: return isSuggestionRequested;
case 11: return suggestion;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: query = (java.lang.CharSequence)value$; break;
case 1: queryType = (java.lang.CharSequence)value$; break;
case 2: index = (java.util.List<java.lang.CharSequence>)value$; break;
case 3: tookMs = (java.lang.Integer)value$; break;
case 4: elasticTookMs = (java.lang.Integer)value$; break;
case 5: limit = (java.lang.Integer)value$; break;
case 6: hitsTotal = (java.lang.Integer)value$; break;
case 7: hitsReturned = (java.lang.Integer)value$; break;
case 8: hitsOffset = (java.lang.Integer)value$; break;
case 9: namespaces = (java.util.List<java.lang.Integer>)value$; break;
case 10: isSuggestionRequested = (java.lang.Boolean)value$; break;
case 11: suggestion = (java.lang.CharSequence)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'query' field.
* The actual search request */
public java.lang.CharSequence getQuery() {
return query;
}
/**
* Sets the value of the 'query' field.
* The actual search request * @param value the value to set.
*/
public void setQuery(java.lang.CharSequence value) {
this.query = value;
}
/**
* Gets the value of the 'queryType' field.
* The general type of query performed, such as full_text, prefix, etc. */
public java.lang.CharSequence getQueryType() {
return queryType;
}
/**
* Sets the value of the 'queryType' field.
* The general type of query performed, such as full_text, prefix, etc. * @param value the value to set.
*/
public void setQueryType(java.lang.CharSequence value) {
this.queryType = value;
}
/**
* Gets the value of the 'index' field.
* The list of indices the request was performed against */
public java.util.List<java.lang.CharSequence> getIndex() {
return index;
}
/**
* Sets the value of the 'index' field.
* The list of indices the request was performed against * @param value the value to set.
*/
public void setIndex(java.util.List<java.lang.CharSequence> value) {
this.index = value;
}
/**
* Gets the value of the 'tookMs' field.
* The number of milliseconds between passing the query to the client library and getting the response back in the application */
public java.lang.Integer getTookMs() {
return tookMs;
}
/**
* Sets the value of the 'tookMs' field.
* The number of milliseconds between passing the query to the client library and getting the response back in the application * @param value the value to set.
*/
public void setTookMs(java.lang.Integer value) {
this.tookMs = value;
}
/**
* Gets the value of the 'elasticTookMs' field.
* The number of milliseconds the query took, according to the elasticsearch response */
public java.lang.Integer getElasticTookMs() {
return elasticTookMs;
}
/**
* Sets the value of the 'elasticTookMs' field.
* The number of milliseconds the query took, according to the elasticsearch response * @param value the value to set.
*/
public void setElasticTookMs(java.lang.Integer value) {
this.elasticTookMs = value;
}
/**
* Gets the value of the 'limit' field.
* The maximum number of results requested by the application */
public java.lang.Integer getLimit() {
return limit;
}
/**
* Sets the value of the 'limit' field.
* The maximum number of results requested by the application * @param value the value to set.
*/
public void setLimit(java.lang.Integer value) {
this.limit = value;
}
/**
* Gets the value of the 'hitsTotal' field.
* The approximate total number of documents matching the query */
public java.lang.Integer getHitsTotal() {
return hitsTotal;
}
/**
* Sets the value of the 'hitsTotal' field.
* The approximate total number of documents matching the query * @param value the value to set.
*/
public void setHitsTotal(java.lang.Integer value) {
this.hitsTotal = value;
}
/**
* Gets the value of the 'hitsReturned' field.
* The number of results returned to the application */
public java.lang.Integer getHitsReturned() {
return hitsReturned;
}
/**
* Sets the value of the 'hitsReturned' field.
* The number of results returned to the application * @param value the value to set.
*/
public void setHitsReturned(java.lang.Integer value) {
this.hitsReturned = value;
}
/**
* Gets the value of the 'hitsOffset' field.
* The offset of the query */
public java.lang.Integer getHitsOffset() {
return hitsOffset;
}
/**
* Sets the value of the 'hitsOffset' field.
* The offset of the query * @param value the value to set.
*/
public void setHitsOffset(java.lang.Integer value) {
this.hitsOffset = value;
}
/**
* Gets the value of the 'namespaces' field.
* Each element is a mediawiki namespace id that was searched. */
public java.util.List<java.lang.Integer> getNamespaces() {
return namespaces;
}
/**
* Sets the value of the 'namespaces' field.
* Each element is a mediawiki namespace id that was searched. * @param value the value to set.
*/
public void setNamespaces(java.util.List<java.lang.Integer> value) {
this.namespaces = value;
}
/**
* Gets the value of the 'isSuggestionRequested' field.
* True when elasticsearch is asked to generate a suggestion */
public java.lang.Boolean getIsSuggestionRequested() {
return isSuggestionRequested;
}
/**
* Sets the value of the 'isSuggestionRequested' field.
* True when elasticsearch is asked to generate a suggestion * @param value the value to set.
*/
public void setIsSuggestionRequested(java.lang.Boolean value) {
this.isSuggestionRequested = value;
}
/**
* Gets the value of the 'suggestion' field.
* The suggestion generated by elasticsearch, or null if not available */
public java.lang.CharSequence getSuggestion() {
return suggestion;
}
/**
* Sets the value of the 'suggestion' field.
* The suggestion generated by elasticsearch, or null if not available * @param value the value to set.
*/
public void setSuggestion(java.lang.CharSequence value) {
this.suggestion = value;
}
/** Creates a new CirrusSearchRequest RecordBuilder */
public static org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder newBuilder() {
return new org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder();
}
/** Creates a new CirrusSearchRequest RecordBuilder by copying an existing Builder */
public static org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder newBuilder(org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder other) {
return new org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder(other);
}
/** Creates a new CirrusSearchRequest RecordBuilder by copying an existing CirrusSearchRequest instance */
public static org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder newBuilder(org.wikimedia.mediawiki.search.CirrusSearchRequest other) {
return new org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder(other);
}
/**
* RecordBuilder for CirrusSearchRequest instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<CirrusSearchRequest>
implements org.apache.avro.data.RecordBuilder<CirrusSearchRequest> {
private java.lang.CharSequence query;
private java.lang.CharSequence queryType;
private java.util.List<java.lang.CharSequence> index;
private java.lang.Integer tookMs;
private java.lang.Integer elasticTookMs;
private java.lang.Integer limit;
private java.lang.Integer hitsTotal;
private java.lang.Integer hitsReturned;
private java.lang.Integer hitsOffset;
private java.util.List<java.lang.Integer> namespaces;
private boolean isSuggestionRequested;
private java.lang.CharSequence suggestion;
/** Creates a new Builder */
private Builder() {
super(org.wikimedia.mediawiki.search.CirrusSearchRequest.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder other) {
super(other);
if (isValidValue(fields()[0], other.query)) {
this.query = data().deepCopy(fields()[0].schema(), other.query);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.queryType)) {
this.queryType = data().deepCopy(fields()[1].schema(), other.queryType);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.index)) {
this.index = data().deepCopy(fields()[2].schema(), other.index);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.tookMs)) {
this.tookMs = data().deepCopy(fields()[3].schema(), other.tookMs);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.elasticTookMs)) {
this.elasticTookMs = data().deepCopy(fields()[4].schema(), other.elasticTookMs);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.limit)) {
this.limit = data().deepCopy(fields()[5].schema(), other.limit);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.hitsTotal)) {
this.hitsTotal = data().deepCopy(fields()[6].schema(), other.hitsTotal);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.hitsReturned)) {
this.hitsReturned = data().deepCopy(fields()[7].schema(), other.hitsReturned);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.hitsOffset)) {
this.hitsOffset = data().deepCopy(fields()[8].schema(), other.hitsOffset);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.namespaces)) {
this.namespaces = data().deepCopy(fields()[9].schema(), other.namespaces);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.isSuggestionRequested)) {
this.isSuggestionRequested = data().deepCopy(fields()[10].schema(), other.isSuggestionRequested);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.suggestion)) {
this.suggestion = data().deepCopy(fields()[11].schema(), other.suggestion);
fieldSetFlags()[11] = true;
}
}
/** Creates a Builder by copying an existing CirrusSearchRequest instance */
private Builder(org.wikimedia.mediawiki.search.CirrusSearchRequest other) {
super(org.wikimedia.mediawiki.search.CirrusSearchRequest.SCHEMA$);
if (isValidValue(fields()[0], other.query)) {
this.query = data().deepCopy(fields()[0].schema(), other.query);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.queryType)) {
this.queryType = data().deepCopy(fields()[1].schema(), other.queryType);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.index)) {
this.index = data().deepCopy(fields()[2].schema(), other.index);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.tookMs)) {
this.tookMs = data().deepCopy(fields()[3].schema(), other.tookMs);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.elasticTookMs)) {
this.elasticTookMs = data().deepCopy(fields()[4].schema(), other.elasticTookMs);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.limit)) {
this.limit = data().deepCopy(fields()[5].schema(), other.limit);
fieldSetFlags()[5] = true;
}
if (isValidValue(fields()[6], other.hitsTotal)) {
this.hitsTotal = data().deepCopy(fields()[6].schema(), other.hitsTotal);
fieldSetFlags()[6] = true;
}
if (isValidValue(fields()[7], other.hitsReturned)) {
this.hitsReturned = data().deepCopy(fields()[7].schema(), other.hitsReturned);
fieldSetFlags()[7] = true;
}
if (isValidValue(fields()[8], other.hitsOffset)) {
this.hitsOffset = data().deepCopy(fields()[8].schema(), other.hitsOffset);
fieldSetFlags()[8] = true;
}
if (isValidValue(fields()[9], other.namespaces)) {
this.namespaces = data().deepCopy(fields()[9].schema(), other.namespaces);
fieldSetFlags()[9] = true;
}
if (isValidValue(fields()[10], other.isSuggestionRequested)) {
this.isSuggestionRequested = data().deepCopy(fields()[10].schema(), other.isSuggestionRequested);
fieldSetFlags()[10] = true;
}
if (isValidValue(fields()[11], other.suggestion)) {
this.suggestion = data().deepCopy(fields()[11].schema(), other.suggestion);
fieldSetFlags()[11] = true;
}
}
/** Gets the value of the 'query' field */
public java.lang.CharSequence getQuery() {
return query;
}
/** Sets the value of the 'query' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setQuery(java.lang.CharSequence value) {
validate(fields()[0], value);
this.query = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'query' field has been set */
public boolean hasQuery() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'query' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearQuery() {
query = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'queryType' field */
public java.lang.CharSequence getQueryType() {
return queryType;
}
/** Sets the value of the 'queryType' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setQueryType(java.lang.CharSequence value) {
validate(fields()[1], value);
this.queryType = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'queryType' field has been set */
public boolean hasQueryType() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'queryType' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearQueryType() {
queryType = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'index' field */
public java.util.List<java.lang.CharSequence> getIndex() {
return index;
}
/** Sets the value of the 'index' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setIndex(java.util.List<java.lang.CharSequence> value) {
validate(fields()[2], value);
this.index = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'index' field has been set */
public boolean hasIndex() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'index' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearIndex() {
index = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'tookMs' field */
public java.lang.Integer getTookMs() {
return tookMs;
}
/** Sets the value of the 'tookMs' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setTookMs(java.lang.Integer value) {
validate(fields()[3], value);
this.tookMs = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'tookMs' field has been set */
public boolean hasTookMs() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'tookMs' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearTookMs() {
tookMs = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'elasticTookMs' field */
public java.lang.Integer getElasticTookMs() {
return elasticTookMs;
}
/** Sets the value of the 'elasticTookMs' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setElasticTookMs(java.lang.Integer value) {
validate(fields()[4], value);
this.elasticTookMs = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'elasticTookMs' field has been set */
public boolean hasElasticTookMs() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'elasticTookMs' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearElasticTookMs() {
elasticTookMs = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'limit' field */
public java.lang.Integer getLimit() {
return limit;
}
/** Sets the value of the 'limit' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setLimit(java.lang.Integer value) {
validate(fields()[5], value);
this.limit = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'limit' field has been set */
public boolean hasLimit() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'limit' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearLimit() {
limit = null;
fieldSetFlags()[5] = false;
return this;
}
/** Gets the value of the 'hitsTotal' field */
public java.lang.Integer getHitsTotal() {
return hitsTotal;
}
/** Sets the value of the 'hitsTotal' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setHitsTotal(java.lang.Integer value) {
validate(fields()[6], value);
this.hitsTotal = value;
fieldSetFlags()[6] = true;
return this;
}
/** Checks whether the 'hitsTotal' field has been set */
public boolean hasHitsTotal() {
return fieldSetFlags()[6];
}
/** Clears the value of the 'hitsTotal' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearHitsTotal() {
hitsTotal = null;
fieldSetFlags()[6] = false;
return this;
}
/** Gets the value of the 'hitsReturned' field */
public java.lang.Integer getHitsReturned() {
return hitsReturned;
}
/** Sets the value of the 'hitsReturned' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setHitsReturned(java.lang.Integer value) {
validate(fields()[7], value);
this.hitsReturned = value;
fieldSetFlags()[7] = true;
return this;
}
/** Checks whether the 'hitsReturned' field has been set */
public boolean hasHitsReturned() {
return fieldSetFlags()[7];
}
/** Clears the value of the 'hitsReturned' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearHitsReturned() {
hitsReturned = null;
fieldSetFlags()[7] = false;
return this;
}
/** Gets the value of the 'hitsOffset' field */
public java.lang.Integer getHitsOffset() {
return hitsOffset;
}
/** Sets the value of the 'hitsOffset' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setHitsOffset(java.lang.Integer value) {
validate(fields()[8], value);
this.hitsOffset = value;
fieldSetFlags()[8] = true;
return this;
}
/** Checks whether the 'hitsOffset' field has been set */
public boolean hasHitsOffset() {
return fieldSetFlags()[8];
}
/** Clears the value of the 'hitsOffset' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearHitsOffset() {
hitsOffset = null;
fieldSetFlags()[8] = false;
return this;
}
/** Gets the value of the 'namespaces' field */
public java.util.List<java.lang.Integer> getNamespaces() {
return namespaces;
}
/** Sets the value of the 'namespaces' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setNamespaces(java.util.List<java.lang.Integer> value) {
validate(fields()[9], value);
this.namespaces = value;
fieldSetFlags()[9] = true;
return this;
}
/** Checks whether the 'namespaces' field has been set */
public boolean hasNamespaces() {
return fieldSetFlags()[9];
}
/** Clears the value of the 'namespaces' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearNamespaces() {
namespaces = null;
fieldSetFlags()[9] = false;
return this;
}
/** Gets the value of the 'isSuggestionRequested' field */
public java.lang.Boolean getIsSuggestionRequested() {
return isSuggestionRequested;
}
/** Sets the value of the 'isSuggestionRequested' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setIsSuggestionRequested(boolean value) {
validate(fields()[10], value);
this.isSuggestionRequested = value;
fieldSetFlags()[10] = true;
return this;
}
/** Checks whether the 'isSuggestionRequested' field has been set */
public boolean hasIsSuggestionRequested() {
return fieldSetFlags()[10];
}
/** Clears the value of the 'isSuggestionRequested' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearIsSuggestionRequested() {
fieldSetFlags()[10] = false;
return this;
}
/** Gets the value of the 'suggestion' field */
public java.lang.CharSequence getSuggestion() {
return suggestion;
}
/** Sets the value of the 'suggestion' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder setSuggestion(java.lang.CharSequence value) {
validate(fields()[11], value);
this.suggestion = value;
fieldSetFlags()[11] = true;
return this;
}
/** Checks whether the 'suggestion' field has been set */
public boolean hasSuggestion() {
return fieldSetFlags()[11];
}
/** Clears the value of the 'suggestion' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequest.Builder clearSuggestion() {
suggestion = null;
fieldSetFlags()[11] = false;
return this;
}
@Override
public CirrusSearchRequest build() {
try {
CirrusSearchRequest record = new CirrusSearchRequest();
record.query = fieldSetFlags()[0] ? this.query : (java.lang.CharSequence) defaultValue(fields()[0]);
record.queryType = fieldSetFlags()[1] ? this.queryType : (java.lang.CharSequence) defaultValue(fields()[1]);
record.index = fieldSetFlags()[2] ? this.index : (java.util.List<java.lang.CharSequence>) defaultValue(fields()[2]);
record.tookMs = fieldSetFlags()[3] ? this.tookMs : (java.lang.Integer) defaultValue(fields()[3]);
record.elasticTookMs = fieldSetFlags()[4] ? this.elasticTookMs : (java.lang.Integer) defaultValue(fields()[4]);
record.limit = fieldSetFlags()[5] ? this.limit : (java.lang.Integer) defaultValue(fields()[5]);
record.hitsTotal = fieldSetFlags()[6] ? this.hitsTotal : (java.lang.Integer) defaultValue(fields()[6]);
record.hitsReturned = fieldSetFlags()[7] ? this.hitsReturned : (java.lang.Integer) defaultValue(fields()[7]);
record.hitsOffset = fieldSetFlags()[8] ? this.hitsOffset : (java.lang.Integer) defaultValue(fields()[8]);
record.namespaces = fieldSetFlags()[9] ? this.namespaces : (java.util.List<java.lang.Integer>) defaultValue(fields()[9]);
record.isSuggestionRequested = fieldSetFlags()[10] ? this.isSuggestionRequested : (java.lang.Boolean) defaultValue(fields()[10]);
record.suggestion = fieldSetFlags()[11] ? this.suggestion : (java.lang.CharSequence) defaultValue(fields()[11]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
{
"type": "record",
"name": "CirrusSearchRequestSet",
"namespace": "org.wikimedia.mediawiki.search",
"doc": "A set of requests made by CirrusSearch to the elasticsearch user for a single php execution context",
"fields": [
{
"name": "wikiId",
"doc": "The wiki making this request, such as dewiki or enwiktionary",
"type": "string"
},
{
"name": "source",
"doc": "Where the request is coming from. Typically: web, api or cli",
"type": "string"
},
{
"name": "identity",
"doc": "A hash identifying the requestor. Includes the IP address and User Agent when available.",
"type": "string"
},
{
"name": "ip",
"doc": "The IP address (either ipv4 or ipv6) in string notation",
"type": [ "null", "string" ],
"default": null
},
{
"name": "userAgent",
"doc": "The HTTP User-Agent header, or null if not-applicable",
"type": [ "null", "string" ],
"default": null
},
{
"name": "requests",
"doc": "A list of requests made between mediawiki and elasticsearch in a single execution context",
"type": {
"type": "array",
"items": {
"name": "CirrusSearchRequest",
"namespace": "org.wikimedia.mediawiki.search",
"doc": "An individual request made between mediawiki and elasticsearch",
"type": "record",
"fields": [
{
"name": "query",
"doc": "The actual search request",
"type": "string"
},
{
"name": "queryType",
"doc": "The general type of query performed, such as full_text, prefix, etc.",
"type": "string"
},
{
"name": "index",
"doc": "The list of indices the request was performed against",
"type": { "type": "array", "items": "string" }
},
{
"name": "tookMs",
"doc": "The number of milliseconds between passing the query to the client library and getting the response back in the application",
"type": [ "null", "int" ],
"default": null
},
{
"name": "elasticTookMs",
"doc": "The number of milliseconds the query took, according to the elasticsearch response",
"type": [ "null", "int" ],
"default": null
},
{
"name": "limit",
"doc": "The maximum number of results requested by the application",
"type": [ "null", "int" ],
"default": null
},
{
"name": "hitsTotal",
"doc": "The approximate total number of documents matching the query",
"type": [ "null", "int" ],
"default": null
},
{
"name": "hitsReturned",
"doc": "The number of results returned to the application",
"type": [ "null", "int" ],
"default": null
},
{
"name": "hitsOffset",
"doc": "The offset of the query",
"type": [ "null", "int" ],
"default": null
},
{
"name": "namespaces",
"doc": "Each element is a mediawiki namespace id that was searched.",
"type": { "type": "array", "items": "int" }
},
{
"name": "suggestionRequested",
"doc": "True when elasticsearch is asked to generate a suggestion",
"type": "boolean",
"default": false
},
{
"name": "suggestion",
"doc": "The suggestion generated by elasticsearch, or null if not available",
"type": [ "null", "string" ],
"default": null
}
]
}
}
}
]
}
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.wikimedia.mediawiki.search;
@SuppressWarnings("all")
/** A set of requests made by CirrusSearch to the elasticsearch user for a single php execution context */
@org.apache.avro.specific.AvroGenerated
public class CirrusSearchRequestSet extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"CirrusSearchRequestSet\",\"namespace\":\"org.wikimedia.mediawiki.search\",\"doc\":\"A set of requests made by CirrusSearch to the elasticsearch user for a single php execution context\",\"fields\":[{\"name\":\"wikiId\",\"type\":\"string\",\"doc\":\"The wiki making this request, such as dewiki or enwiktionary\"},{\"name\":\"source\",\"type\":\"string\",\"doc\":\"Where the request is coming from. Typically: web, api or cli\"},{\"name\":\"identity\",\"type\":\"string\",\"doc\":\"A hash identifying the requestor. Includes the IP address and User Agent when available.\"},{\"name\":\"ip\",\"type\":[\"null\",\"string\"],\"doc\":\"The IP address (either ipv4 or ipv6) in string notation\",\"default\":null},{\"name\":\"userAgent\",\"type\":[\"null\",\"string\"],\"doc\":\"The HTTP User-Agent header, or null if not-applicable\",\"default\":null},{\"name\":\"requests\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"CirrusSearchRequest\",\"doc\":\"An individual request made between mediawiki and elasticsearch\",\"fields\":[{\"name\":\"query\",\"type\":\"string\",\"doc\":\"The actual search request\"},{\"name\":\"queryType\",\"type\":\"string\",\"doc\":\"The general type of query performed, such as full_text, prefix, etc.\"},{\"name\":\"index\",\"type\":{\"type\":\"array\",\"items\":\"string\"},\"doc\":\"The list of indices the request was performed against\"},{\"name\":\"tookMs\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of milliseconds between passing the query to the client library and getting the response back in the application\",\"default\":null},{\"name\":\"elasticTookMs\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of milliseconds the query took, according to the elasticsearch response\",\"default\":null},{\"name\":\"limit\",\"type\":[\"null\",\"int\"],\"doc\":\"The maximum number of results requested by the application\",\"default\":null},{\"name\":\"hitsTotal\",\"type\":[\"null\",\"int\"],\"doc\":\"The approximate total number of documents matching the query\",\"default\":null},{\"name\":\"hitsReturned\",\"type\":[\"null\",\"int\"],\"doc\":\"The number of results returned to the application\",\"default\":null},{\"name\":\"hitsOffset\",\"type\":[\"null\",\"int\"],\"doc\":\"The offset of the query\",\"default\":null},{\"name\":\"namespaces\",\"type\":{\"type\":\"array\",\"items\":\"int\"},\"doc\":\"Each element is a mediawiki namespace id that was searched.\"},{\"name\":\"isSuggestionRequested\",\"type\":\"boolean\",\"doc\":\"True when elasticsearch is asked to generate a suggestion\",\"default\":false},{\"name\":\"suggestion\",\"type\":[\"null\",\"string\"],\"doc\":\"The suggestion generated by elasticsearch, or null if not available\",\"default\":null}]}},\"doc\":\"A list of requests made between mediawiki and elasticsearch in a single execution context\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }
/** The wiki making this request, such as dewiki or enwiktionary */
@Deprecated public java.lang.CharSequence wikiId;
/** Where the request is coming from. Typically: web, api or cli */
@Deprecated public java.lang.CharSequence source;
/** A hash identifying the requestor. Includes the IP address and User Agent when available. */
@Deprecated public java.lang.CharSequence identity;
/** The IP address (either ipv4 or ipv6) in string notation */
@Deprecated public java.lang.CharSequence ip;
/** The HTTP User-Agent header, or null if not-applicable */
@Deprecated public java.lang.CharSequence userAgent;
/** A list of requests made between mediawiki and elasticsearch in a single execution context */
@Deprecated public java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> requests;
/**
* Default constructor. Note that this does not initialize fields
* to their default values from the schema. If that is desired then
* one should use <code>newBuilder()</code>.
*/
public CirrusSearchRequestSet() {}
/**
* All-args constructor.
*/
public CirrusSearchRequestSet(java.lang.CharSequence wikiId, java.lang.CharSequence source, java.lang.CharSequence identity, java.lang.CharSequence ip, java.lang.CharSequence userAgent, java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> requests) {
this.wikiId = wikiId;
this.source = source;
this.identity = identity;
this.ip = ip;
this.userAgent = userAgent;
this.requests = requests;
}
public org.apache.avro.Schema getSchema() { return SCHEMA$; }
// Used by DatumWriter. Applications should not call.
public java.lang.Object get(int field$) {
switch (field$) {
case 0: return wikiId;
case 1: return source;
case 2: return identity;
case 3: return ip;
case 4: return userAgent;
case 5: return requests;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
// Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked")
public void put(int field$, java.lang.Object value$) {
switch (field$) {
case 0: wikiId = (java.lang.CharSequence)value$; break;
case 1: source = (java.lang.CharSequence)value$; break;
case 2: identity = (java.lang.CharSequence)value$; break;
case 3: ip = (java.lang.CharSequence)value$; break;
case 4: userAgent = (java.lang.CharSequence)value$; break;
case 5: requests = (java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest>)value$; break;
default: throw new org.apache.avro.AvroRuntimeException("Bad index");
}
}
/**
* Gets the value of the 'wikiId' field.
* The wiki making this request, such as dewiki or enwiktionary */
public java.lang.CharSequence getWikiId() {
return wikiId;
}
/**
* Sets the value of the 'wikiId' field.
* The wiki making this request, such as dewiki or enwiktionary * @param value the value to set.
*/
public void setWikiId(java.lang.CharSequence value) {
this.wikiId = value;
}
/**
* Gets the value of the 'source' field.
* Where the request is coming from. Typically: web, api or cli */
public java.lang.CharSequence getSource() {
return source;
}
/**
* Sets the value of the 'source' field.
* Where the request is coming from. Typically: web, api or cli * @param value the value to set.
*/
public void setSource(java.lang.CharSequence value) {
this.source = value;
}
/**
* Gets the value of the 'identity' field.
* A hash identifying the requestor. Includes the IP address and User Agent when available. */
public java.lang.CharSequence getIdentity() {
return identity;
}
/**
* Sets the value of the 'identity' field.
* A hash identifying the requestor. Includes the IP address and User Agent when available. * @param value the value to set.
*/
public void setIdentity(java.lang.CharSequence value) {
this.identity = value;
}
/**
* Gets the value of the 'ip' field.
* The IP address (either ipv4 or ipv6) in string notation */
public java.lang.CharSequence getIp() {
return ip;
}
/**
* Sets the value of the 'ip' field.
* The IP address (either ipv4 or ipv6) in string notation * @param value the value to set.
*/
public void setIp(java.lang.CharSequence value) {
this.ip = value;
}
/**
* Gets the value of the 'userAgent' field.
* The HTTP User-Agent header, or null if not-applicable */
public java.lang.CharSequence getUserAgent() {
return userAgent;
}
/**
* Sets the value of the 'userAgent' field.
* The HTTP User-Agent header, or null if not-applicable * @param value the value to set.
*/
public void setUserAgent(java.lang.CharSequence value) {
this.userAgent = value;
}
/**
* Gets the value of the 'requests' field.
* A list of requests made between mediawiki and elasticsearch in a single execution context */
public java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> getRequests() {
return requests;
}
/**
* Sets the value of the 'requests' field.
* A list of requests made between mediawiki and elasticsearch in a single execution context * @param value the value to set.
*/
public void setRequests(java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> value) {
this.requests = value;
}
/** Creates a new CirrusSearchRequestSet RecordBuilder */
public static org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder newBuilder() {
return new org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder();
}
/** Creates a new CirrusSearchRequestSet RecordBuilder by copying an existing Builder */
public static org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder newBuilder(org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder other) {
return new org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder(other);
}
/** Creates a new CirrusSearchRequestSet RecordBuilder by copying an existing CirrusSearchRequestSet instance */
public static org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder newBuilder(org.wikimedia.mediawiki.search.CirrusSearchRequestSet other) {
return new org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder(other);
}
/**
* RecordBuilder for CirrusSearchRequestSet instances.
*/
public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<CirrusSearchRequestSet>
implements org.apache.avro.data.RecordBuilder<CirrusSearchRequestSet> {
private java.lang.CharSequence wikiId;
private java.lang.CharSequence source;
private java.lang.CharSequence identity;
private java.lang.CharSequence ip;
private java.lang.CharSequence userAgent;
private java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> requests;
/** Creates a new Builder */
private Builder() {
super(org.wikimedia.mediawiki.search.CirrusSearchRequestSet.SCHEMA$);
}
/** Creates a Builder by copying an existing Builder */
private Builder(org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder other) {
super(other);
if (isValidValue(fields()[0], other.wikiId)) {
this.wikiId = data().deepCopy(fields()[0].schema(), other.wikiId);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.source)) {
this.source = data().deepCopy(fields()[1].schema(), other.source);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.identity)) {
this.identity = data().deepCopy(fields()[2].schema(), other.identity);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.ip)) {
this.ip = data().deepCopy(fields()[3].schema(), other.ip);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.userAgent)) {
this.userAgent = data().deepCopy(fields()[4].schema(), other.userAgent);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.requests)) {
this.requests = data().deepCopy(fields()[5].schema(), other.requests);
fieldSetFlags()[5] = true;
}
}
/** Creates a Builder by copying an existing CirrusSearchRequestSet instance */
private Builder(org.wikimedia.mediawiki.search.CirrusSearchRequestSet other) {
super(org.wikimedia.mediawiki.search.CirrusSearchRequestSet.SCHEMA$);
if (isValidValue(fields()[0], other.wikiId)) {
this.wikiId = data().deepCopy(fields()[0].schema(), other.wikiId);
fieldSetFlags()[0] = true;
}
if (isValidValue(fields()[1], other.source)) {
this.source = data().deepCopy(fields()[1].schema(), other.source);
fieldSetFlags()[1] = true;
}
if (isValidValue(fields()[2], other.identity)) {
this.identity = data().deepCopy(fields()[2].schema(), other.identity);
fieldSetFlags()[2] = true;
}
if (isValidValue(fields()[3], other.ip)) {
this.ip = data().deepCopy(fields()[3].schema(), other.ip);
fieldSetFlags()[3] = true;
}
if (isValidValue(fields()[4], other.userAgent)) {
this.userAgent = data().deepCopy(fields()[4].schema(), other.userAgent);
fieldSetFlags()[4] = true;
}
if (isValidValue(fields()[5], other.requests)) {
this.requests = data().deepCopy(fields()[5].schema(), other.requests);
fieldSetFlags()[5] = true;
}
}
/** Gets the value of the 'wikiId' field */
public java.lang.CharSequence getWikiId() {
return wikiId;
}
/** Sets the value of the 'wikiId' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setWikiId(java.lang.CharSequence value) {
validate(fields()[0], value);
this.wikiId = value;
fieldSetFlags()[0] = true;
return this;
}
/** Checks whether the 'wikiId' field has been set */
public boolean hasWikiId() {
return fieldSetFlags()[0];
}
/** Clears the value of the 'wikiId' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearWikiId() {
wikiId = null;
fieldSetFlags()[0] = false;
return this;
}
/** Gets the value of the 'source' field */
public java.lang.CharSequence getSource() {
return source;
}
/** Sets the value of the 'source' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setSource(java.lang.CharSequence value) {
validate(fields()[1], value);
this.source = value;
fieldSetFlags()[1] = true;
return this;
}
/** Checks whether the 'source' field has been set */
public boolean hasSource() {
return fieldSetFlags()[1];
}
/** Clears the value of the 'source' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearSource() {
source = null;
fieldSetFlags()[1] = false;
return this;
}
/** Gets the value of the 'identity' field */
public java.lang.CharSequence getIdentity() {
return identity;
}
/** Sets the value of the 'identity' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setIdentity(java.lang.CharSequence value) {
validate(fields()[2], value);
this.identity = value;
fieldSetFlags()[2] = true;
return this;
}
/** Checks whether the 'identity' field has been set */
public boolean hasIdentity() {
return fieldSetFlags()[2];
}
/** Clears the value of the 'identity' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearIdentity() {
identity = null;
fieldSetFlags()[2] = false;
return this;
}
/** Gets the value of the 'ip' field */
public java.lang.CharSequence getIp() {
return ip;
}
/** Sets the value of the 'ip' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setIp(java.lang.CharSequence value) {
validate(fields()[3], value);
this.ip = value;
fieldSetFlags()[3] = true;
return this;
}
/** Checks whether the 'ip' field has been set */
public boolean hasIp() {
return fieldSetFlags()[3];
}
/** Clears the value of the 'ip' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearIp() {
ip = null;
fieldSetFlags()[3] = false;
return this;
}
/** Gets the value of the 'userAgent' field */
public java.lang.CharSequence getUserAgent() {
return userAgent;
}
/** Sets the value of the 'userAgent' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setUserAgent(java.lang.CharSequence value) {
validate(fields()[4], value);
this.userAgent = value;
fieldSetFlags()[4] = true;
return this;
}
/** Checks whether the 'userAgent' field has been set */
public boolean hasUserAgent() {
return fieldSetFlags()[4];
}
/** Clears the value of the 'userAgent' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearUserAgent() {
userAgent = null;
fieldSetFlags()[4] = false;
return this;
}
/** Gets the value of the 'requests' field */
public java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> getRequests() {
return requests;
}
/** Sets the value of the 'requests' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder setRequests(java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest> value) {
validate(fields()[5], value);
this.requests = value;
fieldSetFlags()[5] = true;
return this;
}
/** Checks whether the 'requests' field has been set */
public boolean hasRequests() {
return fieldSetFlags()[5];
}
/** Clears the value of the 'requests' field */
public org.wikimedia.mediawiki.search.CirrusSearchRequestSet.Builder clearRequests() {
requests = null;
fieldSetFlags()[5] = false;
return this;
}
@Override
public CirrusSearchRequestSet build() {
try {
CirrusSearchRequestSet record = new CirrusSearchRequestSet();
record.wikiId = fieldSetFlags()[0] ? this.wikiId : (java.lang.CharSequence) defaultValue(fields()[0]);
record.source = fieldSetFlags()[1] ? this.source : (java.lang.CharSequence) defaultValue(fields()[1]);
record.identity = fieldSetFlags()[2] ? this.identity : (java.lang.CharSequence) defaultValue(fields()[2]);
record.ip = fieldSetFlags()[3] ? this.ip : (java.lang.CharSequence) defaultValue(fields()[3]);
record.userAgent = fieldSetFlags()[4] ? this.userAgent : (java.lang.CharSequence) defaultValue(fields()[4]);
record.requests = fieldSetFlags()[5] ? this.requests : (java.util.List<org.wikimedia.mediawiki.search.CirrusSearchRequest>) defaultValue(fields()[5]);
return record;
} catch (Exception e) {
throw new org.apache.avro.AvroRuntimeException(e);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment