@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!getProjectIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
}
if (view_
!= com.google.devtools.cloudtrace.v1.ListTracesRequest.ViewType.VIEW_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, view_);
}
if (pageSize_ != 0) {
output.writeInt32(3, pageSize_);
}
if (!getPageTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
}
if (startTime_ != null) {
output.writeMessage(5, getStartTime());
}
if (endTime_ != null) {
output.writeMessage(6, getEndTime());
}
if (!getFilterBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filter_);
}
if (!getOrderByBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_);
}
unknownFields.writeTo(output);
}