All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zipkin2.proto3.ReportResponse Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source file: zipkin.proto
package zipkin2.proto3;

import com.squareup.wire.FieldEncoding;
import com.squareup.wire.Message;
import com.squareup.wire.ProtoAdapter;
import com.squareup.wire.ProtoReader;
import com.squareup.wire.ProtoWriter;
import com.squareup.wire.ReverseProtoWriter;
import com.squareup.wire.Syntax;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import okio.ByteString;

/**
 * Response for SpanService/Report RPC. This response currently does not return
 * any information beyond indicating that the request has finished. That said,
 * it may be extended in the future.
 */
public final class ReportResponse extends Message {
  public static final ProtoAdapter ADAPTER = new ProtoAdapter_ReportResponse();

  private static final long serialVersionUID = 0L;

  public ReportResponse() {
    this(ByteString.EMPTY);
  }

  public ReportResponse(ByteString unknownFields) {
    super(ADAPTER, unknownFields);
  }

  @Override
  public Builder newBuilder() {
    Builder builder = new Builder();
    builder.addUnknownFields(unknownFields());
    return builder;
  }

  @Override
  public boolean equals(Object other) {
    if (other == this) return true;
    if (!(other instanceof ReportResponse)) return false;
    ReportResponse o = (ReportResponse) other;
    return unknownFields().equals(o.unknownFields());
  }

  @Override
  public int hashCode() {
    return unknownFields().hashCode();
  }

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    return builder.replace(0, 2, "ReportResponse{").append('}').toString();
  }

  public static final class Builder extends Message.Builder {
    public Builder() {
    }

    @Override
    public ReportResponse build() {
      return new ReportResponse(super.buildUnknownFields());
    }
  }

  private static final class ProtoAdapter_ReportResponse extends ProtoAdapter {
    public ProtoAdapter_ReportResponse() {
      super(FieldEncoding.LENGTH_DELIMITED, ReportResponse.class, "type.googleapis.com/zipkin.proto3.ReportResponse", Syntax.PROTO_3, null, "zipkin.proto");
    }

    @Override
    public int encodedSize(ReportResponse value) {
      int result = 0;
      result += value.unknownFields().size();
      return result;
    }

    @Override
    public void encode(ProtoWriter writer, ReportResponse value) throws IOException {
      writer.writeBytes(value.unknownFields());
    }

    @Override
    public void encode(ReverseProtoWriter writer, ReportResponse value) throws IOException {
      writer.writeBytes(value.unknownFields());
    }

    @Override
    public ReportResponse decode(ProtoReader reader) throws IOException {
      Builder builder = new Builder();
      long token = reader.beginMessage();
      for (int tag; (tag = reader.nextTag()) != -1;) {
        switch (tag) {
          default: {
            reader.readUnknownField(tag);
          }
        }
      }
      builder.addUnknownFields(reader.endMessageAndGetUnknownFields(token));
      return builder.build();
    }

    @Override
    public ReportResponse redact(ReportResponse value) {
      Builder builder = value.newBuilder();
      builder.clearUnknownFields();
      return builder.build();
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy