public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeObject($responseFields[1], nearestAntennaFromOrange != null ? nearestAntennaFromOrange.marshaller() : null); writer.writeObject($responseFields[2], nearestAntennaFromBouygues != null ? nearestAntennaFromBouygues.marshaller() : null); writer.writeObject($responseFields[3], nearestAntennaFromSfr != null ? nearestAntennaFromSfr.marshaller() : null); writer.writeObject($responseFields[4], nearestAntennaFromFree != null ? nearestAntennaFromFree.marshaller() : null); final AsStreet $asStreet = asStreet; if ($asStreet != null) { $asStreet.marshaller().marshal(writer); } final AsCity $asCity = asCity; if ($asCity != null) { $asCity.marshaller().marshal(writer); } final AsHouseNumber $asHouseNumber = asHouseNumber; if ($asHouseNumber != null) { $asHouseNumber.marshaller().marshal(writer); } } }; }
@Override public SimpleGenericModel<T> parse(JsonParser jsonParser) throws IOException { SimpleGenericModel<T> instance = new SimpleGenericModel<T>(); if (jsonParser.getCurrentToken() == null) { jsonParser.nextToken(); } if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) { jsonParser.skipChildren(); return null; } while (jsonParser.nextToken() != JsonToken.END_OBJECT) { String fieldName = jsonParser.getCurrentName(); jsonParser.nextToken(); parseField(instance, fieldName, jsonParser); jsonParser.skipChildren(); } return instance; }
@Override public String toString() { if ($toString == null) { $toString = "NearestAntennaFromFree3{" + "__typename=" + __typename + ", " + "coordinates=" + coordinates + ", " + "generation=" + generation + ", " + "provider=" + provider + ", " + "lastUpdate=" + lastUpdate + ", " + "status=" + status + ", " + "dist=" + dist + ", " + "insee=" + insee + ", " + "city=" + city + ", " + "addressLabel=" + addressLabel + ", " + "fragments=" + fragments + "}"; } return $toString; }
@Override public Layout decode(ProtoReader reader) throws IOException { Builder builder = new Builder(); long token = reader.beginMessage(); for (int tag; (tag = reader.nextTag()) != -1;) { switch (tag) { case 1: builder.x(ProtoAdapter.FLOAT.decode(reader)); break; case 2: builder.y(ProtoAdapter.FLOAT.decode(reader)); break; case 3: builder.width(ProtoAdapter.FLOAT.decode(reader)); break; case 4: builder.height(ProtoAdapter.FLOAT.decode(reader)); break; default: { FieldEncoding fieldEncoding = reader.peekFieldEncoding(); Object value = fieldEncoding.rawProtoAdapter().decode(reader); builder.addUnknownField(tag, fieldEncoding, value); } } } reader.endMessage(token); return builder.build(); }
public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeObject($responseFields[1], coordinates != null ? coordinates.marshaller() : null); writer.writeString($responseFields[2], generation); writer.writeString($responseFields[3], provider); writer.writeString($responseFields[4], lastUpdate); writer.writeString($responseFields[5], status); writer.writeInt($responseFields[6], dist); writer.writeString($responseFields[7], insee); writer.writeString($responseFields[8], city); writer.writeString($responseFields[9], addressLabel); fragments.marshaller().marshal(writer); } }; }
@Override protected void setRequestOptions(@NonNull RequestOptions toSet) { if (toSet instanceof com.bumptech.glide.test.GlideOptions) { super.setRequestOptions(toSet); } else { super.setRequestOptions(new com.bumptech.glide.test.GlideOptions().apply(toSet)); } }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Coordinates) { Coordinates that = (Coordinates) o; return ((this.latitude == null) ? (that.latitude == null) : this.latitude.equals(that.latitude)) && ((this.longitude == null) ? (that.longitude == null) : this.longitude.equals(that.longitude)); } return false; }
@Override public int hashCode() { if (!$hashCodeMemoized) { int h = 1; h *= 1000003; h ^= __typename.hashCode(); h *= 1000003; h ^= (coordinates == null) ? 0 : coordinates.hashCode(); h *= 1000003; h ^= (generation == null) ? 0 : generation.hashCode(); h *= 1000003; h ^= (provider == null) ? 0 : provider.hashCode(); h *= 1000003; h ^= (lastUpdate == null) ? 0 : lastUpdate.hashCode(); h *= 1000003; h ^= (status == null) ? 0 : status.hashCode(); h *= 1000003; h ^= (dist == null) ? 0 : dist.hashCode(); h *= 1000003; h ^= (insee == null) ? 0 : insee.hashCode(); h *= 1000003; h ^= (city == null) ? 0 : city.hashCode(); h *= 1000003; h ^= (addressLabel == null) ? 0 : addressLabel.hashCode(); h *= 1000003; h ^= fragments.hashCode(); $hashCode = h; $hashCodeMemoized = true; } return $hashCode; }
@Override public ShapeStyle redact(ShapeStyle value) { Builder builder = value.newBuilder(); if (builder.fill != null) builder.fill = RGBAColor.ADAPTER.redact(builder.fill); if (builder.stroke != null) builder.stroke = RGBAColor.ADAPTER.redact(builder.stroke); builder.clearUnknownFields(); return builder.build(); }
public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { final AntennaFields $antennaFields = antennaFields; if ($antennaFields != null) { $antennaFields.marshaller().marshal(writer); } } }; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Fragments) { Fragments that = (Fragments) o; return this.antennaFields.equals(that.antennaFields); } return false; }
@Override public String toString() { if ($toString == null) { $toString = "Coordinates11{" + "latitude=" + latitude + ", " + "longitude=" + longitude + "}"; } return $toString; }
@Override public final void bindToUpdateStatement(DatabaseStatement statement, WeatherForecastData model) { statement.bindNumberOrNull(1, model.getId()); statement.bindStringOrNull(2, model.getMessage()); statement.bindNumberOrNull(3, model.getCnt()); statement.bindStringOrNull(4, model.getCod()); statement.bindNumberOrNull(5, model.getDt()); statement.bindNumberOrNull(6, model.getId()); }
@Override public final void bindToInsertStatement(DatabaseStatement statement, WeatherForecastData model, int start) { statement.bindNumberOrNull(1 + start, model.getId()); statement.bindStringOrNull(2 + start, model.getMessage()); statement.bindNumberOrNull(3 + start, model.getCnt()); statement.bindStringOrNull(4 + start, model.getCod()); statement.bindNumberOrNull(5 + start, model.getDt()); }
@Override public void reset() { allocationSizeInBytes = INITIAL_VALUE_ALLOCATION; allocationMonitor = 0; zeroVector(); super.reset(); }
@Override @SafeVarargs @SuppressWarnings("varargs") @CheckResult public final GlideOptions transforms(@NonNull Transformation<Bitmap>... arg0) { return (GlideOptions) super.transforms(arg0); }
@BeforeClass public void setUp() throws Exception { shouldRun = ensureInet6AddressFamily() && ensureIPv6OnLoopback(); server = HttpServer.create(new InetSocketAddress(0), 0); server.createContext("/", ex -> { ex.sendResponseHeaders(200, response.length()); try (BufferedWriter writer = new BufferedWriter( new OutputStreamWriter(ex.getResponseBody(), "UTF-8"))) { writer.write(response); } ex.close(); }); server.start(); socks = new SocksServer(0, false); socks.addUser("user", "pass"); socks.start(); Authenticator.setDefault(new Authenticator() { @Override protected java.net.PasswordAuthentication getPasswordAuthentication() { return new java.net.PasswordAuthentication( "user", "pass".toCharArray()); } }); }
@Override public boolean equals(Object other) { if (other == this) return true; if (!(other instanceof Both)) return false; Both<?, ?> o = (Both<?, ?>) other; return o.one.equals(this.one) && o.two.equals(this.two); }
@Override @CheckResult @SafeVarargs @SuppressWarnings("varargs") public final GlideRequest<TranscodeType> thumbnail(@Nullable RequestBuilder<TranscodeType>... arg0) { return (GlideRequest<TranscodeType>) super.thumbnail(arg0); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); if (fill != null) builder.append(", fill=").append(fill); if (stroke != null) builder.append(", stroke=").append(stroke); if (strokeWidth != null) builder.append(", strokeWidth=").append(strokeWidth); if (lineCap != null) builder.append(", lineCap=").append(lineCap); if (lineJoin != null) builder.append(", lineJoin=").append(lineJoin); if (miterLimit != null) builder.append(", miterLimit=").append(miterLimit); if (lineDashI != null) builder.append(", lineDashI=").append(lineDashI); if (lineDashII != null) builder.append(", lineDashII=").append(lineDashII); if (lineDashIII != null) builder.append(", lineDashIII=").append(lineDashIII); return builder.replace(0, 2, "ShapeStyle{").append('}').toString(); }
@Override public Builder newBuilder() { Builder builder = new Builder(); builder.x = x; builder.y = y; builder.radiusX = radiusX; builder.radiusY = radiusY; builder.addUnknownFields(unknownFields()); return builder; }
@Override public String toString() { if ($toString == null) { $toString = "Coordinates14{" + "latitude=" + latitude + ", " + "longitude=" + longitude + "}"; } return $toString; }
@Override public int hashCode() { int result = super.hashCode; if (result == 0) { result = unknownFields().hashCode(); result = result * 37 + (x != null ? x.hashCode() : 0); result = result * 37 + (y != null ? y.hashCode() : 0); result = result * 37 + (width != null ? width.hashCode() : 0); result = result * 37 + (height != null ? height.hashCode() : 0); super.hashCode = result; } return result; }
@Override public void encode(ProtoWriter writer, ShapeEntity value) throws IOException { ShapeType.ADAPTER.encodeWithTag(writer, 1, value.type); ShapeStyle.ADAPTER.encodeWithTag(writer, 10, value.styles); Transform.ADAPTER.encodeWithTag(writer, 11, value.transform); ShapeArgs.ADAPTER.encodeWithTag(writer, 2, value.shape); RectArgs.ADAPTER.encodeWithTag(writer, 3, value.rect); EllipseArgs.ADAPTER.encodeWithTag(writer, 4, value.ellipse); writer.writeBytes(value.unknownFields()); }
@Override public int hashCode() { if (!$hashCodeMemoized) { int h = 1; h *= 1000003; h ^= antennaFields.hashCode(); $hashCode = h; $hashCodeMemoized = true; } return $hashCode; }
@Override public void setValueCount(int valueCount) { assert valueCount >= 0; <#if type.major == "VarLen"> fillEmpties(valueCount); </#if> values.getMutator().setValueCount(valueCount); bits.getMutator().setValueCount(valueCount); }
@Override @CheckResult public final GlideOptions optionalCenterInside() { return (GlideOptions) super.optionalCenterInside(); }
@Override public int hashCode() { return 0; }
@Override public final IProperty[] getAllColumnProperties() { return ALL_COLUMN_PROPERTIES; }
@Override @CheckResult public final GlideOptions encodeQuality(@IntRange(from = 0, to = 100) int arg0) { return (GlideOptions) super.encodeQuality(arg0); }
@Override @CheckResult public final GlideOptions placeholder(@Nullable Drawable arg0) { return (GlideOptions) super.placeholder(arg0); }
@Override @CheckResult public final GlideOptions decode(@NonNull Class<?> arg0) { return (GlideOptions) super.decode(arg0); }
@Override @CheckResult public GlideRequest<TranscodeType> listener(@Nullable RequestListener<TranscodeType> arg0) { return (GlideRequest<TranscodeType>) super.listener(arg0); }
@Override @CheckResult public GlideRequest<TranscodeType> load(@Nullable File arg0) { return (GlideRequest<TranscodeType>) super.load(arg0); }
@Override public final String getCompiledStatementQuery() { return "INSERT INTO `MainWeather`(`id`,`humidity`,`pressure`,`temp_max`,`temp_min`,`temp`,`sea_level`,`grnd_level`,`temp_kf`) VALUES (?,?,?,?,?,?,?,?,?)"; }