zipkin2.proto3.ReportResponse Maven / Gradle / Ivy
The 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 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) {
return other instanceof ReportResponse;
}
@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);
}
@Override
public int encodedSize(ReportResponse value) {
return value.unknownFields().size();
}
@Override
public void encode(ProtoWriter 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: {
FieldEncoding fieldEncoding = reader.peekFieldEncoding();
Object value = fieldEncoding.rawProtoAdapter().decode(reader);
builder.addUnknownField(tag, fieldEncoding, value);
}
}
}
reader.endMessage(token);
return builder.build();
}
@Override
public ReportResponse redact(ReportResponse value) {
Builder builder = value.newBuilder();
builder.clearUnknownFields();
return builder.build();
}
}
}